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 17:12 Well Tideman, thanks for the compliment about the politician part :-), however, I earned the reputation out of my ignorance and not out of wish. If I could have framed the question the way u did, I would have done that to earn the reputation of the 'scientist' :-) which I am. Anyway, I am grateful to all u guys to took out the time to help, Steve, US, etc. All u guys are doing a great job. Charles TideMan <mulgor(a)gmail.com> wrote in message <6ee2f64e-305d-418d-8b22-f31472c3256c(a)e34g2000pra.googlegroups.com>... > On May 28, 7:39 am, "Charles " <nkwos...(a)yahoo.com> wrote: > > Hi Steve, > > > > the problem earlier was that the I have many of such data (150), so I thought that I took only one column, I will lose information in the process. > > > > Here is how I tackled the problem. > > I got the global minimum and maximum of the data. Used > > x= linspace(min,max,total_points) to generate the x axis. > > and then used the 'interp1' function to evaluate each of the data pairs, and take the 'y-axis' as my single column that I sought. > > > > To visualise my data, I just plot (x,y) and it works ok. As I am interested in knowing new things, how does > > f = @(A) A(:, 1) > > really work? Couldn't figure it out. Anyway, thanks a lot for your assistance. > > > > Charles > > > > "Steven Lord" <sl...(a)mathworks.com> wrote in message <htm8ai$g2...(a)fred.mathworks.com>... > > > > > "Charles " <nkwos...(a)yahoo.com> wrote in message > > >news:htlram$fb8$1(a)fred.mathworks.com... > > > > Hi, > > > > > > thanks for your information. Unfortunately, I cannot take one column and > > > > ignore the other. > > > > Here is a sample of my data > > > > > > 0.066842 0.17721 > > > > 0.57632 0.30842 > > > > 1.0858 0.44874 > > > > 1.5953 0.58121 > > > > 2.1047 0.69558 > > > > 2.6142 0.78242 > > > > 3.1237 0.84037 > > > > 3.6332 0.88074 > > > > 4.1426 0.91695 > > > > 4.6521 0.95016 > > > > 5.1616 0.97679 > > > > 5.6711 0.991 > > > > 6.1805 0.997 > > > > 6.69 1 > > > > > > Any kind of transformation that will reduce the data to one column will be > > > > fine. Thanks. > > > > > You contradict yourself. You say here that any kind of transformation will > > > be fine as long as it reduces the data to one column. Well, here's one: > > > > > f = @(A) A(:, 1) > > > > > But you said in your second sentence that this transformation is not > > > acceptable. Well, why not? > > > > > You need to give more details about what, SPECIFICALLY, you're trying to do > > > before we can figure out how to help you. > > > > > -- > > > Steve Lord > > > sl...(a)mathworks.com > > > comp.soft-sys.matlab (CSSM) FAQ:http://matlabwiki.mathworks.com/MATLAB_FAQ > > > To contact Technical Support use the Contact Us link on > > >http://www.mathworks.com > > Charles: > You should get a job as a politician. > You have an innate ability to obfuscate. > You could have saved a lot of time by just asking: > I have a set of points x,y. The x are monotically increasing, but not > equally spaced. How can I generate a set of y at equispaced intervals > of x? > > Then us and Steven would have responded: > help interp1 > and that would have been that. |