Prev: Matlab upgradation
Next: MATLAB, SPSS, R
From: tuba yilmaz on 17 Feb 2010 07:41 Hi, I am simulating a microstrip transmission line in CST and i am getting an output in a text file frequency vs data. I am plotting it in matlab. After running several simulations i obtained a number of output files and i would like to find (first or second) maximum or minimum in each data set and compare them by composing another graph to see how the frequency of minimum (or maximum) shifts. i would really appreciate your help! (note that data i have has a standing wave (or sinusoidal) pattern) Thanks, Tuba
From: ImageAnalyst on 17 Feb 2010 08:07 tuba yilmaz: How about the findpeaks() function in the Signal Processing Toolbox, imregionalmax() in the Image Processing Toolbox, or any number of similar routines in the File Exchange? http://www.mathworks.com/matlabcentral/fileexchange/
From: tuba yilmaz on 19 Feb 2010 10:43 ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <0448524a-7ba5-48f5-a169-382bf2ad5eb2(a)y33g2000yqb.googlegroups.com>... > tuba yilmaz: > How about the findpeaks() function in the Signal Processing Toolbox, > imregionalmax() in the Image Processing Toolbox, or any number of > similar routines in the File Exchange? > http://www.mathworks.com/matlabcentral/fileexchange/ Hi, I have data points so i don't need to recover the data from image. What i need is a function which is going to return say 3rd minimum with its frequency. So i need the minimum and its index. Thanks, Tuba
From: ImageAnalyst on 19 Feb 2010 11:16 Despite their names, the Signal and Image processing toolboxes work on regular numerical arrays - you don't need to consider them as signals or images if you don't want to. So I'm not sure why these won't work for you. Can you give a small array as some demo data?
From: tuba yilmaz on 19 Feb 2010 12:36 ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <256b08be-0e24-4f35-93c9-59428f829c52(a)q29g2000yqn.googlegroups.com>... > Despite their names, the Signal and Image processing toolboxes work on > regular numerical arrays - you don't need to consider them as signals > or images if you don't want to. So I'm not sure why these won't work > for you. Can you give a small array as some demo data? The data sets are about 2X2000 so i don't know how to make it shorter it but i will try:) Freq in GHz Data in dB 0.1 -17.56693 0.1248 -16.01657 0.1324 -15.1229 0.141 -14.00747 0.1516 -13.01164 0.164 -12.00437 0.1732 -11.00126 0.1814 -10.0071 0.199 -8.019792 0.213 -6.149978 0.2356 -3.0104 0.259 -2.979083 0.271 -4.970572 0.2826 -7.959924 0.2934 -9.993517 0.3072 -11.99171 0.3153 -13.95706 0.3297 -17.91168 0.3363 -19.92628 0.351 -24.94026 0.3633 -30.02634 0.3795 -39.95042 0.3861 -41.38602 0.3942 -36.48106 0.4095 -29.97194 0.4194 -27.4194 0.432 -25.09739 0.4425 -23.65886 0.4842 -20.01034 0.5151 -18.0491 0.6 -14.13352 0.6585 -13.03737 0.6783 -12.68283 0.7368 -10.6178 0.7971 -7.978503 0.8511 -4.708547 0.9294 -3.978193 0.9789 -8.088342 1.0572 -16.256 This lists goes till 3 GHz. And i have a lot of data in separate txt files each text file holds about same number of maxtrix freq vs data. what i need is a script thats going to find say 2nd max in this list (0.9789 -3978193) and return both frequency and data. Thanks, Tuba
|
Pages: 1 Prev: Matlab upgradation Next: MATLAB, SPSS, R |