我使用Octave生成並保存了大量數據文件,現在我需要在MATLAB中打開它們作爲分析它們的一部分。 MATLAB吐出這個錯誤。 Error using load
Unable to read MAT-file
[file path]/PhPar_40.mat: not a binary MAT-file.
Try LOAD -ASCII to read as text.
嘗試其加載-A
我試圖使用GNU八度在3D中繪製四個點。所以我開始先定義它們。 a = [1 2 3];
b = [-1 0 -1];
c = [5 4 3];
d = [1 0 -2];
接下來,我嘗試了plot3(a,b,c,d, 'o'),但我很快放棄了這個想法。相反,我寧願使用兩次plot3函數將它與hold on分開。 plot3(a,b,'o')
hold on
plot3(c,d);
我使用Oct2Py爲了在我的Python代碼中使用一些M文件。比方說,我有這個簡單的Matlab的功能: function [a, b] = toto(c);
a = c;
b = c + 1;
end
,如果我把它稱爲八度會發生什麼明顯: >> [x,y] = toto(3)
x = 3
y = 4
現在,如果我把它在Python,使用oct2py: from