Hello guys!
For example:
This code will insert my name in A1 cell in Excel:
xlswrite('test.xls',{'Aldin'},1,'A1');
Right? But what is if i will to remove my name from A1 cell. Is there a function in MATLAB for removing data from Excel? And also for updating.....
Thanks.

 채택된 답변

Sean de Wolski
Sean de Wolski 2011년 12월 16일

0 개 추천

From:
doc xlswrite
I would actually conclude the opposite, and that it can be done easily:
MATLAB converts NaN values to empty cells

댓글 수: 5

Aldin
Aldin 2011년 12월 16일
Say here if you know the function how to remove data from cell
Sean de Wolski
Sean de Wolski 2011년 12월 16일
set it to a NaN...
Aldin
Aldin 2011년 12월 16일
Thanks Sean
Aldin
Aldin 2011년 12월 16일
the cyclist is also good in answering with empty string '' ???
Aldin
Aldin 2011년 12월 16일
for everbody her:
xlswrite('igra.xls',NaN,1,'A1');
by Aldin Habibovic helping by Sean de Wolski :)

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

추가 답변 (1개)

the cyclist
the cyclist 2011년 12월 16일

0 개 추천

I don't know how to delete the contents, but one effective solution might be to write an empty cell:
>> xlswrite('test.xls',{''},1,'A1');

댓글 수: 2

Aldin
Aldin 2011년 12월 16일
Thanks!
empty string :) i know
Can we than conclude that there is no function in MATLAB for my question???
the cyclist
the cyclist 2011년 12월 16일
I do not use Excel via MATLAB much, because the functionality is crippled on a Mac. I would NOT conclude that it cannot be done, just based on my one answer.

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

카테고리

태그

질문:

2011년 12월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by