How to create an array like this? with dot after the number

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!

 Respuesta aceptada

You can create such an array just as a string:
sprintf('%.f. ',ones(10,1))

Más respuestas (1)

Walter Roberson
Walter Roberson el 15 de Mayo de 2012
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 ?

Categorías

Más información sobre Operators and Elementary Operations en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 15 de Mayo de 2012

Community Treasure Hunt

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

Start Hunting!

Translated by