MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   资料存档 (https://www.labfans.com/bbs/forumdisplay.php?f=72)
-   -   分别评估数组中的点 (https://www.labfans.com/bbs/showthread.php?t=26348)

poster 2019-12-14 20:13

分别评估数组中的点
 
我想根据数字的大小对数组进行排序。

我想使用数组的值运行一个循环,以便它分别迭代每个值。我将尝试将其纳入某种伪代码中。我三年没有编程。

PL=(3,5,7,9,10); EL=(3,2,2,2,1); n=input; x=array; gp=2.5*(1:n) % I want this to run for each value of PL seperately for each PL_i in PL x=(EL(1,1) < gp 0)); gp1=(gp(gp=2 x=(gp((EL(2,1)PL(NN); si(c)=(-1/2)*nc(c)*(1-nc(c)); sk(c)=(1/2)*nc(c)*(1+nc(c)); sj(c)=(1-nc(c))*(1+nc(c)); V(c)=si(c)*values(i*2-1)+sj(c)*values(i*2)+sk(c)*values((i*2)+1); end end end end

[url=https://stackoverflow.com/questions/5010340]更多&回答...[/url]


所有时间均为北京时间。现在的时间是 04:57

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.