聽起來whos
和disp
是最接近你以後 - disp
可以只通過輸入變量名被調用。對於標量和矩陣,它顯示內容,但對於結構,您可以獲得字段摘要。下面是使用第一隨機數據集,我可以把我的手放在一個例子:
octave-3.6.4.exe:3> load ax204.mat
octave-3.6.4.exe:4> whos
Variables in the current scope:
Attr Name Size Bytes Class
==== ==== ==== ===== =====
dc 1x1 119 struct
index 1x989 7912 double
objects 1x989 15998424 struct
Total is 1979 elements using 16006455 bytes
octave-3.6.4.exe:5> dc
dc =
scalar structure containing the fields:
fps = 2
hdr =
{
[1,1] = Frame
[1,2] = Time
[1,3] = Speed
[1,4] = X Cent
[1,5] = Y Cent
[1,6] = Length
[1,7] = AvgWid
[1,8] = Peri
[1,9] = Round
}
f = 1
t = 2
x = 4
y = 5
l = 6
aw = 7
p = 8
r = 9
octave-3.6.4.exe:6> objects
objects =
1x989 struct array containing the fields:
id
data
n
dir
dist
turn
reversals
merge
omg
rev
defrev
begfr
endfr
previd
begtm
endtm
begxpos
endxpos
begypos
endypos
xcent
ycent
spd
db
ab
如果結構字段非標量,IIRC Matlab是明智的,並說像fieldname: [200x300 double]
,而倍頻歡快轉儲全部內容。
您能否提供一個您要加載到Octave中的數據集示例? – juliohm