HOW TO GET DATA (imaginary) FROM FREQUENCY RANGES

3 views (last 30 days)
Hello everybody I am trying to get data points from a trace. Each point (Y axis) corresponds to a different frequency (X axis). I know the number of points, and the start and end frequencies of each range. But there are two or more frequency ranges. The delta of frequency is different from one range to another. So
Does anyone know how to do it, please?
  1 Comment
Image Analyst
Image Analyst on 9 Jan 2016
What form is your input data in? A text file? An Excel workbook? Some picture printed in a paper journal? A CSV file? sagrario, you need to supply more info - we need something to go on if we are to help you. http://www.mathworks.com/matlabcentral/answers/728-how-do-i-write-a-good-question-for-matlab-answers

Sign in to comment.

Accepted Answer

Star Strider
Star Strider on 8 Jan 2016
If you need to read data from an Excel spreadsheet, use the xlsread function. As for plotting them, see the documentation for the fft function (even if the data you have is already in the frequency domain, the plot documentation there will be helpful).

More Answers (2)

sagrario dominguez
sagrario dominguez on 18 Jan 2016
My complex data are the result of the measurements done with the Vector Network Analyzer 4395A: any of the scattering parametters which characterize one device. The Vector Network Analyzer 4395A works (in my case) in the "SWEEP LIST MODE", that is, there may be several frequency ranges, and several frequency points at each range. The attached table could be the display of one of my setups.
Here segment is either of the frequency ranges. START, STOP are the start and stop measurements frequencies, POINT is the nubmer of points at each range. And POWE and BW are the power and bandwith used for measuring
I can get the list of my data on the instrument display/screen, via MATLAB. But I can't manage to get these values in the command window.
Thanks for the suggestion, although I do not know yet how to use fft fft function in this case
  1 Comment
Star Strider
Star Strider on 18 Jan 2016
There is essentially nothing in that file. The ‘raw’ output (the third output of xlsread) is:
[d,s,r] = xlsread('sagrario dominguez DISPLAY.xls');
r =
Columns 1 through 5
'Possible display …' [ NaN] [ NaN] [ NaN] [ NaN]
[ NaN] [ NaN] [ NaN] [ NaN] [ NaN]
'segment ' 'START ' 'STOP' ' POIN ' 'POWER'
[ NaN] [ NaN] [ NaN] [ NaN] [ NaN]
[ 1.0000e+000] '100 KHz     ' ' 1MHz ' [10.0000e+000] '0dBm'
[ 2.0000e+000] '2 MHz' '20MHz' [10.0000e+000] '0dBm'
Column 6
[ NaN]
[ NaN]
'IFBW '
[ NaN]
'10Hz'
'10Hz'

Sign in to comment.


sagrario dominguez
sagrario dominguez on 19 Jan 2016
I am also making use of the programming manual of the VNA 4395A network analyzer

Categories

Find more on Multichannel Audio Input and Output in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!