help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help-octave Digest, Vol 20, Issue 35


From: James Sherman Jr.
Subject: Re: Help-octave Digest, Vol 20, Issue 35
Date: Thu, 15 Nov 2007 10:39:52 -0500

I'm not sure exactly what you want to do in the boundary cases, but I
think this is what you want:

G = A(3:end,:)./(A(1:end-2,:).*A(2:end-1,:));
GT = A(1:end-2,:)./(A(3:end,:).*A(2:end-1,:));

Hope this helps.

On Nov 15, 2007 9:58 AM, Oscar Bayona Candel
<address@hidden> wrote:
>
>  Hi all,
>
>  Sorry if this question is too easy.
>
>  Supose a matrix A that is sized (N,M) N=row M=colum
>
>  I want to create two new matrix:
>
>  A new matrix G that divide all rows (each element of the row) of A by the
> two rows before (or previos) from A. The problem is that I create a new
> matrix using for...end and the firsrt row is alwais a zeros row. An I want
> that the command eliminates the row it is not able to calculate.
>
>  A new matrix GT matrix that divde each row of of A by the next two rows of
> A.
>
>
>  Thanks for all in advance.
>
>
>
>
> ________________________________
> Express yourself instantly with MSN Messenger! MSN Messenger
>
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www.cae.wisc.edu/mailman/listinfo/help-octave
>
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]