This preview shows page 1. Sign up to view the full content.
Unformatted text preview: % % function [y] = func3(x) % disp('Hello WOrld!') % disp(x) % y = x; % IT DID NOT WORK! Why? Because when you call func3 with a single % input parameter, it does not know what to do with the display % commands function [y] = func3(x) % disp('Hello WOrld!') % disp(x) y = x; % Now call the function: % func3(5) % % ans = % % 5...
View Full Document
This note was uploaded on 03/30/2011 for the course ENGINEERIN 127 taught by Professor Finch during the Spring '08 term at Rutgers.
- Spring '08