[問題] 請問該如何畫h5檔案的圖?

看板MATLAB作者 (teeo)時間13年前 (2012/06/19 22:34), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
請問一下 我在跑一個模擬軟體MEEP 他跑玩的結果是.h5的檔案 而且會出現不只一個.h5檔案 我該怎樣用matlab來讀取這樣的群組.h5檔 然後,應該怎樣才能畫圖 我在網路上找到這個資訊 %% Read an hdf5 image and plot in MATLAB %% Load the hdf5 file in MATLAB info = hdf5info('hdf5_test.h5'); %% Find the addres of the image % The operation must be done manually and the position inside the structure % could be variable depending on the structure itself address_data_1 = info.GroupHierarchy.Groups(3).Datasets(5).Name; %% Query the database image1 =hdf5read('hdf5_test.h5',address_data_1); %% Plot the image figure imagesc(image1) 不過在執行info.GroupHierarchy.Groups(3).Datasets(5).Name這邊時出現錯誤 (看不太懂說明的意思) 請問我該怎麼改? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.37.173.190
文章代碼(AID): #1Fu8tu_b (MATLAB)