Simple array outputing the same number of length(n)

4 visualizaciones (últimos 30 días)
Tanil
Tanil el 20 de Abr. de 2013
Hi, I am trying to create an array of 20 elements all 0.25 i.e.
A = 0.25 0.25 0.25 0.25 0.25 0.25 0.25 .... 0.25 of length 20
There must be a way without writing the array manually
Kind regards

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 20 de Abr. de 2013
A=0.25*ones(1,20)

Más respuestas (0)

Categorías

Más información sobre Matrices and Arrays en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by