Saving Loop Variables into Different Column

1 Ansicht (letzte 30 Tage)
Robert Roy
Robert Roy am 6 Mai 2016
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

Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 6 Mai 2016
T{i}=mean(Cr)

Weitere Antworten (0)

Kategorien

Mehr zu Data Import from MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by