How to create an array like this? with dot after the number
1 回表示 (過去 30 日間)
古いコメントを表示
Hi, Can anyone tell me how can I create an array like this in matlab? 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1. 1.
thank you very much!
採用された回答
Oleg Komarov
2012 年 5 月 15 日
You can create such an array just as a string:
sprintf('%.f. ',ones(10,1))
0 件のコメント
その他の回答 (1 件)
Walter Roberson
2012 年 5 月 15 日
There is no numeric difference between that and the array without the dot.
Is the dot for display purposes? If so then what is it being displayed to ?
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Operators and Elementary Operations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!