Info

この質問は閉じられています。 編集または回答するには再度開いてください。

problem with xlswrite function

1 回表示 (過去 30 日間)
Umberto
Umberto 2013 年 5 月 31 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hello everybody. I have an array of numbers called "a" which contains some integer values from -2 to 2; If I write
disp(a);
I see in the matlab window all its values but with
xlswrite('data.xls', a, 1, 'H2:H102');
Every value is turned to 0. How this is possible?

回答 (1 件)

Image Analyst
Image Analyst 2013 年 5 月 31 日
This works just fine for me:
a = randi(5, [101,1])-3
disp(a);
xlswrite('data.xls', a, 1, 'H2:H102');
I see all the numbers in Excel like I expect.

この質問は閉じられています。

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by