How to plot rows of matrix as pont in number of column dimensions

2 vues (au cours des 30 derniers jours)
Nora Khaled
Nora Khaled le 6 Mai 2019
Hello!
I have a matrix U with dimensions n by k.
is there a way to plot the n rows as n point in k dimentions ?
or away to plot all 2D combinations of the k dimensions ?

Réponses (1)

Sulaymon Eshkabilov
Sulaymon Eshkabilov le 7 Mai 2019
plot(1:n, U);
% or a bit fancier but slower way
for ii = 1:n
plot(1:n, U(ii, 1:k)), hold all
end

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by