New Open Save a Run Section PrintFindIndent Breakpoints Run Run and Advance Run
ID: 3907303 • Letter: N
Question
New Open Save a Run Section PrintFindIndent Breakpoints Run Run and Advance Run and Advance Find ? ÷??? /> Users , elifozer , Documents , MATLAB tor - /Users/elifozer/Documents/MATLAB/CH7MP1.m function lyl CH7MP1(x) % CH7MP1.m : Chapter 7, MATLAB Program 1 Function M-file computes the sinc function, y sin (x)/x. 6-X elomega, tau) tau CH7MP11 (omegaxtau/2); 7-1 omega linspace(-4ep?,4*pi,200); 8 plot( 9-grid; axis tight; xlabel( 'omega') ylabel('X(Nomega)') 10- legend ('Baseline (tau 1)","Compressed { au 0.5) omega, X(omega, 1), k,omega,X(omega, e.5), ~k-. ',omega, X(omega,2), . L'Expanded (tau = 2.029; 12 Current Folder 1 Name ? O Command Window New to MATLAB? See resources for Cetting Started CH7MP1.m- CH7MP11.m >CH7MP1 Not enough input arguments. Error in CH7MP1 (Line 4) s > CH7MP11.m (Script) Workspace Name ? Value @in)X(n omega0)... 25 3.1416 omega0 CH7MPExplanation / Answer
Answer: Call the function using argument for example
>> CH7MP1(0.1)
Explanation:
-> The Error is NOT in Line 4...Its the way You are executing the function.
You need to Call the function using argument x , x can be any number
Thanks, PLEASE UPVOTE if helpful