Creating Bode Plot in MATLAB - Tieske90

In summary, the conversation discusses a series of measurements taken on a printer's printhead, using a sinusoidal signal at varying frequencies and steps. The individual is seeking to create a bodeplot of the amplitude data, but is unsure of what units to use on the y-axis. They ultimately decide to plot the peak-to-peak movement of the printhead on a log-log scale.
  • #1
Tieske90
1
0
Hi everybody,

I did a few measurements at a printer.
I have a signal that i put in the printer that gives the printerhead a speed.

I have put a sinus on the printerhead, and did this at different frequencies with the same signal strength (20 to 500 Hz, with steps of 15 Hz).
I want to make a bodeplot now with these results of the amplitudes.
But what will there be on the y-axis? I know it has a factor of 20log(...), so it's in dB.


Thanks in advance,

Tieske90
 
Physics news on Phys.org
  • #2
Tieske90 said:
Hi everybody,

I did a few measurements at a printer.
I have a signal that i put in the printer that gives the printerhead a speed.

I have put a sinus on the printerhead, and did this at different frequencies with the same signal strength (20 to 500 Hz, with steps of 15 Hz).
I want to make a bodeplot now with these results of the amplitudes.
But what will there be on the y-axis? I know it has a factor of 20log(...), so it's in dB.


Thanks in advance,

Tieske90

Plot the peak-to-peak movement of the printhead. Use log-log axes, so you will have numbers like 1cm, 0.1cm, 0.01cm on the vertical axis, and numbers like 10Hz, 100Hz, 1000Hz on the horizontal axis.
 
  • #3


Hi Tieske90,

Creating a Bode plot in MATLAB can be a useful tool for analyzing the frequency response of a system, in this case a printer. Your measurements of the printerhead speed at different frequencies using a sinusoidal signal will allow you to plot the amplitude response of the printer.

The y-axis of the Bode plot represents the amplitude response in decibels (dB). This is because the Bode plot is a logarithmic plot, with the amplitude being represented on a logarithmic scale. The factor of 20log(...) is a conversion from the linear scale to the logarithmic scale, as the human ear perceives changes in amplitude on a logarithmic scale.

I would recommend using the MATLAB function "bode" to create your Bode plot, as it will automatically convert your amplitude data to the logarithmic scale and plot it accordingly. This will allow you to clearly see the frequency response of the printer and identify any peaks or dips in the response.

I hope this helps and good luck with your Bode plot!

Best,
 

1. How do I create a Bode plot in MATLAB?

To create a Bode plot in MATLAB, you can use the bode() function. This function will take in the transfer function of your system as an input and plot the magnitude and phase response for a range of frequencies. You can also customize the plot by adjusting the frequency range, adding grid lines, and labeling the axes.

2. What is a Bode plot and why is it useful?

A Bode plot is a graphical representation of the frequency response of a system. It shows the magnitude and phase of the system's output in response to different frequencies. Bode plots are useful because they provide insight into the stability, gain, and phase characteristics of a system, which can aid in system design and analysis.

3. How do I interpret a Bode plot?

The magnitude plot on a Bode plot represents the gain of the system, while the phase plot represents the phase shift. The frequency at which the magnitude plot crosses the 0 dB line is called the cutoff frequency and is an important measure of the system's bandwidth. The phase plot can also indicate the stability of the system, with a phase shift of 180 degrees indicating instability.

4. Can I create a Bode plot for a discrete-time system in MATLAB?

Yes, you can create a Bode plot for a discrete-time system in MATLAB using the bode() function. However, you will need to convert the discrete-time transfer function into a continuous-time transfer function using the c2d() function first. Then, you can use the bode() function as usual.

5. How can I export a Bode plot from MATLAB for use in a report or presentation?

To export a Bode plot from MATLAB, you can use the saveas() function. This function will save the plot as an image file, such as a JPEG or PNG, which you can then insert into your report or presentation. You can also customize the size and resolution of the exported plot using the set() function before saving.

Similar threads

  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
1K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
4K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
3
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
11
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
4
Views
3K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
3K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
4K
Back
Top