How do I plot this results?

3 Ansichten (letzte 30 Tage)
Damián Muciño
Damián Muciño am 11 Okt. 2018
Beantwortet: Damián Muciño am 11 Okt. 2018
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

Antworten (1)

Damián Muciño
Damián Muciño am 11 Okt. 2018
Nevermind, I just solved :)

Kategorien

Mehr zu Mathematics finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by