Effacer les filtres
Effacer les filtres

Doesn't appear all the title in the Gui

2 vues (au cours des 30 derniers jours)
Fabio Retorta
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});

Réponse acceptée

Image Analyst
Image Analyst le 12 Août 2016
  2 commentaires
Fabio Retorta
Fabio Retorta le 12 Août 2016
Modifié(e) : Image Analyst le 12 Août 2016
I do understand your code, but I still have some problem.
I will be thankful if you can help me.
First, the pre-defined values (numbers) do not show in the GUI.
Second, when i put the numbers in the lines of GUI, it do not save these numbers on the variables.
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]);
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});
Image Analyst
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});

Connectez-vous pour commenter.

Plus de réponses (0)

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!

Translated by