필터 지우기
필터 지우기

Matlab output to excel for loop

조회 수: 1 (최근 30일)
jchris14
jchris14 2014년 9월 29일
댓글: dpb 2014년 9월 29일
Hi,
I have a code that analyzes several individual images through a for loop. the output for each selected image is called answer. The code is written in such a way that in the command window, MATLAB outputs, the name of the selected image and the answer. What code can i use to export the name of the selected image and the answer in A and B column respectively?
I have tried using xlswrite('filename',answer) just to show all the answers in 1 column and it seems like it is not getting looped and stores just the last answer as an excel file.
thanks for the help
  댓글 수: 1
dpb
dpb 2014년 9월 29일
Per the doc for xlswrite, each invocation writes only the data to the file in the call; hence by doing what you've done you've rewritten the same file over and over leaving only the last invocation.
Look at
doc fprintf % and friends
A truly specific answer would need to see the pertinent section of your code...

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by