On Apr 16, 12:03 pm, mankoff <
mank...@gmail.com> wrote:
> Hi SysQuake,
>
> I'm a beginner to SysQuake and trying to wrap my head around the
> interactive part. When I run the code in the "SQ File Tutorial" I get
> the error message:
>
> Too many output arguments
> Too many output arguments (_SQ_tut3/overFunc;70) 'cancel'
>
> I get the simple example of the tangent calculated at the dynamically
> positioned vertical line. Can someone a hint how to fix the above
> error message, or how to plot a basic sin curve but let the user
> control the amplitude and period?
Nevermind on the sin example request, I figured that part out. Still
not sure why the Tutorial Example isn't working...
if firstrun
amp = 1;
period = 2*pi;
end
switch _id
case 1
period = _x1;
case 2
amp = _y1;
end
scale([0,pi*2,-3,3]);
x = 0:0.01:2*pi;
plot(x, amp*sin(2*pi*x/period));
line([1,0], period, 'r', 1);
line([0,1], amp, 'g', 2);