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 Center および File ExchangeData Import from MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by