From 80e121fa108e793271492e5e6e34956228c2ec36 Mon Sep 17 00:00:00 2001 From: Claire Curry Date: Wed, 26 Oct 2022 16:15:52 -0500 Subject: [PATCH] substituted little (neural size-based adjective) for terror in relation to sharks --- episodes/05-loops.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/episodes/05-loops.md b/episodes/05-loops.md index f3579685..c471509d 100644 --- a/episodes/05-loops.md +++ b/episodes/05-loops.md @@ -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} @@ -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}