Hi,
I am trying to convert a 1×1 cell to 1×1 double using str2double. An explanation is as follows:
M.c = str2double(T(test, x))
M: 1×1 struct with a field c
T: table
test: row number in T
x: column number in T
Matlab version: R2020b
PS: The individual values in (test,x) are of type double but since they are inside a table they are converted to 1×1 cell type and therefore I have to convert it to 1×1 double array.
Problem: I am getting 'NaN' when I try to set the value of M.c. I am expecting a double to be set there since the program is structured in that way.
Thank you.
Best Answer