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.

 Akzeptierte Antwort

Rik
Rik am 14 Apr. 2018

0 Stimmen

Something like this maybe?
y=x*ones(NRows,1);

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Hilfe-Center und File Exchange

Produkte

Gefragt:

am 14 Apr. 2018

Beantwortet:

Rik
am 14 Apr. 2018

Community Treasure Hunt

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

Start Hunting!

Translated by