From help-octave-request at bevo dot che dot wisc dot edu Sun Jan 23 00:08:05 2000 Subject: follow a simple Matlab program but not work on octave2.0.14 From: eric To: help-octave at bevo dot che dot wisc dot edu Date: Sat, 22 Jan 2000 10:25:05 -0900 This is a multi-part message in MIME format. --------------52E6D2E9BC3C24D7EB7DC68B Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Dear Octave expert: I follow the simple program in book "Matlab for Engineers" by Adrian Biran and Moshe Breiner published by Addison Wesley page 185 figure 4.10 but called in octave2.0.14, it response error , around the axis, with attached program. hope to see your help and thanks in advance eric fsshl at uaf dot edu --------------52E6D2E9BC3C24D7EB7DC68B Content-Type: text/plain; charset=us-ascii; name="vecrot.m" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="vecrot.m" %VECROT Animation program which shows a rotating vector % defined as a complex number f = 50; % frequency, Hz omega = 2*pi*f; % angular frequency, rad/s tmax = 1/50; % time for a complete rotation, s time = [ ]; motion = [ ]; axis('square') axis([-1 1 -1 1]) for t=0: tmax/36: tmax z = exp(i*omega*t); %complex number description x = real(z); % Cartesian projections y = imag(z); time = [ time t]; motion = [motion y]; plot([0, x], [0, y]) pause(1.0) end --------------52E6D2E9BC3C24D7EB7DC68B-- ----------------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.che.wisc.edu/octave/octave.html How to fund new projects: http://www.che.wisc.edu/octave/funding.html Subscription information: http://www.che.wisc.edu/octave/archive.html -----------------------------------------------------------------------