How to use "image/imagesc" in Matlab App Designer
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Mathworks documentation Matlab 2017b indicates that is capable of supporting the "image" function in uiaxes to handle 2D arrays of numerical data. I am having trouble getting this to work using the current code that I have in App Developer:

This is the output I get using the above code in app designer:

Below is the normal matlab code that I have to produce the desired figure output:
image(AllFrames(:,:,20)) % 2D array of numerical data
axis equal

0 comentarios
Respuestas (1)
Walter Roberson
el 28 de Nov. de 2017
You are using functions with static workspaces -- you have an end statement matching the function statement.
Static workspaces cannot have variables "poofed" into them using uiopen('load') or load() without an output or using assignin().
You need to use uigetfile() to get the file to load, and you need to load() and assign that to a variable, and pull the appropriate fields out of the structure that results.
2 comentarios
Ver también
Categorías
Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!