[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Simple 'for' loop question
From: |
Thomas Weber |
Subject: |
Re: Simple 'for' loop question |
Date: |
Wed, 6 Jun 2007 00:59:38 +0200 |
User-agent: |
KMail/1.9.5 |
Am Dienstag, 5. Juni 2007 23:57 schrieb Rob Teasdale:
> function [CO] = p_area(X,Y,Z,O)
> [R C] = size(X)
> row = 1;
> for i = 1:R
> for j = 1:C
> C = [X(i,j) Y(i,j) Z(i,j)];
You are overwriting your "C" here. Is that intended?
> Output
> octave:3> rob_test
If the above doesn't help, please provide your test script.
Thomas