Borrar filtros
Borrar filtros

Saving Loop Variables into Different Column

1 visualización (últimos 30 días)
Robert Roy
Robert Roy el 6 de Mayo de 2016
Respondida: Azzi Abdelmalek el 6 de Mayo de 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

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 6 de Mayo de 2016
T{i}=mean(Cr)

Más respuestas (0)

Categorías

Más información sobre Data Import from MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by