ABSTRACT

The cell array f is used in the next example; otherwise a simpler way to construct y would be:

y = [x sin(x) cos(x) tan(x) cot(x)] ;

You can increase the number of digits printed with format long, but that does not allow you to define how many digits are printed. If you tried to add pi/2 to the table, the tan column would contain a huge (erroneous) value causes the rest of the digits in the table to be obscured. Try adding the statement x=[x ; pi/2] after x is first defined.