Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Matlab Plotting Code erroe

조회 수: 1 (최근 30일)
Hassan Saeed
Hassan Saeed 2016년 1월 16일
마감: MATLAB Answer Bot 2021년 8월 20일
السلام عليكم .. Hi everyone
I have small question in Matlab code to plotting matrix
Oky , If i create matrix like this for example (1:5,1:6,n), n=10
And now i should to print and plot result like (2,3) for all n
How can i made code to do it ????
i hope it's clear .
Thanks for attention
  댓글 수: 1
Star Strider
Star Strider 2016년 1월 16일
I do not understand what you want to do.
What does your matrix look like, and what do you want your plot to look like? How does ‘n’ work with the rest of what you want to do?

답변 (1개)

Thorsten
Thorsten 2016년 1월 18일
You have to squeeze the singleton dimension:
n = 10; A = rand(5,6,n);
plot(squeeze(A(2,3,:)))

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by