summaryrefslogtreecommitdiff
path: root/macros/strcmpi.sci
diff options
context:
space:
mode:
authorRashmi Patankar2025-04-30 15:01:49 +0530
committerGitHub2025-04-30 15:01:49 +0530
commit0495a12104d8466509769fc34271757f00577709 (patch)
treecb208dd421d39051d85f4ef0476c9208ef2c41ab /macros/strcmpi.sci
parenta0bff158d21c2c12a12781bc5019f3a45bd866b2 (diff)
parentec6379e7494ff4ca2dc7c7524013d109be450bae (diff)
downloadFOSSEE-Signal-Processing-Toolbox-master.tar.gz
FOSSEE-Signal-Processing-Toolbox-master.tar.bz2
FOSSEE-Signal-Processing-Toolbox-master.zip
Merge pull request #21 from avinashlalotra/masterHEADmaster
Fixed Failing test scripts
Diffstat (limited to 'macros/strcmpi.sci')
-rw-r--r--macros/strcmpi.sci6
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