What are the rules for MATLAB variable names?

Опубликовано: 03 Ноябрь 2024
на канале: Jeff Anderson
1,149
17

We explore MATLAB’s rules for variable names:

00:00 -Introduction
00:46 -MATLAB Documentation Search "Variable names"
01:10 -Learn to teach yourself
01:33 -Begin reading MATLAB Documentation
01:54 -Example 1: MATLAB variables are case sensitive
02:10 -Maximum length for MATLAB variable names
02:20 -The namelengthmax command
02:33 -Example 2: Test a 63 letter variable name
03:32 -Don't read documentation like you read Harry Potter
03:50 -Using MATLAB keywords for variable names is illegal
04:00 -The iskeyword command
04:13 -Example 3: Error for keyword as a variable name
04:45 -Example 4: Valid variable names
05:41 -Variable name cheat sheet
06:59 -Documentation Cheat Sheet Organization System
08:47 -Variable names conflicting with built-in functions
09:08 -Example 5: Set variable name using built-in sine function
09:35 -Use “clear” command to remove variable from workspace
09:45 -Bad practice: use built-in function names for variable
10:18 -Example 6: Use “exist” command to check variable name
10:56 -Example 7: Use “exist” command to check sin
11:13 -Use the “help” command to learn about “exist”
12:48 -Learn to teach yourself how to code by active reading
13:15 -Get ready to read and don’t be afraid to search
13:47 -Be playful and break stuff to learn
14:36 -Please comment about stories with long variable names