c++ - Compiling inputdlg Matlab -
i'm trying compile matlab function exe file , i'm having trouble rid on inputdlg part. original matlab code :
prompt={'charge équivalente tnt :','x foyer :','y foyer :','z foyer :'}; title='données'; answer=inputdlg(prompt,title); wcharge = str2double(answer{1}); xfoyer = str2double(answer{2}); yfoyer = str2double(answer{3}); zfoyer = str2double(answer{4}); valide1 = ~ isempty(wcharge) && wcharge>0 && isnumeric(wcharge); valide2 = ~ isempty(xfoyer) && isnumeric(xfoyer); valide3 = ~ isempty(yfoyer) && isnumeric(yfoyer); valide4 = ~ isempty(zfoyer) && isnumeric(zfoyer); check = valide1 + valide2 +valide3 + valide4; if check < 4 disp('données incorrectes') return else end as need rid of curly brackets compile code , can't find alternative prompt={'charge équivalente tnt :','x foyer :','y foyer :','z foyer :'};. have suggestion on how proceed ?
Comments
Post a Comment