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

New to MATLAB?

Thread Subject:
a minor iteration problem

Subject: a minor iteration problem

From: ravi

Date: 11 Apr, 2010 05:01:03

Message: 1 of 1

Hi guys,

I have the following code:

for iteration = 1:5

A = 2;
B =4;
C =3;

 d_computed = (A + B +C)

 misclosure = [ d_computed]


However, I want my iteration to run such that

my misclosure is as follows

      misclosure = [ previous_d_computed - current_d-computed]

Can any help me out


Tags for this Thread

No tags are associated with 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