سؤال

i would like to know how i can add a figure to my inputdlg() in matlab. I would like to show a small figure i created to help with filling in the input. This is my input dialog i have.

    prompt       = {'Length:'};
    dlg_title    = 'Straight Duct specs';
    num_lines    = 1;
    SDelements   = {'0'};
    Straightduct = inputdlg(prompt,dlg_title,num_lines,SDelements);

Perhaps some one can show me the way? cheers

هل كانت مفيدة؟

المحلول

Unfortunately, neither the built-in inputdlg nor the more powerful user-contributed inputsdlg natively offer the possibility to add axes (and thus images) to the dialog window.

Your best guess is to create your own dialog window via GUIDE, or to modify inputsdlg.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top