利用matlab展示并读取.h5文件内容

Posted 大闸謝Gemini

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了利用matlab展示并读取.h5文件内容相关的知识,希望对你有一定的参考价值。

data = h5read(filename,datasetname)
data = h5read(filename,datasetname,start,count)
data = h5read(filename,datasetname,start,count,stride)

从HDF5中显示数据

h5disp('SPECT-MRI_24.h5')

从HDF5中读取数据:

data = h5read('SPECT-MRI_24.h5','/data')

我再查看一下我的数据:

figure(),
subplot(1,2,1);imshow(data(:,:,1:3));title('SPECT');
subplot(1,2,2);imshow(data(:,:,4:6));title('MRI');

以上是关于利用matlab展示并读取.h5文件内容的主要内容,如果未能解决你的问题,请参考以下文章

安卓手机h5上传excel

vue使用readAsDataURL实现选择图片文件后预览

h5+echarts大屏数据展示经验总结

ctfshow-WEB-web12( 利用代码执行漏洞读取敏感文件)

ctfshow-WEB-web14( 利用数据库读写功能读取网站敏感文件)

云原生之使用Docker部署h5ai文件展示页