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

13 Ansichten (letzte 30 Tage)
Rexx Thomas
Rexx Thomas am 6 Mai 2019
Kommentiert: Marco Soto am 23 Jun. 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

Antworten (3)

Ruben Kopischke
Ruben Kopischke am 25 Mär. 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 am 6 Mai 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 Kommentar
Jannik Heusinger
Jannik Heusinger am 6 Dez. 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.

Melden Sie sich an, um zu kommentieren.


NAVNEET NAYAN
NAVNEET NAYAN am 18 Dez. 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.

Kategorien

Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange

Produkte


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by