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!
No products are associated with this question.
You can create such an array just as a string:
sprintf('%.f. ',ones(10,1))
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 ?
1 Comment
Direct link to this comment:
http://www.mathworks.com/matlabcentral/answers/38425#comment_79498
What do you need it for?