Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - oi
Search - oi - List
DL : 0
用多种算法解决0-1背包问题,包括回朔法,动态规划,贪心算法等-algorithm used to solve a variety of 0-1 knapsack problem, including the retrospective method, dynamic programming, greedy algorithm
Date : 2026-01-11 Size : 421kb User : 王垂宇

在开发子函数时,matlab存在正则方法和非正则方法,正则方法非常适合一个子函数功能的不断扩展与完善,此函数为辅助函数,增加子函数的可读性 例如一个函数drawfun(x,y,z,5,6),5表示用第5种方法插值,6表示markersize为6,它显然没有drawfun(x,y,z, kriging , markersize ,6)好看懂与理解。 kriging 如何就是5可以用optionchoose(varargin{4},{ linear , spline , inverse , regression , kriging })判断。 再如一个结构体中有很多人的名字和各门课的成绩,想查看张三的所有分数就可以: student(optionchoose( 张三 ,{student.name})) 如果没有张三这个人,optionchoose会出错退出,用optionchoose( 张三 ,{student.name},1)则返回-1,optionchoose( 张三 ,{student.name},1)在返回-1的同时显示可有的一些选项。 optionchoose( John ,{student.name},1, -case )会强制区分大小写,与john将不是同一个人- check the input option , output the value of option style Usage: och=optionchoose(oi,ostyle,|[restrain_error],|[ -case ]) when design functions, string option is apt to read and operate oi is one option of character, you can write in short only when this option distinguish other options ostyle means all possible options, it can be strings or string cell restrain_error =0 by default setting. if equal other, mean program will not interrupt, but return-1. restrain>=2, return possible option (when no match option), when 2, display option mesg. Notice: uppercase and lowercase of oi(ostyle) seemed same, not to distinguish, only when -case , then distinguish UPPERCASE and lowercase of characters och is numeric opposite to ostyle order, if not in ostyle, return-1 For example: i=optionchoose( pos ,{ position , potential , pocket }) i=1 See also STRCMP, STRNCMP, STRMATCH
Date : 2026-01-11 Size : 1kb User : zhoudg

lathe skt-160 pmc ladder program fanuc oi-TC controller
Date : 2026-01-11 Size : 66kb User : SIAVASH
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.