AppDesigner questions: 1) Image path 2) numerical value output

17 visualizaciones (últimos 30 días)
Rexx Thomas
Rexx Thomas el 6 de Mayo de 2019
Comentada: Marco Soto el 23 de Jun. de 2021
I'm BRAND NEW to MATLAB and I have a project due in just a few hours. There are a couple of things that I have been stuck with for a few days now.
1) Every time I try to add an image, in AppDesigner, it let's me place the box, but then when I hit browse it give me an error message: "Before specifying the imagesource file, add it to the MATLAB path. I have the image in the samefile that the app I'm working on is in. I have also tried to move it around to viturally every place that MATLAB is on my computer with no luck. Any help.
2) How can I make a result from a function be a numerical output rather than a say a graph?
Thanks

Respuestas (3)

Ruben Kopischke
Ruben Kopischke el 25 de Mzo. de 2020
1) Every time I try to add an image, in AppDesigner, it let's me place the box, but then when I hit browse it give me an error message: "Before specifying the imagesource file, add it to the MATLAB path. I have the image in the samefile that the app I'm working on is in. I have also tried to move it around to viturally every place that MATLAB is on my computer with no luck. Any help.
You have to add the folder to the path:
In the Current Folder Tab of Matlab right-click the Folder, the image file is inside and click "Add to Path/Selected Folder"
2) How can I make a result from a function be a numerical output rather than a say a graph?

Rexx Thomas
Rexx Thomas el 6 de Mayo de 2019
I found the answer to number 2 via this link:
similar question Only I had to change it to an "Edit Field(numeric)" rather than "Text Area" because I was computing a value.
And I have no idea why, but so far my image is just suddenly available. No idea how to explain it. I tried 50 things. Nothing worked. Then suddenly without me making any adjustments it was there.
  1 comentario
Jannik Heusinger
Jannik Heusinger el 6 de Dic. de 2019
Concerning the 1. question: I had the same error message and I could solve it by putting the image in the same folder where my app file is located.

Iniciar sesión para comentar.


NAVNEET NAYAN
NAVNEET NAYAN el 18 de Dic. de 2019
For your 1st query:
Select image from the component library (on the left side of App Designer) and then in the component browser (on the right side of App Designer) there will be app.Image. There in the image source click browse button and add the image you want to add.
I did in the same manner.

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Productos


Versión

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by