|
From: | Przemek Klosowski |
Subject: | Re: [Maxima-discuss] Z-Transforms |
Date: | Fri, 8 Jul 2016 12:12:15 -0400 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 |
On 07/07/2016 03:11 PM, Stavros
Macrakis (Σταῦρος Μακράκης) wrote:
I thought "challenge accepted" and tried to write this in a
vectorized shortcut, but I couldn't hack it. I start by T=eye(11,10);T(:,1)=1;
repmat(1:10,11,1).*shift(T,1)+(repmat((1:11)',1,10)-repmat(1:10,11,1)+1).*shift(shift(T,1),1,2) but I couldn't see how to nicely write the rest without explicit
loops. Can anyone suggest an approach? |
[Prev in Thread] | Current Thread | [Next in Thread] |