I am asked to plot the graph of a function in Matlab and I would like to add the x-axis and y-axis in the graph. But how can I achieve this?
Asked
Active
Viewed 468 times
1 Answers
2
In Octave you can do:
x = [1:100]/10;
plot(x,sin(x),';legend;')
xlabel('xlabel')
ylabel('ylabel')
copper.hat
- 172,524
xlabelandylabel. – Nitish Nov 15 '13 at 17:32