Doesn't appear all the title in the Gui
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Fabio Retorta
le 11 Août 2016
Commenté : Image Analyst
le 12 Août 2016
Hello guys, The title just appear Energetic Po... What I can do to appear Energetic Power Criteria in the title of the GUI I dont know how to solve this problem.
This is the code
Msg = { 'Relative weights of LCOE criteria' 'Relative weights of regulatory criteria' 'Relative weights of technology criteria' };
Title = 'Energetic Power Criterium ';
NumLines = 1;
PrefVal = {'3' '1/4' '5'};
options.Resize='off';% configuração da interface
options.WindowStyle='modal';%configuração da interface
options.Interpreter='tex';%configuração da interface
Data = inputdlg(Msg,Title,NumLines,PrefVal, options);%Interface usuário (MUITO IMPORTANTE)
a_34 = str2num(Data{1});% Número de identificação da propriedade
a_35 = str2num(Data{2});
a_36 = str2num(Data{3});
1 commentaire
Geoff Hayes
le 11 Août 2016
Fabio - manually resizing it might be the only option. See http://www.mathworks.com/matlabcentral/answers/101326-how-can-i-make-an-input-dialog-box-created-by-inputdlg-wide-enough-to-show-the-entire-title for details.
Réponse acceptée
Image Analyst
le 12 Août 2016
2 commentaires
Image Analyst
le 12 Août 2016
You forgot to pass def into inputdlg as the fourth argument. Here is the fixed code:
N = 22;
prompt = {'Peso em relação ao critério Potencial Energético' 'Peso em relação ao LCOE'...
'Peso em relação ao critério Regulatória' 'Peso em relação ao critério Tecnologia' };
title_text = 'Critério Indice Impacto Socio Ambiental';
num_lines = 1;
def = {'8' '1/9' '2' '1/2'};
caUserResponse = inputdlg(prompt, title_text, [1, length(title_text)+N], def);
options.Resize='on';
options.WindowStyle='modal';
options.Interpreter='tex';
a_23 = str2num(def{1});
a_24 = str2num(def{2});
a_25 = str2num(def{3});
a_26 = str2num(def{4});
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Measurements and Feature Extraction dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!