Saving Loop Variables into Different Column
조회 수: 1 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!