Choose data and plot from a 3x5 Matrix
이전 댓글 표시
Hello everyone, I am trying to plot from a .mat file called Database which is a 3x5 matrix that contains in each element a 3001x11 data, using this loop
for jj=1:numel(variables)-1
subplot(numel(variables)-1,1,jj)% make a subplot
plot(DataBase{ii}(:,1),DataBase{ii}(:,jj+1))
xlabel(variables{1})
ylabel(variables{jj+1})
end
I can plot Database(1,1),Database(1,2),Database(1,3),Database(1,4),Database(1,5) but I this loop doesn't do Database(2,1) and therefore Database(3,1) up to the fifth column of those rows,its just give me empty plots. Same applies if I want to save those plot as jpeg, with specific distinctive names.
print(datafig(ii),'-djpeg')
Thanks in advance
댓글 수: 2
Adam
2014년 12월 2일
What is ii?
Andil Aboubakari
2014년 12월 2일
편집: Andil Aboubakari
2014년 12월 2일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!