Date: Dec 5, 2012 1:16 PM
Author: Matt
Subject: Assign a value to a specific matrix location

Hello !

I have a small problem here. I have a matrix of this type :

-------------------
A=[1, 2, 3, 4]
-------------------

And basically what I want to do is this :

-------------------
A(1)=4;
-------------------

So I can modify the first entry (for example). My question is how can I do this with an assignin function ? I was thinking that this may work, but it doesn't :

-------------------
assignin('base', 'A(1)', 6);
-------------------

I need to use that assignin function in my program.

Any advice on how that case could be solved ?

Cheers :-)