(See this Wikipedia article for a quick review of Power law fits.) So linear curve fits are easy in MATLAB — just use p=polyfit(x,y,1), and p(1) will be the slope and p(2) will be the intercept. Power law fits are nearly as easy. Recall that any data conforming to a linear fit will fall along …
Category Archives: Matlab
Using Matlab to Make Animations from Excel Simulation Results
One of the faculty has some axisymmetric diffusion simulation code written in Excel and VBA. He didn’t think his 2D graphs of chemical concentration along a particle’s radius would be suitable for an audience he’d be presenting to, and that they’d be better served seeing an animation of how the concentration varied over time and …
Continue reading “Using Matlab to Make Animations from Excel Simulation Results”
Converting National Instruments LVM Timestamps to Excel (UPDATED: and Matlab)
A few days ago, I had a student looking into what would be required to periodically log some temperatures and pressures from a long-running furnace experiment, so that he doesn’t have to babysit it and come back every 30 minutes to record his data. We borrowed a National Instruments USB-6008 data acquisition device and downloaded …
Continue reading “Converting National Instruments LVM Timestamps to Excel (UPDATED: and Matlab)”
Exporting Figures from MATLAB
I just discovered the WordPress.com MATLAB feed today. Frinkytown’s complaint about copying and pasting figure reminded me of things I had to do to write my M.S. thesis, and other things I discovered afterwards: MS Word is the devil, and Equation Editor is its evil spawn. When I started writing my thesis, I had been …