I used the following commands

x=-5:0.1:5;

y=tan(x-4)-0.4x;

plot(x,y);

sorry for my english

I used the following commands

x=-5:0.1:5;

y=tan(x-4)-0.4x;

plot(x,y);

sorry for my english

Homework assignment?

yes, I’m learning to use it for academic purposes, but I’m having difficulties

The example is almost correct. I’m guessing the assignment is to find the error in the code snippet.

Hint: You need to type out all operators…

1 Like

Passolargo

December 23I used the following commands

x=-5:0.1:5;

y=tan(x-4)-0.4x;

In Octave this should be 0.4*x

1 Like

Hi Passolargo.

type help axis to involve in it. It can help you.

Enjoy

1 Like