save a vector in an array
古いコメントを表示
Hi! I have this loop and i want to save the index (ind) in a vector or array. How should i do this
i thougt about a=[a;ind], but it was not true.
%code
for l=1:length(date_time_l)
[~, ind] = min(abs(numdates-(date_time_l(l))));
end
%end of code
i thougt about a=[a;ind], but it was not true.
thank you
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Phylogenetic Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!