フィルターのクリア

How to construct matrix?

11 ビュー (過去 30 日間)
Jenny Andersen
Jenny Andersen 2019 年 12 月 8 日
コメント済み: Rik 2019 年 12 月 8 日
So I have written the following 4*3 matrix but I want to construct it with 'ones' and '.*' but I am unsure how to.
[12 2 1; 4 12 1; 6 2 1; 2 4 1];
  1 件のコメント
Rik
Rik 2019 年 12 月 8 日
What exactly is your goal?

サインインしてコメントする。

回答 (2 件)

FraFal
FraFal 2019 年 12 月 8 日
Hi,
I don't know if I understood correctly, but you can concatenate two matrices:
  • M1 = ones( size(M) ); --> matrix of '1';
  • M2 = sym('.*',[4 3]); --> symbolic matrix 4x3;
BR,
FraFal

Jenny Andersen
Jenny Andersen 2019 年 12 月 8 日
編集済み: Jenny Andersen 2019 年 12 月 8 日
This seems like a good idea, but I can't seem to run the script.

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by