Biomod/2011/Caltech/DeoxyriboNucleicAwesome/Protocols: Difference between revisions
From OpenWetWare
Jump to navigationJump to search
No edit summary |
|||
Line 8: | Line 8: | ||
*How to analyze fluorescence experiments (when we learn this) | *How to analyze fluorescence experiments (when we learn this) | ||
*How we ran experiments... | *How we ran experiments... | ||
===How to Open SPEX Data in MATLAB=== | |||
*Open up MATLAB and use File->Import Data | |||
*Navigate to the raw-text (.txt) data file and open it | |||
*The table on the right should show eight rows, where the odd ones are the times associated with the signal from the row under them. The top set is sample 1; the next is 2, the next is 3, the bottom set is sample 4. Press "next." | |||
*Optionally right click on "data" and rename it to whatever you want. This isn't necessary unless you're afraid of your data getting overwritten eventually when you import another set. | |||
*Click "finish." | |||
*Your data should be visible in the "workspace" window with the name "data" or whatever you might have renamed it to. Right click on it -> "open selection" to view it. | |||
*To plot a single sample's data, use this, where "data" is the name of your data variable: | |||
:<syntaxhighlight lang="matlab">plot(data(1, :), data(2, :))</syntaxhighlight> | |||
*To plot all four samples' data on the same plot, use this: | |||
:<syntaxhighlight lang="matlab">plot(data(1, :), data(2, :), data(3, :), data(4, :), data(5, :), data(6, :), data(7, :), data(8, :))</syntaxhighlight> | |||
{{Template:DeoxyriboNucleicAwesomeFooter}} | {{Template:DeoxyriboNucleicAwesomeFooter}} |
Revision as of 15:40, 15 July 2011
Friday, April 19, 2024
|
ProtocolsThings that need to be written
How to Open SPEX Data in MATLAB
|