matlab绘图无错误提示 却显示空白图>> st=linspace(0,0.01,1);>> lam=1;>> w=((2*(3*lam-(2-st)*(1-st))^2+(3*lam-2*(2-st)*(1-st))^2)+lam*(9*lam-2*(2-st)^2))/(9*lam-2*(2-st)^2)^2;>> plot(st,w,'r')
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/16 18:01:31
matlab绘图无错误提示 却显示空白图>> st=linspace(0,0.01,1);>> lam=1;>> w=((2*(3*lam-(2-st)*(1-st))^2+(3*lam-2*(2-st)*(1-st))^2)+lam*(9*lam-2*(2-st)^2))/(9*lam-2*(2-st)^2)^2;>> plot(st,w,'r')
matlab绘图无错误提示 却显示空白图
>> st=linspace(0,0.01,1);
>> lam=1;
>> w=((2*(3*lam-(2-st)*(1-st))^2+(3*lam-2*(2-st)*(1-st))^2)+lam*(9*lam-2*(2-st)^2))/(9*lam-2*(2-st)^2)^2;
>> plot(st,w,'r')
matlab绘图无错误提示 却显示空白图>> st=linspace(0,0.01,1);>> lam=1;>> w=((2*(3*lam-(2-st)*(1-st))^2+(3*lam-2*(2-st)*(1-st))^2)+lam*(9*lam-2*(2-st)^2))/(9*lam-2*(2-st)^2)^2;>> plot(st,w,'r')
st=linspace(0,0.01,10); % 注意第三个输入值
lam=1;
w=((2*(3*lam-(2-st).*(1-st)).^2+(3*lam-2*(2-st).*(1-st)).^2)+lam*(9*lam-2*(2-st).^2))./(9*lam-2*(2-st).^2).^2; % 加“.”,是点乘
plot(st,w,'r')