explain [h1]=plot(x,y) in matlab

The code [h1]=plot(x,y) in MATLAB means that the plot function is being used to plot the vectors x and y, and the output from the function is being assigned to the variable h1.

The plot function is used to create 2-D line plots, and takes two or more arguments: the x-coordinates and y-coordinates of the data to be plotted.

The output variable h1 is a handle to the line object created by the plot function, which is useful for modifying the properties of the line, such as its color or width.

related categories

gistlibby LogSnag