help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CSV Files


From: marco atzeri
Subject: Re: CSV Files
Date: Tue, 07 Aug 2012 11:53:17 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0

On 8/7/2012 10:43 AM, Ryan Brooks wrote:
Hi Marco,

I got the directory working, so the file loads. I've just posted back
but I'll send it on here. Need to get this file sorted ASAP:

Ok, i've found the directory by using "ls"

Can you give me an example on how to convert the file? The file name is
elettra.mat

I'm trying "csvwrite (elettra.csv, elettra.mat)

But getting: "error: "elettra" undefined near line 6 column 11" ?


Thanks
Ryan


the file name should be between "" otherwise
csvwrite will look for a variable called elettra.csv
to use its content as filename.

octave:3> a=round(10)
a =  10
octave:4> csvwrite("elettra.csv",a)

Moreover is elettra.mat a variable ?
Try using who to see all the existing variables you want to save

octave:5> who
Variables in the current scope:

a

Regards
Marco




reply via email to

[Prev in Thread] Current Thread [Next in Thread]