Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
csvwrite

Subject: csvwrite

From: muzaffar

Date: 18 Feb, 2009 15:38:01

Message: 1 of 3

Hi,
I am trying to safe the following :
ch='A2B3C4D5'
csvwrite('path',ch)
Then i need to load data into a variable say var1 so that i can access
var1(2)
=
2
var1(1)
=
A
My problem is var1(2) says index exceeds matrix dimensions.
regards

Subject: csvwrite

From: Robert Henson

Date: 18 Feb, 2009 17:17:02

Message: 2 of 3


"muzaffar" <muzaffarbashir@yahoo.com> wrote in message <gnha0p$1vj$1@fred.mathworks.com>...
> Hi,
> I am trying to safe the following :
> ch='A2B3C4D5'
> csvwrite('path',ch)
> Then i need to load data into a variable say var1 so that i can access
> var1(2)
> =
> 2
> var1(1)
> =
> A
> My problem is var1(2) says index exceeds matrix dimensions.
> regards
Why do you need to use csvwrite?

>> var1 = ch

var1 =

A2B3C4D5

>> var1(2)

ans =

2

>> var1(1)

ans =

A

Subject: csvwrite

From: muzaffar

Date: 18 Feb, 2009 17:29:01

Message: 3 of 3

"Robert Henson" <rob@mathworks.com> wrote in message <gnhfqe$c17$1@fred.mathworks.com>...
>
> "muzaffar" <muzaffarbashir@yahoo.com> wrote in message <gnha0p$1vj$1@fred.mathworks.com>...
> > Hi,
> > I am trying to safe the following :
> > ch='A2B3C4D5'
> > csvwrite('path',ch)
> > Then i need to load data into a variable say var1 so that i can access
> > var1(2)
> > =
> > 2
> > var1(1)
> > =
> > A
> > My problem is var1(2) says index exceeds matrix dimensions.
> > regards
> Why do you need to use csvwrite?
>
> >> var1 = ch
>
> var1 =
>
> A2B3C4D5
>
> >> var1(2)
>
> ans =
>
> 2
>
> >> var1(1)
>
> ans =
>
> A
hi,
Dont know where is problem so i post a question here:
i have variable A (struct) which contains cells R and ch.
ch further contains 5 cells of type A3B4C4D
1. i want to save ch into d:\ and then later load to matlab
i am trying to csvwrite but i have problems
so originally i need to save data of type A3B4C4D and later i want to process it in matlab
regards.

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us