Sep 5, 2024
ans is a default variable.clc: Clears the command window.clearvars: Clears all variables from the workspace.x = 10, y = 20.; to suppress output.whos: Lists variables and their types.
double, char, string.clearvars and clc for a clean start.x = 1:10 or linspace(0, 100, 20).. before operators, e.g., .^ for power.plot(x, y) to create graphs.hold on to plot multiple data sets.max, min, sum.>, <, ==, ~=.if statements for conditional execution..m file..m file names start with a letter and are descriptive.tic and toc.