Measured resonance in RLC -> drawing graphs with Matlab.

Click For Summary

Discussion Overview

The discussion revolves around the process of drawing graphs using Matlab based on measurements from a series RLC circuit. Participants are focused on visualizing data related to the self-inductances of coils and the effects of different circuit configurations on resonance measurements.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Homework-related

Main Points Raised

  • One participant describes their project involving measurements from a series RLC circuit and the need to determine the values of two coils and their self-inductances.
  • Another participant expresses a need to plot data using Matlab and shares a link to an example graph for reference.
  • A participant suggests using the Matlab plot function to draw lines between data points, providing a specific command syntax for plotting.
  • There is a clarification request about drawing dashed max/min lines, indicating a need for further detail on how to achieve the desired graphical output in Matlab.
  • Further suggestions are made regarding the use of the hold command in Matlab to plot multiple lines on the same graph, with examples of how to structure the commands.

Areas of Agreement / Disagreement

Participants generally agree on the methods to use in Matlab for plotting data, but there is no consensus on the exact implementation details or the best approach to achieve the desired results.

Contextual Notes

Participants reference specific data and examples, but there are unresolved details regarding the exact data points and configurations needed for the plots.

Kruum
Messages
217
Reaction score
0
Drawing graphs with errors using Matlab.

I'm writing my first serious report, yay!, from the measurements we made with series RLC -circuit. I'm supposed to determine the values of the two coils we used as well as their self-inductanses. We had four different circuits: R, L1 and C in series, R, L2 and C in series, R, L1, L2 and C in series and for the last one we swapped the direction of the current through L2. For each circuit we did six measurements using six different capacitors.
 
Last edited:
Physics news on Phys.org
Okay, a new try. I've got the data to make a line, now all I have to do is to use some program, preferably Matlab, to draw the lines.
Here's an example of what I mean:
http://www.aijaa.com/img/b/00738/3901755.jpg


And here's the data, where [tex]\Delta[/tex] indicates error:
http://www.aijaa.com/img/b/00931/3901739.jpg
 
Last edited by a moderator:
Do you mean drawing in the dashed max / min lines? If you used the MATLAB plot function with two coordinates, it'll draw a line between them. For instance:

>> plot(dependent, independent, [x1, x2], [y1, y2], '-')

(where x1, y1 is a datapoint and x2, y2 is another) would plot your stuff, and draw a dashed line between the points (x1, y1) and (x2, y2).

http://www.mathworks.com/access/helpdesk/help/techdoc/ref/plot.html
 
MATLABdude said:
Do you mean drawing in the dashed max / min lines? If you used the MATLAB plot function with two coordinates, it'll draw a line between them.

Yep, that's the case. So basically I need to draw three different lines in Matlab to achieve the result pictured in my second post?
 
Kruum said:
Yep, that's the case. So basically I need to draw three different lines in Matlab to achieve the result pictured in my second post?

You could use the hold command, or just add some extra arguments to your plot command:

hold
plot(...)
plot(x-coordinates_of_dashed_line_1, y-coordinates_of_dashed_line_1, '-k')
plot(x-coordinates_of_dashed_line_2, y-coordinates_of_dashed_line_2, '-k')
hold

or do it all in one swoop:
plot(x_points, y_points, x-coords_of_dashed_line_1, y_coords_of_dashed_line_1, '-k', x-coords_of_dashed_line_2, y_coords_of_dashed_line_2, '-k')
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 40 ·
2
Replies
40
Views
7K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 108 ·
4
Replies
108
Views
37K
Replies
44
Views
6K
  • · Replies 8 ·
Replies
8
Views
3K
Replies
2
Views
3K