increment row in excel from matlab script
3 ビュー (過去 30 日間)
古いコメントを表示
Deepan Muthusamy
2021 年 7 月 7 日
回答済み: Johannes Hougaard
2021 年 7 月 7 日
i want a matrix [1x5], i want to write this into an excel sheet in the following pattern,
the [1x5] should repeat 256 times in the row and also should repeat 256 times in column.
Basically i want a [256x256] matrix of [1x5] matrix. i dont know how to increment the row row and column number.
2 件のコメント
Image Analyst
2021 年 7 月 7 日
Are you saying you want a 1x5 vector of numbers to all be inside a single cell of the spreadsheet?
採用された回答
Johannes Hougaard
2021 年 7 月 7 日
I think the easiest would be to keep your matrix in MATLAB and make the large matrix in MATLAB before writing the Excel sheet.
the_matrix = randn(1,5);
the_pattern = repmat(the_matrix,256,256);
writematrix(the_pattern,"thisisanexcelfile.xlsx");
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Spreadsheets についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!