Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Assign a value to a specific matrix location
Replies: 4   Last Post: Dec 6, 2012 10:02 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 75
Registered: 4/23/12
Assign a value to a specific matrix location
Posted: Dec 5, 2012 1:16 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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 :


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 :-)

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum 1994-2015. All Rights Reserved.