MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB通信系统] 新手求助matlab关于mesh函数编程的问题 (https://www.labfans.com/bbs/showthread.php?t=14843)

zhd87 2012-04-21 12:02

新手求助matlab关于mesh函数编程的问题
 
M2=10:1:50;
M1=10:1:50;
。。。。。。
。。。。。。
。。。。。。
for i=0:wl
pe_theo= pe_theo+ 1/2* (-1)^(wl-i).* nchoosek(wl, i)* (q0_w1+ q1_w1*i/wl).^(Ml-1).* (q0_w2+ q1_w2*i/wl).^(Mh);

[M2,M1]=meshgrid(M2,M1);
mesh(M2,M1,pr_theo);
set(gca,'ZScale','log');
grid on;
hold on;




错误提示:
??? Error using ==> mesh at 80
Z must be a matrix, not a scalar or vector.

Error in ==> figure1 at 65
mesh(M2,M1,pr_theo);


所有时间均为北京时间。现在的时间是 13:43

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