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 ExchangeDeep 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