MATLAB: I want to change [3,2,4](1×3 matrix) to 324(1×1 matrix) any help

MATLABmatrix manipulation

i know i can do it by 3*100 + 2*20 + 4 but is there any cleaner method?

Best Answer

polyval(yourvector, 10)
would also work
But what if your vector is [30, 20, 40]?