【发布时间】:2019-10-16 12:36:17
【问题描述】:
我想在 Octave 中运行我的 MATLAB 脚本,但在使用 Octave 中尚不存在的 table 函数时遇到问题。
我要使用的表格摘录如下所示:
Rotation angle Measured distance
-0,342 0,000
-1,440 0,000
-10,422 0,000
-11,574 0,000
-21,060 0,000
-21,528 0,000
-30,402 0,000
为了创建我的输出变量,我在 MATLAB 中使用以下代码。
data = table;
data.Rotationangle = cell2mat(raw(:, 1));
data.Measureddistance = cell2mat(raw(:, 2));
在 Octave 中我得到以下错误。
warning: the 'table' function is not yet implemented in Octave
Please read <https://www.octave.org/missing.html> to learn how you can
contribute missing functionality.
error: 'table' undefined near line 102 column 8
error: called from
Cloud_reconstruction at line 102 column 6
我现在的问题是,是否有机会替换 Octave 中的表格功能?我试图用 Octave data frame 包找到解决方案,但实际上并没有。
在同一个脚本中,我还使用了 table2array 函数,该函数还没有在 Octave 中实现,以后也会出现错误。
data = table2array(data);
如果有人可以帮助我,我会很高兴。
【问题讨论】: