我有一个matlab文件,工作正常,
我正在尝试使用自动编码器对其进行转换,但是出现错误,
??? Subscripting into an empty matrix is not supported.
ct = 0;
while i <= 1800
[xx, cc, vv] = doSomething(x, somevalue, Param1, dt);
%things happening ...
if something
flowDt(ct+1) = vv;
ct = ct + 1;
end
end
然后我尝试在循环之前声明它,因为我收到了一个错误:
??? Undefined function or variable 'flowDt'.'
flowDt = [];
ct = 0;
while i <= 1800
[xx, cc, vv] = doSomething(x, somevalue, Param1, dt);
%things happening ...
if something
flowDt(ct+1) = vv;
ct = ct + 1;
end
end
现在我不知道是什么导致了这个问题:
??? Subscripting into an empty matrix is not supported.