plot a vector from 0 - 12000 with 351 values in matlab

You can use the linspace function to generate a vector of 351 values between 0 and 12000 and then plot it using the plot function. Here's the code:

main.m
% Generate the vector
x = linspace(0, 12000, 351);

% Plot the vector
plot(x);
79 chars
6 lines

This will generate a simple plot of the vector x. You can customize the plot by adding axis labels, a title, changing line colors, etc.

gistlibby LogSnag