Saving Loop Variables into Different Column

조회 수: 1 (최근 30일)
Robert Roy
Robert Roy 2016년 5월 6일
답변: Azzi Abdelmalek 2016년 5월 6일
Hi apologies but I'm having problem with my code. What i want to do is be able to have T.' in column A-J for all the different values of l byt I am unsure how to achieve this. I have tried to put T into an array itself but have failed. Any help would be appreciated
if true
for l=1:10
Cr1=[60 325+(l*(constant1)) constant 3 constant1];
Cr = imcrop(YourData, Cr1);
T=mean(Cr);
plot(T,'DisplayName',['HAB=' num2str(l+7)]);
hold on
sheet1=1;
filename1='HProfile.xlsx';
xlswrite(filename1,T.',sheet1,'?');
end

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2016년 5월 6일
T{i}=mean(Cr)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by