刚想截取一个matlab字符串中间的一段字符,网上搜了一下,发现strfind这个函数是matlab用来查找字符串中的字符的。
help strfind得到的结果:
strfind Find one string within another.
K = strfind(TEXT,PATTERN) returns the starting indices of any
occurrence...
分类:
其他好文 时间:
2015-07-02 12:09:32
阅读次数:
120
https://leetcode.com/problems/number-of-1-bits/Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known a...
分类:
其他好文 时间:
2015-07-01 14:08:15
阅读次数:
99
-- 根据大订单号查询已付供应商金额(已付-已退)ALTER FUNCTION [dbo].[F__SupplierPayOffAmountBOrder](-- Add the parameters for the function here @BOrderId int )RETURNS decim...
分类:
数据库 时间:
2015-06-30 18:11:55
阅读次数:
293
暴力解法(O(n^2)): 1 class Solution { 2 public: 3 /** 4 * Returns a index to the first occurrence of target in source, 5 * or -1 if target i...
分类:
其他好文 时间:
2015-06-30 00:02:52
阅读次数:
176
1. String difference(final String str1, final String str2)
说明:Compares two Strings, and returns the portion where they differ.
i.e:
("ahc", "bcu") -> "ahbu"
/**
*
* @Title: differen...
分类:
编程语言 时间:
2015-06-29 20:35:07
阅读次数:
138
declare: CURSOR cursor_name ISselect_statement ;open: OPEN cursor_nameif the query returns no rows when the cursor is opened , PL/SQL does not raise a...
分类:
其他好文 时间:
2015-06-28 11:14:51
阅读次数:
119
swift的函数在swift2中的使用改变了不少/**
*param: personName 参数
*returns: String为返回值
*/
func sayHello(personName: String) -> String {
return "Hello " + personName;
}/*swift2中函数的调用必须要使用标签或者别名,没有别名第一个标签不带*/
func a...
分类:
编程语言 时间:
2015-06-27 16:33:59
阅读次数:
130
swift的函数在swift2中的使用改变了不少/**
*param: personName 参数
*returns: String为返回值
*/
func sayHello(personName: String) -> String {
return "Hello " + personName;
}/*swift2中函数的调用必须要使用标签或者别名,没有别名第一个标签不带*/
func a...
分类:
编程语言 时间:
2015-06-27 16:33:34
阅读次数:
169
Describe an algorithm that takes an unsorted array of axis‐aligned rectangles and returns any pair of rectangles that overlaps, if ...
分类:
其他好文 时间:
2015-06-26 23:37:54
阅读次数:
202
Number of 1 Bits
Write a function that takes an unsigned integer and returns the number of ’1’ bits it has (also known as the Hamming weight).For example, the 32-bit integer ’11’ has binary represent...
分类:
其他好文 时间:
2015-06-26 12:54:20
阅读次数:
104