hi
i have some data in command window like:
n x y
1 9 7
2 2.5 3
3 45 23
.. .. ..
and i want to write them on excel file,in 3 different columns,could any body help me?
thanks in advance

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2013년 9월 2일
편집: Azzi Abdelmalek 2013년 9월 2일

0 개 추천

If M is your matrix
M=[1 9 7;2 2.5 3;3 45 23]
xlswrite('yourfile.xls',M)

댓글 수: 3

maryam
maryam 2013년 9월 2일
tnx,but my output generate in a loop and dispaly on screen,in fact i dont know how to generate this matrix M!
Azzi Abdelmalek
Azzi Abdelmalek 2013년 9월 2일
post your code
frankenberry
frankenberry 2020년 3월 26일
Azzi, any idea how to output to excel's next row in appdesigner?

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

카테고리

질문:

2013년 9월 2일

댓글:

2020년 3월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by