matlab figure size code example
Example 1: matlab matrix size
d = size(X) % Returns sizes of each dimension of array X in a vector d.
[m,n] = size(X) % Returns the size of matrix X in separate variables m and n.
m = size(X,dim) % Returns the size of the dimension of X specified by scalar dim.
Example 2: matlab how to set figure size so you can see plot
h1=figure(1);
plot(t,y)
set(h1,'Position',[10 10 500 500])