diff --git a/01-intro.html b/01-intro.html index aecb897..a799f06 100644 --- a/01-intro.html +++ b/01-intro.html @@ -350,7 +350,7 @@
>> mass = 20
->> age = 2.5
->> frac = mass/age
->> c1 = frac < 10
+>> mass = 20
+>> age = 2.5
+>> frac = mass/age
+>> c1 = frac < 10
>> weight = 64.5
->> size3 = 'L'
->> patient_name = "Jane Doe"
->> alive_on_day_3 = true
+>> weight = 64.5
+>> size3 = 'L'
+>> patient_name = "Jane Doe"
+>> alive_on_day_3 = true
>> Names = ["John", "Abigail", "Bertrand", "Lucile"]
+>> Names = ["John", "Abigail", "Bertrand", "Lucile"]
In general, the output can be a bit redundant (or even annoying!), and it can make the code slower, so it is considered good form to @@ -789,27 +787,26 @@
>> x = 33;
+>> x = 33;
At first glance nothing appears to have happened, but the workspace shows the new value was assigned.
If we really want to print the variable, then we can simply type its name and hit Enter,
We have declared a few variables now, and we might not be using all of them. If we want to delete a variable we can do so by typing @@ -858,7 +854,7 @@
>> clear alive_on_day_3
+>> clear alive_on_day_3
You might be able to see it disappear from the workspace. If you now try to use alive_on_day_3, MATLAB will give an error.
@@ -870,7 +866,7 @@Again, be careful usig this command, there is no way back!