How to store the looping plot value in to a variable ?

조회 수: 1 (최근 30일)
joynjo
joynjo 2017년 6월 23일
답변: Mudambi Srivatsa 2017년 6월 27일
Hello
I have matlab code as follows: How to store the looping plot value of "ColorPink" over bandnumber into one variable, so I can analyze and cluster this variable for further processing. thanks before
for y=1:sample_nu
for x=1:band
Pinkcolor(y,:)=impixel(Color61(:,:,x),PinkColorsampling(y,1),PinkColorsampling(y,2));
ColorPink(x,:)=Pinkcolor(y,:);
end
plot(bandnumber,ColorPink(:,1),'r');hold on
end
  댓글 수: 2
KSSV
KSSV 2017년 6월 23일
Specify the dimensions of Color61, PinkColorsampling,
joynjo
joynjo 2017년 6월 23일
Matrix size:
color61 = 4 x 7 x 61 PinkColorsampling = 5 x 2

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

답변 (1개)

Mudambi Srivatsa
Mudambi Srivatsa 2017년 6월 27일
The following post discusses techniques to store loop data in MATLAB:
https://www.mathworks.com/matlabcentral/answers/33750-save-loop-data

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by