Express the relationship f(x) is ?(g(x)) using a picture. Show the graphs of the functions f(x) and Cg(x), as well as the constant k on the real axis.
Lecture4 - CreatingFunctions Wednesday,September 21,205:59PM What is a function • A function is anabstraction over a chunk of computation • In other words… ○ Data goes in it gets processed new data comes out! • It's an abstraction because we can use it w/o worrying about how the computation works internally • Every function has 2 major parts: ○ Interface& implementation Foranexample,refertoESP.m fileinLectureScriptsfolder Foranexample,refertoESP.m fileinLectureScriptsfolder Creating a New Function Write variables in their own .m file function [ x ] = createFunction( a , b, c) % createFunction is used to …. % x = (a + b) .*