Converting comma to dot in app designer
Ältere Kommentare anzeigen
Hi, i'm trying to convert a number with comma to number with dot, like "0,25" to "0.25"
In the past i used in GUIDE the follow structure and always worked just fine:
function calcular_cc_geradorButtonPushed(app, event)
escolha_lista_curto = app.escolha_curto.Value
X1_pu = str2double(strrep(app.Z_x1.Value,',','.'));
if strcmp(escolha_lista_curto,'Ex: 1Ø')
app.z_base.Value=X1_pu;
end
end
But now, i'm always getting the same error:
'Value' must be a double scalar within the range of 'Limits'.
What should i do?
Thanks
6 Kommentare
Stephen23
am 4 Mai 2019
Jucimar Carpe
am 4 Mai 2019
Stephen23
am 4 Mai 2019
What is the value of X1_pu ?
Jucimar Carpe
am 4 Mai 2019
Walter Roberson
am 5 Mai 2019
If X1_pu is coming out as double and scalar, then the implication is that Limits is the problem.
Jucimar Carpe
am 5 Mai 2019
Antworten (0)
Kategorien
Mehr zu Legend finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!