MATLAB: Multiply a scalar to all column of a table

MATLABmultiplyscalartable

I've a table, T. I want to mulitply a scalar to all values in the table (similary to scalar multiplication of a matrix e.g. 2*rand(5,5)).
I tried 10*T, it doesn't work.
Any suggestions?

Best Answer

Suppose T is your table variable with it's variable name Var1
T.Var1 = 10*T.Var1;