Name Last modified Size Description

Parent Directory - arc_length.m 20-Oct-2016 12:35 114 basic_plot.m 20-Oct-2016 12:35 216 condition_ifelse.m 20-Oct-2016 12:35 255 condition_switch.m 20-Oct-2016 12:35 377 contour_plot.m 20-Oct-2016 12:35 306 exp.txt 20-Oct-2016 12:35 220 falling.m 20-Oct-2016 12:35 65 in_out.m 20-Oct-2016 12:35 185 linear_eq.m 20-Oct-2016 12:35 198 linear_solver1.m 20-Oct-2016 12:35 239 linear_solver2.m 20-Oct-2016 12:35 359 loop_for1.m 20-Oct-2016 12:35 124 loop_for2.m 20-Oct-2016 12:35 165 lu_qr.m 20-Oct-2016 12:35 264 main.m 20-Oct-2016 12:35 53 mat_mul.m 20-Oct-2016 12:35 325 plot3_curve.m 20-Oct-2016 12:35 108 root_polynomial.m 20-Oct-2016 12:35 370 subplot_mesh.m 20-Oct-2016 12:35 148 surfc_sinc.m 20-Oct-2016 12:35 234 sym_mat.m 20-Oct-2016 12:35 185

This directory includes sample Matlab codes for basic usage.

arc_length.m: an exmaple of anonymous function, to compute the length of a 3D curve.

condition_ifelse.m: to demonstrate if-else.

condition_switch.m: to demonstrate switch.

contour_plot.m: to demonstrate the contour function.

falling.m: an exmaple of function, to compute the height of a falling object.

main.m: the main program to call the funciton falling.

in_out.m: an example for I/O with files.

linear_eq.m: to solve linear equation A*x=b, where A is an up-triangle matrix.

linear_solver1.m: to solve linear equation A*x=b, where A is a symmetric matrix.

sym_mat.m: to create a summetric matrix.

linear_solver2.m: to solve linear equation A*x=b, where A is a bad conditionied matrix, compare the performance of the inv function and the / operator.

lu_qr.m: to solve linear equation A*x=b explicitly using LU or QR decompositions.

loop_for1.m: to demonstate a for loop.

loop_for2.m: to demonstate two nested for loops.

mat_mul.m: to compute matrix multiplication, show the good performance of the * operator.

plot3_curve.m: to demonstrate the plot3 function.

root_polynomial.m: to demonstrate while-break, find a root of a polynomial.

basic_plot.m: to demonstrate the plot function.

subplot_mesh.m: to demonstrate the subplot function.

surfc_sinc.m: to demonstrate the surfc function.