How do I plot this results?
Show older comments
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
Answers (1)
Damián Muciño
on 11 Oct 2018
0 votes
Categories
Find more on Mathematics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!