
MATLAB Import Wizard É 121
Figure 4.1 shows the resulting plot:
0.80.60.40.2
−0.2−0.4−0.6−0.8−1
0
3
3.5
4
4.5
5
5.5
x
Figure 4.1 Plot
Time for Practice 4.5
Use MATLAB to create a table of square roots, squares, and cubes of first 10 even numbers.
The results should be stored in a file. Follow this scan and get the cubes of the numbers and
display them at the MATLAB command prompt.
4.10 File Handling (Specific Formats) [csvread, csvwrite,
dlmread, and dlmwrite]
For some input/output formats, there is an easier way of handling files. Comma-separated
variable (.csv) files can be read/written using the csvread/csvwrite commands. These
commands are derived from ...