##

Exercise 1.10: Error messages with array operations

Consider the function:

We want to declare the row vector
to the variable
. To perform the exercises below you first have to enter the array
with arguments
. Thus; `>> x = 0:0.2:2`

- a)
- Perform the exercise:
`>> f = x.^3/(1+x.^2)`

.

MATLAB gives a result! But why is it not an array with function values?

REMARK:

IF YOU GET A RESULT, ALWAYS CHECK THAT RESULT!
- b)
- Perform the exercise:
`>> f = x^3./(1+x.^2)`

.

What does the MATLAB error mean?

Esteur
2010-03-22