I use readtable to input an Excel file into Matlab.
T1 = readtable('AA.xlsx');
Now I know T1(3,48) = '32WC20110812', but I get an error when using the below command to assign the string to app.expo.Value:
app.expo.Value = T1(3,N);
Here is the error:
Error using matlab.ui.control.EditField/set.Value (line 98)'Value' must be a character vector or a string scalar.Error in A01_dataLoading_Tool/LoadheaderButtonPushed (line 279) app.expo.Value = T1(3,N); Error using matlab.ui.control.internal.controller.ComponentController/executeUserCallback (line 335)Error while evaluating Button PrivateButtonPushedFcn.
What I'm missing? Thanks!
Best Answer