How to change table to 2x1 double for app designer?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Thi Ng
el 21 de Abr. de 2020
Respondida: Thi Ng
el 27 de Abr. de 2020
Hi Everyone,
I am trying to translate my script from the editor to app designer. I am lacking to understand how my data input for MATLAB editor is different from the input for the app designer.
- case input is a variable with a value of 2x1 double (my script works with this)
- case input would be an excel file uploaded by the user (causes error: Unrecognised function or variable)
The code to upload the excel file is:
[file, path] = uigetfile('*.xlsx');
data = readtable(fullfile(path, file));
app.UITable.Data = data;
data2 = app.UITable.Data
The second case would be a table. The difference in the input files causes an error. I don’t want to change the rest of the script as it is coded for a scatterplot with specified colormaps, it would be a pain to change it again. I am just looking for a way to transform the table into a suitable format.
I am very new to MATLAB and would appreciate any kind of help.
Thanks,
Update: table2array gives me the following error:
2 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!