How do I plot this results?
3 次查看(过去 30 天)
显示 更早的评论
I am trying to make a graph of the results from a circuit that I solved, but the only thing I get is an empty graph.
if truei=0:0.05:5;
S4ohm=83.94
plot(i,S4ohm, 'b');
hold on;
i=0:0.05:5;
S1ohm=2.01
plot(i,S1ohm, 'r ');
hold on;
i=0:0.05:5;
Sjohm=36.02
plot(i,Sjohm, 'y ');
hold on;
i=0:0.05:5;
S2johm=16.82
plot(i,S2johm, 'g ');
hold on;
i=0:0.05:5;
S24=77.8
plot(i,S24, 'm ');
hold on;
i=0:0.05:5;
S2Vo=30.33
plot(i,S2Vo, 'k ');
hold on;
xlabel('Tiempo (s)')
ylabel('Potencia [VA]')
title('Potencia')
legend('4ohm','1ohm','-johm.','2johm','2ohm','Fuente','Fuente dependiente')
% code
end
0 个评论
回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!