Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Topic: Converting z data to matrix
Replies: 3   Last Post: Jan 28, 2013 11:11 AM

 Search Thread: Advanced Search

 Messages: [ Previous | Next ]
 Ian Posts: 14 Registered: 9/21/10
Re: Converting z data to matrix
Posted: Jan 26, 2013 11:19 AM
 Plain Text Reply

"Ian" wrote in message <ke0stn\$is9\$1@newscl01ah.mathworks.com>...
> Hi guys,
>
> I wonder if any one could be so kind to help me with what I'm sure is probably relatively straight forward. If I have x,y, and z data as follows:
>
> X= 1 2 3 4 5
> y= 1 2 3 4 5
> z= 8 4 9 7 3
>
> Is there any way of making z into the matrix from the above:
>
> Z= 0 0 0 0 3
> 0 0 0 7 0
> 0 0 9 0 0
> 0 4 0 0 0
> 8 0 0 0 0
>
> This is just an example data set my data set is much bigger than this but I figured if there is a way of converting z into the example matrix and could apply the same method to my much bigger data set.
>
> Any help would be much appreciated.

Date Subject Author
1/26/13 Ian
1/26/13 dpb
1/26/13 Ian
1/28/13 Steven Lord

© The Math Forum at NCTM 1994-2017. All Rights Reserved.