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

조회 수: 15 (최근 30일)
Rexx Thomas
Rexx Thomas 2019년 5월 6일
댓글: Marco Soto 2021년 6월 23일
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

답변 (3개)

Ruben Kopischke
Ruben Kopischke 2020년 3월 25일
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 2019년 5월 6일
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
Jannik Heusinger
Jannik Heusinger 2019년 12월 6일
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.

댓글을 달려면 로그인하십시오.


NAVNEET NAYAN
NAVNEET NAYAN 2019년 12월 18일
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.

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by