Plotting a cell array on Matlab

Hello guys
I have a cell array of size (1,181)
each element of this array is a 6*6 matrix
i want to plot only SOME coordinates of each matrix depending on the cell i am in.
I dont know how to choose elements from the matrices to plot them
Could you please help me
Thanks in advance

답변 (1개)

KALYAN ACHARJYA
KALYAN ACHARJYA 2019년 10월 13일
편집: KALYAN ACHARJYA 2019년 10월 13일

0 개 추천

Let say cell arry is cell_data
for i=1:181
data=cell_data{i};
% Now data is first matrics of cell array
% You can acess the individual element of the matrics by data(i,j)
% here i row and j column
plot(data);
hold on
end
The following is still not clear to me-
i want to plot only SOME coordinates of each matrix depending on the cell i am in.
I hope you can incorporate it in the code.

댓글 수: 1

Manas Tripathi
Manas Tripathi 2019년 10월 13일
Thank you very much for your answer
when i wrote some coordinates , it means for example :
My array of cells is full with 6*6 MATRICES
Lets called them A1 A2 ......A181
i only want to plot Ai(1,1) and Ai(2,2) and Ai(3,3) for each i between 1 and 181

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

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

질문:

2019년 10월 13일

댓글:

2019년 10월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by