The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Automating an iterative procedure
Replies: 9   Last Post: Feb 25, 2013 3:39 AM

Advanced Search

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

Posts: 9,850
Registered: 6/7/07
Re: Automating an iterative procedure
Posted: Feb 23, 2013 3:18 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 2/23/2013 2:04 PM, Milos Milenkovic wrote:
> K1=[-0.2582 -18.596 0 -0.2582;
> -34.737 -1300.188 0 -34.737;

> for i=1:100
> B1(1)=[0.01 0.02 0.07 0.03;
> 0.02 0.05 0.06 0.02;
> 0.07 0.09 0.01 0.03;
> 0.01 0.03 0.02 0.04];


No, but why would you want to duplicate a constant array anyway?
Sometimes for matrix operations there's a need/desire to do so, but
generally a temporary via repmat() or some other technique would be more
reasonable than just holding multiple copies of the same array.

B1(1) refers to a single array location whereas the rhs is an array.
"Can't put 5-lbs of 'taters in a 1-lb tote" to use the E TN vernacular.

Only a cell array element can hold another array.


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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.