[11986] in Athena Bugs

home help back first fref pref prev next nref lref last post

sun4 7.6R: matlab(6.003)

daemon@ATHENA.MIT.EDU (noileman@MIT.EDU)
Tue Apr 26 18:43:04 1994

From: noileman@MIT.EDU
To: bugs@MIT.EDU, noileman@MIT.EDU
Date: Tue, 26 Apr 94 18:42:58 EDT

System name:		w20-575-23
Type and version:	SPARC/Classic 7.6R
Display type:		cgthree

What were you trying to do?
	in SHE, i was trying to create a signal vector.  here's my code

What's wrong:
	>> cos15 = make_signal('f', -15, .5, 15, .5)
 
	cos15 =
 
	   102
 
	>> cos15_pulse300 = mul_signals('t', cos15, pulse300)
	???  Index exceeds matrix dimensions.
 
	Error in ==> /mit/6.003/matlab/signal_vector.m
	On line 43  ==>         v = [signal(2+start:2+p-1) signal(2:2+stop)];
 
	Error in ==> /mit/6.003/matlab/dual.m
	On line 9  ==> v = signal_vector(dom,signal,0,p-1);
 
	Error in ==> /mit/6.003/matlab/signal_vector.m
	On line 38  ==> if (d ~= domain(signal)), signal = dual(signal); end
 
	Error in ==> /mit/6.003/matlab/mul_signals.m
	On line 7  ==> v1 = signal_vector(d,signal1);
 
	>> cos100 = make_signal('f', -100, .5, 100, .5)      
 
	cos100 =
 
 	  102
 


What should have happened:
	it was working fine before (in same session).  then, all of a
	sudden, matlab broke.

	more specifically, my output should be a signal, which is the
	function of vectors (.5 and .5 are actually vectors).  my window
	should have filled up w. the elements of each column.
	my output was a scalar instead !

Please describe any relevant documentation references:
	i learned how to do this from shedemo

home help back first fref pref prev next nref lref last post