How to plot Ixt with monologarithmic scale and find linear fit

AI Thread Summary
To create an i(t) × t graph for an RC circuit with the current plotted on a logarithmic scale, the user seeks guidance on using Origin, Mathematica, or MATLAB for this task. The goal is to plot raw data on the y-axis in logarithmic scale and find a linear fit. A suggestion was made to consider the exponential behavior of the data and propose a fitting equation to minimize error, but the user clarified that they are looking to plot the data directly in logarithmic form without transforming the values beforehand. They also mentioned having an exponential form for the data, indicating a theoretical basis for the expected results. Further assistance with the specific software tools is requested.
carlosbgois
Messages
66
Reaction score
0
I have some experimental data of a simple RC circuit, which I measured in fixed time intervals the current through an microamperimeter, and now I need to make an i(t) × t graph, with the vertical axis on a logarithmic scale (so my points fall into a 'straight' line), and then I need to find the linear fit for that.

Until now I was using Origin for creating all graphs I needed, but I only know the real basic stuff, and couldn't find my way on solving this particular problem. I also have Mathematica and MATLAB available, so if you do not know how to do that on Origin but know on any other software, it would also be helpful.

Thanks
 
Physics news on Phys.org
Hhhmmm...I think you are making matters more confusing by attempting to fit a "straight line" of numbers you have taken the log of...

...if you KNOW that your points follow exponential behavior, you should propose the form of the equation that should generate your points, then, determine the constants in such equation as to minimize the error with your data points (least squares).

does this make sense? or did I totally misunderstood your problem?
 
Thanks for your answer. I may not have been very clear, but I did not take the log of my number, I just need to plot the raw data in an logarithmic scale (only on the y axis), and then find the linear fit and plot also using that scale.

Your other alternative is also considerable, because I do have the exponential form for which my points theoretically corresponds. But either this way, I have no idea of how to do it.
 
Here are a couple of links, hope they help.

one
two
 

Similar threads

Back
Top