当我尝试运行这个程序时:
n = 10000;
Constant = 5.0;
A = 10;
B = 5;
C = 1.335;
Drand = (0.02*randn(1,n)) + 0.242*ones(1,n);
Erand = (0.005*randn(1,n)) + 0.536*ones(1,n);
P = (Constant*A*B*(1.0/C))*(Drand.*(1.0-Erand.));
plot(P);
我收到此错误:
错误:应为“标识符”,找到“)”。
其中方差分别为0.02
和0.005
,均值分别为0.242
和0.536
。