Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Plotting columns of a matrix into a graph

1 Ansicht (letzte 30 Tage)
Vinay Killamsetty
Vinay Killamsetty am 29 Aug. 2019
Geschlossen: madhan ravi am 29 Aug. 2019
Hi,
I want to plot columns of two matrices Z_imag and Z_real in two separate graphs.
I tried to do this code but I wasnt able to:
Z_imag=randi(10,10,3);
Z_real=randi(10,10,3);
w_mil=1:10
for i=1:1:3
figure(1)
Z_im = axes;
plot( Z_im,width_mil,Z_imag(:,i),'-o');
title('Imaginary part of the impedance');
xlabel('W [mil]');
ylabel('Im{Z}');
figure(2)
Z_re = axes;
plot(Z_re,width_mil,Z_real(:,i),'-o');
title('Real part of the impedance');
xlabel('W [mil]');
ylabel('re{Z}');
end

Antworten (0)

Diese Frage ist geschlossen.

Tags

Produkte


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by