xlswritespec

Allows you to format your output when you export to Excel.
ダウンロード: 5.1K
更新 2005/8/23

ライセンスがありません

The script performs the same function as xlswrite with the added functionality of formatting the data at the particular location written into, so for example if you want to write headers in blue and numbers in gold, you can do this. The example below illustrates how you can write 400 random numbers into a file using the modified script and the original script from MATLAB 7.0, I hope the formatted one looks cleaner to you

Data = rand(20,20)
params.Bold = 'false';
params.FontSize = 10;
params.FontName = 'Verdana';
params.ColorIndex = 14;
params.NumberFormat = '0.000';
xlswritespec('Exemplar.xls',Data,'Example',['B2'],params)
xlswrite('Exemplar.xls',Data,'Example',['B26'])

Hope the script is useful, I am not responsible for any hair loss, money, gray hair or other good / bad things which happen. The script is extremely useful for me and I thought I should try to share it. Oh I would like to acknowledge xlswrite for the basic structure, I just hacked in a few more lines, I cannot be bothered looking up the file ID.

引用

Chandramouli Chandrasekaran (2025). xlswritespec (https://www.mathworks.com/matlabcentral/fileexchange/8345-xlswritespec), MATLAB Central File Exchange. に取得済み.

MATLAB リリースの互換性
作成: R14SP1
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersSpreadsheets についてさらに検索

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0