Problems
6.1 | Write a program to plot the curve for a function described by the equation y = x3 + 2x2 − 5, where x varies from −10 to 10. |
6.2 | Write a program to plot the curve for equation y = sin(x) + cos(x) as x varies from 0 to 2π. Make use of labels along x- and y-axis. |
6.3 | Write a program to plot the curve for equation a = 10e−0.2t for t = 0 − 50. Show the grid lines on the graph. |
6.4 | Plot a curve for the equation y = x3 + 2x2 − 5, −10 ≤ x ≤ 10. Use gtext command to write this equation on the curve plotted. |
6.5 | Write a program to illustrate the use of axis command with specified limits for plot of function y = 3x2 + 2x + 5 for x = −10 to 10. |
6.6 | Write a program to draw the curves for functions, y = sin(2x), y = cos(x) and y = 3x + 2 in a single figure ... |
Get MATLAB® and Its Applications in Engineering: [Based on MATLAB 7.5 (R2007b)] now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.