Input data with editable uitable in app designer?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Beatriz Ruiz
am 17 Jun. 2018
Beantwortet: Beatriz Ruiz
am 17 Jun. 2018
I want the user to write numbers and then turn this numbers(doubles) into an array of doubles. I tried with an uitable and the following code, but I have problems with the function cell2mat when I introduce different numbers (e.g. 2, 10 and 0.01)
data=app.UITableEnventanado.Data(:,1)
data1=cell2mat(data)
data2=str2double(data1)
the error is this:
Error using cat
Dimensions of arrays being concatenated are not consistent.
Error in cell2mat (line 83)
m{n} = cat(1,c{:,n});
Thanks
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!