无法在Matlab中分配数组

时间:2019-04-01 07:42:09

标签: matlab

我想基于2个单元数组:Piste和Data创建一个信号数组(因此是一个数组数组)。程序signal()获得它必须提取的信号编号以及它必须累加的列,并且它本身可以工作。

但是当我启动时:

Piste = mainapp.Piste;
[s,~]=size(Data);
app.x=[];
app.y=[];
app.name=[];
app.time=[];
for i=1:s
    [app.x(i),app.y(i),app.name,app.time]=signal(Data{i},Piste);
end

我得到Unable to perform assignment because the indices on the left side are not compatible with the size of the right side. 我认为问题出在app.x(i)和app.y(i),但我不知道如何解决(名称和时间始终相同)。

谢谢您的帮助

0 个答案:

没有答案
相关问题