MATLAB - Cell Arrays and Structures
What will be the output of this MATLAB code?
strVal = '123.45'; numVal = str2double(strVal); disp(class(numVal));
strVal = '123.45'; numVal = str2double(strVal); disp(class(numVal));
str2double() converts string to numeric double type.class(numVal) returns the data type, which is 'double'.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions