From: Petra Fava on
"David Young" <d.s.young.notthisbit(a)sussex.ac.uk> wrote in message <hod84c$n7k$1(a)fred.mathworks.com>...
> "Petra Fava" <petrafava(a)gmail.com> wrote in message <hod7r1$i72$1(a)fred.mathworks.com>...
> ...
> > but then if i have to create another 100x100 random matrix from a uniform distribution on the interval [-5,1] ... do i do the same thing for this?
> ...
>
> Then you'd use
>
> 6*rand(100,100)-5;
>
> See help rand

ok that worked well thanks :) hopefully i'll manage everything else that i've got to do
From: Petra Fava on
How is it possible to create a matrix which takes the absolute value of all negative entries of matrix A and leaves the non-negative entries of A unchanged?
From: dpb on
Petra Fava wrote:
> How is it possible to create a matrix which takes the absolute value of
> all negative entries of matrix A and leaves the non-negative entries of
> A unchanged?

Well, perhaps

lookfor absolute % might help?


--
From: Petra Fava on
How is it possible to add a column to a matrix?

sorry but as u can see my teachers notes aren't very informative :/
From: Rock Bean on
ok i managed the addition part but now the column is the last column and i need that particular column to be after the 6th column ...

how can it be moved from the 100th column to the 6th column?