How to save calculated values in same column but in different row?

1 回表示 (過去 30 日間)
Awais Khan
Awais Khan 2020 年 2 月 8 日
回答済み: KSSV 2020 年 2 月 8 日
Actually i want to save extracted features in one column but in different rows which is obtained obtain from different techniques. how can i save it, below is the code of it.

採用された回答

KSSV
KSSV 2020 年 2 月 8 日
You should save something like this:
N = 10 ;
A = zeros(N,1) ; % initialize the array to store required values
% loop
for i = 1:N
% do calculation get value
myval = rand ;
% save the result
A(i) = myval ;
end

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by