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.

 채택된 답변

Rik
Rik 2018년 4월 14일

0 개 추천

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

제품

태그

질문:

2018년 4월 14일

답변:

Rik
2018년 4월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by