필터 지우기
필터 지우기

How to automatically store values into an excel sheet through matlab?

조회 수: 1 (최근 30일)
Hello, I have a program that generate different values and i want them to be stored in an excel sheet automatically. For demo purpose see the following code,
if true
% for i=1:10
% for j=1:10
k=i*j;
end
end
end
I want k to be stored in an excel sheet, automatically.
Thanks.

채택된 답변

giovanacgois
giovanacgois 2018년 5월 12일
You can do:
for i=1:10
for j=1:10
k=i*j;
M(i,j)=k;
end
end
xlswrite('filename.xls', M, 1);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by