MATLAB Projects DISCUSSION

How to do strcmp in textboxes with Matlab

Started by syedzainnasir How to do strcmp in textboxes with Matlab
2 replies 248 views 2 participants
Latest activity · 06 Mar 2017

How to do strcmp in textboxes with Matlab

syedzainnasir MATLAB Projects Forum
#1
I would like to know how to compare strings between 2 textboxs in Matlab. Can someone please give some examples? Thank you in advantage.

Community replies 2

Re: How to do strcmp in textboxes with Matlab

#2
Here's the command to compare two strings: [code]tf = strcmp(s1,s2)[/code] where s1 and s2 are the textboxes string and tf will return whether they are same or not. You should also have a look at this link to know more about this command: https://www.mathworks.com/help/matlab/ref/strcmp.html

Re: How to do strcmp in textboxes with Matlab

#3
[quote=theenggprojects post_id=551 time=1489047487 user_id=2] Here's the command to compare two strings: [code]tf = strcmp(s1,s2)[/code] where s1 and s2 are the textboxes string and tf will return whether they are same or not. You should also have a look at this link to know more about this command: https://www.mathworks.com/help/matlab/ref/strcmp.html [/quote] It's worked !
TEP COMMUNITY