Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Thread Subject:
How to plot amplitude against frequencey?

Subject: How to plot amplitude against frequencey?

From: Yusof Ghafur

Date: 25 Oct, 2009 02:03:02

Message: 1 of 1

I'm using LabView to get real-time signals from a spectrum analyzer as shown below.

The data is written to a file

The question is how do I plot the amplitude against frequency graph in Matlab just like the one done by LabView?

data = load('09Oct24.fsp');
amplitude = data(:,2);

Now how do I plot amplitude vs frequency graph with frequency axis ranging from 1.2000E+9 to 1.4000E+9 at a specific time?

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us