フィルターのクリア

Expanded use of .* operator

2 ビュー (過去 30 日間)
Paul Mennen
Paul Mennen 2023 年 3 月 22 日
コメント済み: Steven Lord 2023 年 3 月 22 日
When you type:
>> (1:6) .* (1:3)'
You get:
ans =
1 2 3 4 5 6
2 4 6 9 10 12
3 6 9 12 15 18
This works in recent Matlab versions going back to R2018a (which is as far back as the on-line documentation will go).
But it doesn't work in R2013b. (It gives an error which says that incorrect dimensions were used.) Does anyone have access to any of the versions between those two to help me pin down more precisely when this expanded use of the times operator was introduced?
Thanks
~Paul

採用された回答

John D'Errico
John D'Errico 2023 年 3 月 22 日
編集済み: John D'Errico 2023 年 3 月 22 日
R2016b
No need for access. That is when it appeared.
Before that, bsxfun was needed. bsxfun appeared in R2007a. Before that, we needed to use tools like repmat. And before that we used pencil and paper. Things were hard back then.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by