plotting contents of a csv spreadsheet

版本 1.0.0.0 (1.9 KB) 作者: Stephan Koehler
convenience function for plotting columns of a spreadsheet
637.0 次下载
更新时间 2012/2/5

查看许可证

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.

引用格式

Stephan Koehler (2024). plotting contents of a csv spreadsheet (https://www.mathworks.com/matlabcentral/fileexchange/34932-plotting-contents-of-a-csv-spreadsheet), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R13
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Spreadsheets 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0