From e0ace969c08d89b41d0b15ae8a8fc479379d7b14 Mon Sep 17 00:00:00 2001 From: avinashlalotra Date: Wed, 19 Mar 2025 12:59:25 +0530 Subject: formatted the returned data --- macros/strcmpi.sci | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 macros/strcmpi.sci (limited to 'macros/strcmpi.sci') 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 -- cgit