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

조회 수: 1 (최근 30일)
Nora Khaled
Nora Khaled 2019년 5월 6일
답변: Sulaymon Eshkabilov 2019년 5월 7일
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 ?

답변 (1개)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2019년 5월 7일
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

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by