Pinning a Particular Value to a Matlab Plot

3 visualizaciones (últimos 30 días)
Gibliano
Gibliano el 9 de Ag. de 2012
I have the following results in Matlab and I want to plot them over frequency
The frequency range from 2-9GHz
2.00E+09 3.00E+09 4.00E+09 5.00E+09 6.00E+09 7.00E+09 8.00E+09 9.00E+09
Some of the E-Field values are as follows
0.084413291 0.082622802 0.080392527 0.077424061 0.073389164 0.067507708 0.05822189 0.04197535
The frequencies will go on the X-Axis with the Electric Field Values on Y. The plot will ahve many different ranges of E Field Values.
How can I do this in Matlab? I have done many plots before but not where I have had to put a particular label on an axis
So essentially, I want to plot fequency vs amplitude for many values over different frequencies on the same graph
  1 comentario
Jan
Jan el 19 de Ag. de 2012
What exactly is the problem? What have you tried so far?

Iniciar sesión para comentar.

Respuestas (1)

Jan
Jan el 19 de Ag. de 2012
Perhaps this helps to solve "_The plot will have many different ranges of E Field Values_":
x = [2.00E+09, 3.00E+09, 4.00E+09, 5.00E+09, 6.00E+09. 7.00E+09, 8.00E+09, 9.00E+09];
y = [0.084413291, 0.082622802, 0.080392527, 0.077424061, 0.073389164, 0.067507708, 0.05822189, 0.04197535];
z = y + 0.1;
axes('NextPlot', 'add'); % Equivalent to "hold('on')"
plot(x, y, 'r');
plot(x, z, 'g');
But what is the problem with the labels?

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by