I have the following:
syms x;
F = {3*x,2*x,x};
I would like to make F the following array G:
G = [3*x,2*x,x];
To do this, I have tried this:
G = double(F);
and this:
G = double([F{:}]).';
Neither options work. Is there a way to do this in MATLAB?
G = [3*x,2*x,x]work? If so, thenG = [F{:}]should work as well, I think.G = [3*x,2*x,x]works and so doesG=[F{:}]!G = [3*x,2*x, x]should not be the answer for at least what you have posted above. You have written thatGis your desired output result when your input isF = {3*x,2*x,x};