[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
OT: why loadcsvfile was: How to use passed Octave string parameters in C
From: |
Andreas Weber |
Subject: |
OT: why loadcsvfile was: How to use passed Octave string parameters in C code from an Oct file |
Date: |
Sat, 22 Mar 2014 20:54:21 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10 |
Am 22.03.2014 20:41, schrieb mpender:
> I am trying to access the content of a charMatrix parameter passed from
> Octave to an Oct file and I'm having difficulty because the code causes a
> segmentation fault every time I run it.
See my other posting for a solution.
I think you should avoid using C functions like fgets in OCT files and
use C++ (for example iostream) instead.
> DEFUN_DLD (loadcsvfile, args, nargout, "load CSV records from a file.")
Why do you want to implement a function to load csv files? Do you know
that there is already csvread and csvwrite in octave-core?
-- Andy