Skip to content

Commit

Permalink
substituted little (neural size-based adjective) for terror in relati…
Browse files Browse the repository at this point in the history
…on to sharks
  • Loading branch information
Claire Curry committed Oct 26, 2022
1 parent b821baa commit 80e121f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions episodes/05-loops.md
Original file line number Diff line number Diff line change
Expand Up @@ -495,16 +495,16 @@ NEWSTR = replace(STR, OLD, NEW)
{: .language-matlab}
So for example if we have the string `big_shark` and want to get the string
`terror_shark`, we can execute the following command:
`little_shark`, we can execute the following command:
```
>> new_string = replace('big_shark', 'big', 'terror');
>> new_string = replace('big_shark', 'big', 'little');
>> disp(new_string)
```
{: .language-matlab}
```
terror_shark
little_shark
```
{: .output}
Expand All @@ -515,8 +515,8 @@ terror_shark
> but the `strrep` function is a direct replacement.
> The above example becomes
> ```
> >> new_string = strep('big_shark', 'big', 'terror')
> terror_shark
> >> new_string = strep('big_shark', 'big', 'little')
> little_shark
> ```
> {: .language-matlab}
{: .callout}
Expand Down

0 comments on commit 80e121f

Please sign in to comment.