plotting of graph with unknown parameter containing exp

柔情痞子 提交于 2020-01-06 20:08:18

问题


Equation is as shown:

Ii=7.5-1.1e-06*exp((Vv+0.3*Ii)/2)+(1.1e-06)-(Vv+0.3*Ii)/271;

How can I plot a graph of Ii vs Vv, given Vv with a step size of:

Vv=0:1.5:35; 

Would really appreciate any help thanks


回答1:


You can use solve method:

Vv_arr = 0:1.5:35;
res_arr = [];

syms Ii

for Vv=Vv_arr
    sol = solve(7.5-1.1e-06*exp((Vv+0.3*Ii)/2)+(1.1e-06)-(Vv+0.3*Ii)/271 - Ii == 0);
    res = eval(vpa(sol));
    res_arr = [res_arr res];
end

plot(Vv_arr, res_arr, 'LineWidth', 2);
grid on;
xlabel('Vv');
ylabel('Ii');



来源:https://stackoverflow.com/questions/35055747/plotting-of-graph-with-unknown-parameter-containing-exp

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!