loading . mat file and displaying it using imagesc?

Import the data acquired from a fluorescence CCD camera called 06.mat Then perform the following:display with function imagesc(). I have no idea why I am not able to get the imagesc to work right with my .mat file.I feel like this should be a simple thing to do but I am struggling.... Can anyone help please???
Z = load('06.mat');
figure(1)
imagesc(Z)

3 comentarios

Adam
Adam el 14 de Nov. de 2019
Editada: Adam el 14 de Nov. de 2019
Well, we don't know what 'not able to get imagesc to work right' means? Do you get an error? A blank image? The wrong image? Something else?
The output of the load function is a struct though, so you can't pass that directly to imagesc. At a guess I would imagine that is the problem you are having.
There should be a field on Z which contains your image. Pass that to imagesc instead
e.g.
imagesc( Z.someFieldName )
John Nowak
John Nowak el 14 de Nov. de 2019
I see what you are saying. I have tried running it with imagesc( Z.someFieldName ) and it is now giving me an error saying "Invalid expression. Check for missing or extra characters." ??
John Nowak
John Nowak el 14 de Nov. de 2019
I got it. I appreciate the tip you gave. I had to reload matlab and once i did it worked. thank you!!

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Read, Write, and Modify Image en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 14 de Nov. de 2019

Comentada:

el 14 de Nov. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by