View in: Documentation
Create a simple line graph. Use the linspace function to define x as a vector of 100 linearly spaced values between 0 and 2\pi .
MATLAB® uses a default color scheme when it displays visualizations such as surface plots. You can change the color scheme by specifying a colormap. For example, here is a surface plot with
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a location from the following list:
See all countries