【发布时间】:2020-04-06 19:47:58
【问题描述】:
我有一个 Matlab 函数,我想在将某个参数从 100 更改为 1000 的同时绘制它 它是这样的: [c, errorrange, i] = function [g1, g2, x]; 我想在改变 x 的同时绘制 x 和 c
函数本身 ......
function [root,e, i]=func(xl,xu,e_stopping, z)
if ((((xl^4)/(20*z)-(3*z^2*xl^2)/50)*((xu^4)/(20*z)-(3*z^2*xu^2)/50)) > 0)
error('the intials wont work');
end
root = z/2+z*2;
e = 2;
i = 2;
end
.......
我想到了这样的事情:
...
for i = 100: 1000
[c, error] = fund(1000, 2000,0, i);
A(i) = c;
end
for i = 1: 99
A(i) = 0;
end
plot(A);
... 但它不起作用;抱歉,如果我的问题不好,我是 Matlab 新手。 谢谢你
【问题讨论】:
标签: matlab matlab-figure matlab-guide