Hey Guys!
Today I want to do the following:
I count with a random matriz named wp:
wp=rand(3);
wp =
0.1190 0.3404 0.7513
0.4984 0.5853 0.2551
0.9597 0.2238 0.5060
And a column full of -1 named u:
u= (ones(3,1));
u=-1
-1
-1
Now, the thing I want to do is add the column "u" to the matrix as shone below:
-1 0.1190 0.3404 0.7513
-1 0.4984 0.5853 0.2551
-1 0.9597 0.2238 0.5060
Thanks for your time :)

 채택된 답변

madhan ravi
madhan ravi 2018년 11월 13일

0 개 추천

newmatrix=[u wp]

댓글 수: 2

Valerie Cala
Valerie Cala 2018년 11월 13일
Thanks, really appreciate it :)
madhan ravi
madhan ravi 2018년 11월 13일
편집: madhan ravi 2018년 11월 13일
Anytime :)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

제품

태그

질문:

2018년 11월 12일

편집:

2018년 11월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by