i have 3 * [75x1] vectors f1,f2,f3 and they are all independent, values 1:10, anyway i can scatter plot the 3 vectors on the same graph ?

 채택된 답변

Star Strider
Star Strider 2017년 11월 20일
편집: Star Strider 2017년 11월 20일

0 개 추천

‘i can scatter plot the 3 vectors on the same graph ?’
Yes. I would do something like this:
figure(1)
scatter3(f1, f2, f3)
grid on

댓글 수: 4

abdulaziz marie
abdulaziz marie 2017년 11월 20일
thats in 3d and its pretty good ... any way to distinguish between the 3 vectors ?
They’re plotted against each other, with ‘f1’ defining the x-coordinate, ‘f2’ the y-coordinate, and ‘f3’ the ‘z’-coordinate.
If you want to see them plotted individually in 2D, this works:
figure(1)
plot(f1, 'p')
hold on
plot(f2, 'p')
plot(f3, 'p')
hold off
legend('f1', 'f2', 'f3')
grid
abdulaziz marie
abdulaziz marie 2017년 11월 20일
i will use legend('Star Strider') thanks alot man :)
Star Strider
Star Strider 2017년 11월 20일
As always, my pleasure!

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Scatter Plots에 대해 자세히 알아보기

태그

질문:

2017년 11월 20일

댓글:

2017년 11월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by