Undefined function or method 'csv2mat' for input arguments of type 'char'.

  • Follow


Hello friends,
I am new to Matlab and so may be this is a stupid question but please help me if possible.

I have to work on some csv files which contain the sensor readings and I am supposed to import these readings in Matlab. So I begin with this function 

run ('D:\01_FrameSWCheck\01_FrameSWCheck\csv2mat.m')
converting  D:\MTS_Config_CV-Sensor\Snapshot_2009.12.17_at_16.29.25.rec_10000us.csv  ... done

But as soon as as try to operate the second function stated below it gives me an error :
srl_struct=csv2mat('D:\MTS_Config_CV-Sensor\Snapshot_2009.12.17_at_16.29.25.rec_10000us.csv');

Undefined function or method 'csv2mat' for input arguments of type 'char'.

Please let me know what this means n how can I get rid of it.
0
Reply ashish 8/23/2010 11:25:06 AM

"ashish kanadia" <ashishkanadia@gmail.com> wrote in message <i4tlqh$6he$1@fred.mathworks.com>...
> Hello friends,
> I am new to Matlab and so may be this is a stupid question but please help me if possible.
> 
> I have to work on some csv files which contain the sensor readings and I am supposed to import these readings in Matlab. So I begin with this function 
> 
> run ('D:\01_FrameSWCheck\01_FrameSWCheck\csv2mat.m')
> converting  D:\MTS_Config_CV-Sensor\Snapshot_2009.12.17_at_16.29.25.rec_10000us.csv  ... done
> 
> But as soon as as try to operate the second function stated below it gives me an error :
> srl_struct=csv2mat('D:\MTS_Config_CV-Sensor\Snapshot_2009.12.17_at_16.29.25.rec_10000us.csv');
> 
> Undefined function or method 'csv2mat' for input arguments of type 'char'.
> 
> Please let me know what this means n how can I get rid of it.

Hi Ashish, cvs2mat.m is not a Mathworks' function. Apparently somebody at your site has written that function or gotten it from somewhere else. But that error seems to indicate that MATLAB cannot find cvs2mat.m in your path. If you enter:

>>which cvs2mat

do you get a path to cvs2mat.m, or do you get
'cvs2mat' not found.
 It seems from your earlier call that cvs2mat.m is in the D:\01_FrameSWCheck\01_FrameSWCheck directory. You can try adding that to your path

>>addpath 'D:\01_FrameSWCheck\01_FrameSWCheck'

Finally, are you sure that:
run ('D:\01_FrameSWCheck\01_FrameSWCheck\csv2mat.m')
converting  D:\MTS_Config_CV-SensorSnapshot_2009.12.17_at_16.29.25.rec_10000us.csv  ... done

has not produced the output you need? I'm just inferring from the message with "done" at the end.

Wayne
0
Reply Wayne 8/23/2010 12:20:08 PM


Thanks Wayne..
Your information really helped.


"Wayne King" <wmkingty@gmail.com> wrote in message <i4tp1o$45p$1@fred.mathworks.com>...
> "ashish kanadia" <ashishkanadia@gmail.com> wrote in message <i4tlqh$6he$1@fred.mathworks.com>...
> > Hello friends,
> > I am new to Matlab and so may be this is a stupid question but please help me if possible.
> > 
> > I have to work on some csv files which contain the sensor readings and I am supposed to import these readings in Matlab. So I begin with this function 
> > 
> > run ('D:\01_FrameSWCheck\01_FrameSWCheck\csv2mat.m')
> > converting  D:\MTS_Config_CV-Sensor\Snapshot_2009.12.17_at_16.29.25.rec_10000us.csv  ... done
> > 
> > But as soon as as try to operate the second function stated below it gives me an error :
> > srl_struct=csv2mat('D:\MTS_Config_CV-Sensor\Snapshot_2009.12.17_at_16.29.25.rec_10000us.csv');
> > 
> > Undefined function or method 'csv2mat' for input arguments of type 'char'.
> > 
> > Please let me know what this means n how can I get rid of it.
> 
> Hi Ashish, cvs2mat.m is not a Mathworks' function. Apparently somebody at your site has written that function or gotten it from somewhere else. But that error seems to indicate that MATLAB cannot find cvs2mat.m in your path. If you enter:
> 
> >>which cvs2mat
> 
> do you get a path to cvs2mat.m, or do you get
> 'cvs2mat' not found.
>  It seems from your earlier call that cvs2mat.m is in the D:\01_FrameSWCheck\01_FrameSWCheck directory. You can try adding that to your path
> 
> >>addpath 'D:\01_FrameSWCheck\01_FrameSWCheck'
> 
> Finally, are you sure that:
> run ('D:\01_FrameSWCheck\01_FrameSWCheck\csv2mat.m')
> converting  D:\MTS_Config_CV-SensorSnapshot_2009.12.17_at_16.29.25.rec_10000us.csv  ... done
> 
> has not produced the output you need? I'm just inferring from the message with "done" at the end.
> 
> Wayne
0
Reply ashish 8/24/2010 10:46:04 AM

2 Replies
645 Views

(page loaded in 0.075 seconds)

Similiar Articles:













7/19/2012 3:23:37 PM


Reply: