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

14 ビュー (過去 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
  1 件のコメント
Ecem Çetinyol
Ecem Çetinyol 2019 年 9 月 4 日
Did you find any solution for question 1?

サインインしてコメントする。

回答 (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 Center および File ExchangeDevelop 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