Describe using at least two points discussed in class the ad
Solution
6) There are various advantages of using functions. Few of them are:-
7) An eval() function is used to evaluate the strings. Its syntax is eval(string). It is mainly used to evaluate the java script code that is represented as a string.This string may include expressions containing variables,statement or a sequence of statements. The eval() function takes a string as an input parameter. If the string is an expression, it evaluates the expressions else if the string is a statement, it executes the statement. Whenever eval() function is called, it produces the result of evaluated string or the executed statement as an output depending on the input parameter.
8) Both linspace and logspace are used to generate spaced vector. The difference is that linspace is used to generate linearly spaced vector whereas logspace is used to generate logarithmically spaced vector. For example, y=linspace(a,b) generates a row vector of 100 evenly spaced points between a and b whereas y=logspace(a,b) generates a row vector of 50 logarithmically spaced points between 10a and 10b

