matlab中的array.Add()

时间:2013-11-20 12:17:22

标签: matlab

MATLAB中有.Add()函数吗? 我有无效(第一步)数组,我想在C#语法中将过滤后的实验数据放入其中(我不知道在实验期间我会发现多少数据)非常简单:

 List<T> filteredData = new List<T>(); // declare and initialize 'array' of unknown length(right now it 0) typeof T
 .
 .
 //do something and find proper result - "value" variable   
 //save it to filtered array
 filteredData.Add(value); // now length of filteredData == 1

这里是MATLAB:

filteredArray = [];
%...
for n =2 : count -1
 foundedValue = experimentData[n];
 % how to do
 %filteredArray.ADD(foundedValue) ?? 
end

1 个答案:

答案 0 :(得分:1)

filteredArray(end+1)=foundedValue