統計
MATLAB Answers
2 質問
0 回答
ランク
of 171,361
コントリビューション
0 問題
0 解答
スコア
0
バッジ数
0
コントリビューション
0 投稿
コントリビューション
0 パブリック チャネル
平均評価
コントリビューション
0 ハイライト
平均いいねの数
Feeds
質問
I have a function "f" that returns a 1x2 vector, and I need to make a 3x2 matrix M by stacking the outputs f(x1), f(x2), f(x3) on top of each other, but Matlab won't parse it.
First, I wrote: M = [f(x1); f(x2); f(x3)] That didn't work - it gave me only the first outputs of every f (resulting in a 3x1 ...
約4年 前 | 1 件の回答 | 0
1
回答質問
Why is a statement like "sortrows(A)(2:4)" "invalid array indexing" and how can I circumvent adding an extra line of code to make it work?
I could write: sorted = sortrows(A) sorted(2:4) However this seems clumsy and unnecessarily long to me. How can I compress it...
約4年 前 | 1 件の回答 | 0

