How do I plot this results?

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

回答(1 个)

类别

帮助中心File Exchange 中查找有关 Mathematics 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by