help in inserting figure and also open another window using a gui.
現在この質問をフォロー中です
- フォローしているコンテンツ フィードに更新が表示されます。
- コミュニケーション基本設定に応じて電子メールを受け取ることができます。
エラーが発生しました
ページに変更が加えられたため、アクションを完了できません。ページを再度読み込み、更新された状態を確認してください。
古いコメントを表示
I have written script files which includes functions in it. These functions deal with displaying figure. What is that i should do inorder to work all these on a single gui. Will this gui can cal another gui window in it? Can anybody help me with some ideas or suggest a link that i can refer to. Thankyou Nithya
採用された回答
Chandrasekhar
2014 年 3 月 7 日
you can add 'axes' to your figure file of GUI so that the figure will get displayed in the same gui.
8 件のコメント
Nithya
2014 年 3 月 11 日
can you please give me an example showing the command
let me understand your question clearly.. do u want to display the image in another window.. or do you want to display all the images in a single window?
Nithya
2014 年 3 月 12 日
for exapmle when i write a function in pushbutton callback, i want an image to be displayed which should be done in the same gui window.
Chandrasekhar
2014 年 3 月 12 日
編集済み: Chandrasekhar
2014 年 3 月 12 日
Attached example can help you. if you want to display image then replace the plot command with
image(imread('images.jpg'))
madam, if i have one axes image in a gui and when i press each pushbutton i want the respective image to fall in that image axes. So i can use the same
%%if X is my image,
image(X)
under each push button would display it right.
Yes. do u want to have one axes for each push button or replace the image in the axes every time the push button is pressed.
Nithya you confused everyone I guess! Do us a favor, attach your file so we can exactly see what you're talking about. Meanwhile, it would be a good idea to create a handle for your axes so that you can specify where you want to see the image
h=figure;
figure(h); % makes your figure window current
a=axes();
imshow(cdata,colormap,'Parent',a); % this shows image on axes a on figure h
Good Luck!
Nithya
2014 年 3 月 14 日
I got things done..I thankyou both for your help.
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Creating, Deleting, and Querying Graphics Objects についてさらに検索
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
- América Latina (Español)
- Canada (English)
- United States (English)
ヨーロッパ
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
