I would like to create, given x and NRows, a vector y that is NRows*1 and every element of y is x. Please advise.

 Réponse acceptée

Rik
Rik le 14 Avr 2018
Something like this maybe?
y=x*ones(NRows,1);

Plus de réponses (0)

Catégories

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by