photo

Tianyi Yu


2019 年からアクティブ

Followers: 0   Following: 0

統計

Feeds

表示方法

質問


How to reuse the same format
For example, this code has nine "%7.0f" and one "%5.0f". Is there any way I can simplify this code, like "repmat('%7.0f' , 9)" ,...

約5年 前 | 2 件の回答 | 0

2

回答

回答済み
How to reuse the same format
OK i think i solved this problem already: fmt = ['# defaults-> %5.0f',repmat('%7.0f',1,8),'%7.0f\n',]; fprintf(fmt,header);

約5年 前 | 0

| 採用済み