merge 1x4 vectors together ?

1 回表示 (過去 30 日間)
Elbr
Elbr 2015 年 5 月 9 日
編集済み: Elbr 2015 年 5 月 22 日
i've made a function that overwrites vector Z. I want to save every non-empty vector in a matrix A.
Z =
[]
Z =
0 8 35 101
Z =
125 50 750 20
Z =
1 321 90 700
Z =
[]
Z =
1 321 90 700
Z =
57 75 0 1,2
Z =
[]
i have tried to solve it with
if size(Z) ~= [0 0]
A(1:4 , :) = Z
but it doesn't work.

回答 (1 件)

Walter Roberson
Walter Roberson 2015 年 5 月 9 日
A(end+1,:) = v;

カテゴリ

Help Center および File ExchangeModify Image Colors についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by