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

13 views (last 30 days)
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

Answers (3)

Ruben Kopischke
Ruben Kopischke on 25 Mar 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 on 6 May 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 Comment
Jannik Heusinger
Jannik Heusinger on 6 Dec 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.

Sign in to comment.


NAVNEET NAYAN
NAVNEET NAYAN on 18 Dec 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.

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Products


Release

R2019a

Community Treasure Hunt

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

Start Hunting!