matlap

Thread Starter

TAKYMOUNIR

Joined Jun 23, 2008
352
what is the different between
z=zeros(size(1,100))
and
z=zeros(size(100))
and
z=zeros(size(100,1))
i run these codes but i do not see the different
so can someone explain the different
thanks
 

MrChips

Joined Oct 2, 2009
30,823
Start off with the lowest level function. Ignore the zeros( ) function and size( ) function for now.

type 10,12 or 1,23

the result is 12 and 23

size( ) will return the size of the object.

size(100) is simply 1.

type in 100,1 or 1,100
the result is a scalar

hence size(scalar) is 1

zeros(1) is 0
 
Last edited:
Thread starter Similar threads Forum Replies Date
T Programming & Languages 2
T Homework Help 1
T Homework Help 1
E Programming & Languages 0
Top