[Top][All Lists]

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

Re: How do I store Symbolic matrix?

From: Colin Macdonald
Subject: Re: How do I store Symbolic matrix?
Date: Thu, 22 Nov 2018 14:44:19 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0

On 2018-11-22 1:48 p.m., r1f1 wrote:
   MatRot(:,:,i) = [[cos(theta(1,i)), -cos(alpha(1,i))*sin(theta(1,i)),
sin(alpha(1,i))*sin(theta(1,i)), a(1,i)*cos(theta(1,i))];
           [sin(theta(1,i)), cos(alpha(1,i))*cos(theta(1,i)),
-sin(alpha(1,i))*cos(theta(1,i)), a(1,i)*sin(theta(1,i))];
           [0, sin(alpha(1,i)), cos(alpha(1,i)), d(1,i)];
           [0, 0, 0, 1]];

This is unfortunately a well-known bug.  Replace that last row with

[sym(0), 0, 0, 1]];

and it will work.  This is a bug in the Octave interpreter:


reply via email to

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