To plot a column vector against a row vector, you can use the plot
function in MATLAB.
Here's an example:
main.m72 chars5 lines
This code will plot the values in y
against the values in x
. The semicolon in y
is used to create a column vector instead of a row vector.
You can customize the plot by adding labels, changing the color or style of the line, adding a title, etc. For more information, you can refer to the MATLAB documentation on the plot
function.
gistlibby LogSnag