Code covered by the BSD License  

Highlights from
plotting contents of a csv spreadsheet

Be the first to rate this file! 8 Downloads (last 30 days) File Size: 1.88 KB File ID: #34932

plotting contents of a csv spreadsheet

by Stephan Koehler

 

05 Feb 2012

convenience function for plotting columns of a spreadsheet

| Watch this File

File Information
Description

This script opens a csv (comma-separated-file) and plots the contents as specified by the user. In addition to simply plotting columns, mathematical functions of columns can be plotted as well (i.e. '1+2' where '1' is the first column, and '2' is the second column).

help csvplot:

plots contents from a .csv file, which just contains numeric data and can
 be opened using csvread.
   plt = csvplot( file, {var x}, {var y1}, {var y2} ..., optional )
  where {var x} specifies the x variable using either an integer for the
 column number or 'c' + column number, i.e. {var x} = 'c1' for the first column.
  likewise {var y1} specifies the first y variable using 'c' + column number, i.e.
  {var y1} = 'c2' for the second column.
  Also, standard math operations can be specified using a character string, i..e {var y1} = 'c1+c2.^3'
 
 for some examples just run csvplot without any arguements.

MATLAB release MATLAB 6.5 (R13)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
data import Stephan Koehler 06 Feb 2012 09:13:10
plotting Stephan Koehler 06 Feb 2012 09:13:10

Contact us at files@mathworks.com