MATLAB: Getting values for equation written in for loop but not getting plots

for loopmatlab coderplot

Not getting plots written in for loop, but getting values in command window

Best Answer

rol = 5:10;
plot(rol,V2fl);
you dont need for loop when you are using element wise multiplication .*
delete the loop and plot again or
Otherwise you can use index of for loop without .* in eqn
V2fl(rol) = ((2*3.14)...);
figure(1)
hold on
plot(rol,V2fl)