diff options
Diffstat (limited to 'macros/strcmpi.sci')
-rw-r--r-- | macros/strcmpi.sci | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/macros/strcmpi.sci b/macros/strcmpi.sci new file mode 100644 index 0000000..4165d07 --- /dev/null +++ b/macros/strcmpi.sci @@ -0,0 +1,6 @@ +function result = strcmpi(str1, str2) + lowerStr1 = convstr(str1, "l"); + lowerStr2 = convstr(str2, "l"); + result = strcmp(lowerStr1, lowerStr2); + result = double(result); +endfunction
\ No newline at end of file |