How to read .tif as .mat file?

2 次查看(过去 30 天)
Azzadiva Sawungrana
Azzadiva Sawungrana 2016-10-10
编辑: Marc Jakobi 2016-10-10
I tried to read my .tif file as .mat and my fixed model didn't accept it. Is there something wrong in this code?
if true
load z.mat
z=double(imread(z.tif));
% code
end

回答(1 个)

Marc Jakobi
Marc Jakobi 2016-10-10
编辑:Marc Jakobi 2016-10-10
Not sure what you are trying to do. Do you have a .tif file called z.tif? Then the solution would be to specify the .tif file as a string:
z = double(imread('z.tif'));

类别

Help CenterFile Exchange 中查找有关 Workspace Variables and MAT-Files 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by