フィルターのクリア

Storing varying sized arrays in a single matrix

2 ビュー (過去 30 日間)
William
William 2015 年 4 月 14 日
コメント済み: William 2015 年 4 月 14 日
I want to store multiple different sized arrays from values 0-1 in a single matrix.
  1. [0 , 1]
  2. [0 , 0.5, 1]
  3. [0 , 0.25, 0.5, 0.75, 1]etc. etc.
The code below doesn't work but it gives a conceptual sign post
range=linspace(1,10,10);
matrix=linspace(0,1,range);
Hope that makes sense,
Will

採用された回答

per isakson
per isakson 2015 年 4 月 14 日
That isn't possible. However, you may "store multiple different sized arrays" in a cell array
cac = {[0 , 1],[0 , 0.5, 1],[0 , 0.25, 0.5, 0.75, 1], etc. }
  1 件のコメント
William
William 2015 年 4 月 14 日
thought as much, cheers

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by