Prev: www.voguesneakers.com Cheap Jordans,Cheap Nikes,Cheap Air Max 90
Next: IDEA search - fast read and write on workspace at RUNTIME (Simulink)
From: Charles on 27 May 2010 07:53 Hi guys, I have and N X 2 matrix, which contains 'x' and 'y' axis of my data. Does anyone know how I could reduce the matrix to an N X 1 vector? That is, my 'x' gets plotted against the corresponding value of the row or vice versa. Please help! Charles
From: us on 27 May 2010 08:00 "Charles " <nkwosman(a)yahoo.com> wrote in message <htlmf0$jdv$1(a)fred.mathworks.com>... > Hi guys, > > I have and N X 2 matrix, which contains 'x' and 'y' axis of my data. Does anyone know how I could reduce the matrix to an N X 1 vector? That is, my 'x' gets plotted against the corresponding value of the row or vice versa. Please help! > > Charles one of the solutions - although: not quite sure what you mean by ...data reduction... in your context... n=[ % <- 3x2 1 10 3 11 7 12 ]; subplot(2,1,1); plot(n(:,1),n(:,2)); subplot(2,1,2); plot(1:size(n,1),n(:,2)); us
From: Charles on 27 May 2010 08:10 Hi, that is not what I mean. What I need is a kind of transformation that reduces the number of dimension from of the data from 2 columns to 1 column. > one of the solutions > - although: not quite sure what you mean by ...data reduction... in your context... > > n=[ % <- 3x2 > 1 10 > 3 11 > 7 12 > ]; > subplot(2,1,1); > plot(n(:,1),n(:,2)); > subplot(2,1,2); > plot(1:size(n,1),n(:,2)); > > us
From: us on 27 May 2010 08:25 "Charles " <nkwosman(a)yahoo.com> wrote in message <htlnfe$qkv$1(a)fred.mathworks.com>... > Hi, that is not what I mean. What I need is a kind of transformation that reduces the number of dimension from of the data from 2 columns to 1 column. > > > one of the solutions > > - although: not quite sure what you mean by ...data reduction... in your context... > > > > n=[ % <- 3x2 > > 1 10 > > 3 11 > > 7 12 > > ]; > > subplot(2,1,1); > > plot(n(:,1),n(:,2)); > > subplot(2,1,2); > > plot(1:size(n,1),n(:,2)); > > > > us ??? can you show what you mean using the exemplary N from above(?)... note: x=n(:,1); y=n(:,2); us
From: Charles on 27 May 2010 08:34
"us " <us(a)neurol.unizh.ch> wrote in message <htlob3$oen$1(a)fred.mathworks.com>... > "Charles " <nkwosman(a)yahoo.com> wrote in message <htlnfe$qkv$1(a)fred.mathworks.com>... > > Hi, that is not what I mean. What I need is a kind of transformation that reduces the number of dimension from of the data from 2 columns to 1 column. > > > > > one of the solutions > > > - although: not quite sure what you mean by ...data reduction... in your context... > > > > > > n=[ % <- 3x2 > > > 1 10 > > > 3 11 > > > 7 12 > > > ]; > > > subplot(2,1,1); > > > plot(n(:,1),n(:,2)); > > > subplot(2,1,2); > > > plot(1:size(n,1),n(:,2)); > > > > > > us > > ??? > can you show what you mean using the exemplary N from above(?)... > note: > > x=n(:,1); > y=n(:,2); > > us I have data like this: A=[1 2 3 4 5 6 7 8;1 2 3 4 5 6 7 8]; what I want to achieve is a kind of mapping that will achieve A=[ 2 4 3 5 3 3 5 2]. So that I don't have to use the command plot(A(:,1),A(:,2)) but instead plot(A) and I see the same data. Thanks for your time. Charles |