matlab
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| matlab [2024/05/23 15:51] – ethanminot | matlab [2024/05/23 15:58] (current) – ethanminot | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| These lines of code help make a better looking plot that can be exported for a notebook or a publication. | These lines of code help make a better looking plot that can be exported for a notebook or a publication. | ||
| - | x=[0:1:50]; | + | x=[400:1:450]; |
| y=2*sin(x/ | y=2*sin(x/ | ||
| - | figure(' | + | figure(' |
| - | plot(x, | + | |
| - | axis([0 50 0 3]) | + | set(gca,' |
| - | xlabel(' | + | axis([400 450 0 3]) |
| - | ylabel(' | + | xlabel(' |
| - | set(gca,'linewidth', | + | ylabel(' |
| - | set(gca,' | + | set(gca,' |
| | | ||
| Additional pointers about graphs on Matlab. | Additional pointers about graphs on Matlab. | ||
| - | *From the menus associated with the figure, go to "file > export setup > rendering", | + | |
| - | *From the menus associated with the figure, go to "file > save as", and save as a png file. png is much better than jpg for line graphics. | + | |
| + | *From the menus associated with the figure, go to "file > save as", and save as a png file. Choose | ||
matlab.1716504701.txt.gz · Last modified: 2024/05/23 15:51 by ethanminot
