How to construct the schedule in Matlab

How to construct the schedule in Matlab

Matlab is the application program for technical calculations with an own programming language. Has wide circulation at engineering and scientists, has well developed graphic potential, including for creation of function graphs of one or several variables.

Instruction

1. For creation of a function graph from one variable use the ezplot team. It works both with a line, and with symbolical expression and anonymous function. After this team put the opening bracket and you enter function necessary to you according to the symbols of mathematical operations accepted in Matlab. Allocate a formula of function with apostrophe badges at the beginning and at the end.

2. Then put a comma and specify an interval in which the schedule has to be built in square brackets. Put the closing bracket. For example, for y=x^2+2x-3 function the team will look as follows ezplot (‘x^2+2x-3’, [-5 5]). Thus, the drawing of the schedule will be executed in a piece from-5 to 5 on the screen in a new window. This window also contains the menu and the toolbar intended for execution of the schedule.

3. For further work with schedules the main window and a window with the schedule have so that they were not blocked. If in a command line you need to enter several commands for creation of several schedules, separate them a semicolon. Begin new team with a new line. After the last team do not put a semicolon. At the same time pieces of definition of functions you can set different. For example: ezplot (‘x^2+2*x-3’, [-5 5]); ezplot (‘x^3+2*x^2-3*x’, [-5 5]).

4. To change the name of the schedule enter into a command window the order title, and after it – the new name of your schedule selected with apostrophes at the beginning and at the end. Or enter the new name in the field of title in a schedule window. For addition of tags on vertical and horizontal coordinate axes use the ylabel and xlabel teams respectively.

5. To change the range of already constructed schedule enter the axis team, and after it – intervals on horizontal and on a vertical axis. For example, axis ([-3 3 0 5]). At the same time the first two numbers have to set an interval of creation of the schedule on a horizontal axis, and the second two numbers – to set the range of a vertical axis. The axis sqare team will create the image of a square of the schedule with identical scales on both axes. And the axis equal team will just balance vertical and horizontal scales.

Author: «MirrorInfo» Dream Team


Print