Home » Source Code » » search_list.m

search_list.m ( File view )

From:
  • By 2010-09-01
  • View(s):3
  • Download(s):0
  • Point(s): 1
			function id=search_list(list, entry)

if (length(list)==0)
    id=-1;
    return;
end
 
flag=0;
for (id=1:length(list))
    if (strcmp(list{
id
},entry)==1)
        flag=1;
        break;
    end
end

if (flag==0)
    id = -1; % not match
end

return;
			
...
Expand> <Close

Want complete source code? Download it here

Point(s): 1

Download
0 lines left, continue to read
Sponsored links

File list

Tips: You can preview the content of files by clicking file names^_^
Name Size Date
add_to_list.m160.00 B18-04-09 16:32
read_net_list.m23.74 kB19-04-09 10:59
search_list.m270.00 B29-09-07 03:31
sensitivity_analyse.m1.85 kB20-04-09 10:56
test7.cir449.00 B18-04-09 23:50
<CAD_CODE>0.00 B20-04-09 11:46
...
Sponsored links

search_list.m (4.63 kB)

Need 1 point
Your Point(s)

Your Point isn't enough.

Get point immediately by PayPal

More(Debit card / Credit card / PayPal Credit / Online Banking)

Submit your source codes. Get more point

LOGIN

Don't have an account? Register now
Need any help?
Mail to: support@codeforge.com

切换到中文版?

CodeForge Chinese Version
CodeForge English Version

Where are you going?

^_^"Oops ...

Sorry!This guy is mysterious, its blog hasn't been opened, try another, please!
OK

Warm tip!

CodeForge to FavoriteFavorite by Ctrl+D