how to plot columns of two matrices against each other?

31 visualizaciones (últimos 30 días)
CATHAL BYRNE
CATHAL BYRNE el 14 de Nov. de 2021
Editada: KALYAN ACHARJYA el 14 de Nov. de 2021
I have 2 matrices defined which are (41 x 7) and i want to plot the first first column of eacg against each other, the second column of each against each other and so on until there are 7 lines on the one graph, is this possible?

Respuestas (1)

KALYAN ACHARJYA
KALYAN ACHARJYA el 14 de Nov. de 2021
Editada: KALYAN ACHARJYA el 14 de Nov. de 2021
mat1=...
mat2=...
for i=1:7
plot(mat1(:,i),mat2(:,i));
hold on;
end

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by