精品偷拍一区二区三区,亚洲精品永久 码,亚洲综合日韩精品欧美国产,亚洲国产日韩a在线亚洲

  • <center id="usuqs"></center>
  • 
    
  • ? In an assignment A(I) = B, the number of elements in B and I must be the same.

    ? In an assignment A(I) = B, the number of elements in B and I must be the same.
    nmin=600,nmax=4000,m1=2000,m2=1800,m3=3880,r=0.367,gt=0.85,f=0.013,cda=2.77,io=5.83,Ifo=0.218,Iw1=1.798,Iw2=3.598,l=3.2,a=1.947,hg=0.9,ig1=5.56
    ig=[5.56 2.769 1.644 1.00 0.793]
    n=nmin:10:nmax
    T=-19.313+295.27*(n/1000)-165.44*(n/1000).^2+40.874*(n/1000).^3-3.8445*(n/1000).^4;
    for j=1:5
    ft(j)=(T*ig(j)*io*gt)/r
    ua(j)=(0.377*n*r)/(ig(j)*io)
    end
    plot(ua,ft)
    英語人氣:847 ℃時間:2020-04-28 21:29:37
    優(yōu)質解答
    In an assignmentA(I) = B, the number of elements in B and I must be the same
    中文解釋:在賦值語句 A(I) = B 中,B 和 I 的元素個數必須相同
    出錯原因:I 和 B 的維數、大小不一樣.這正如“把 5 個水果放到 6 個籃子”、或者“把 6 個水果放到 5 個籃子”,均無法實現
    解決辦法:自己設置斷點調試一下,看看 I 和 B 的維數、大小是否相同,不同的話就要修改成兩者一致
    舉例:
    【錯誤代碼】:
    代碼:
    b = [1,2];
    s(1) = b;
    【正確代碼】:
    代碼:
    b = [1,2];
    for i = 1:2
    s(i) = b(i);
    end
    當然,這樣的賦值使用循環(huán)是低效的,因此不提倡
    我來回答
    類似推薦
    請使用1024x768 IE6.0或更高版本瀏覽器瀏覽本站點,以保證最佳閱讀效果。本頁提供作業(yè)小助手,一起搜作業(yè)以及作業(yè)好幫手最新版!
    版權所有 CopyRight © 2012-2024 作業(yè)小助手 All Rights Reserved. 手機版