4D Plot using Columns of Matrix

조회 수: 15 (최근 30일)
Luiz Antonio Martins
Luiz Antonio Martins 2019년 8월 10일
답변: Divya Gaddipati 2019년 8월 13일
I have a 340x5 matrix and I want to plot the 4th and 5th columns as the function of the first 3. Doing a point plot like the stem3 function.
X = A(:,1); %Assume A is the matrix I imported from a file with the size above
Y = A(:,2);
Z = A(:,3);
F = A(:,4);
G = A(:,5);
figure
stem3(X,Y,Z)
But like this que 4th and 5th column are not in the plot. And I wanna do something like F = f(X,Y,Z) and G = g(X,Y,Z). For each row of the A matrix.
  댓글 수: 1
darova
darova 2019년 8월 10일
F = f(X,Y,Z) and G = g(X,Y,Z)
I don't understand. What does it mean?

댓글을 달려면 로그인하십시오.

답변 (1개)

Divya Gaddipati
Divya Gaddipati 2019년 8월 13일
figure, scatter3(X, Y, Z, 50, F, 'filled');
The scatter3 function can be used, where each point in F is plotted with a different color represented by F and 50 is the marker size.

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

태그

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by