MATLAB: A basic matlab problem

MATLABurgent

Hello all,
If I want to create a matrix of for example 9.5 with a specific size i.e. [9.5 9.5 …. 9.5], what should I do?

Best Answer

A=9.5*ones(3,4)