plotting of graph with unknown parameter containing exp
问题 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');