随笔分类 -  matlab

摘要:www.livecoding.tv 阅读全文
posted @ 2016-10-13 21:21 微信公众号--共鸣圈 阅读(391) 评论(0) 推荐(0)
摘要:Java代码实现的计算难免会显得不够高效。而利用MATLAB写好相应的计算函数,然后打包成jar包供Java调用,在某些情况下会更加方便。或者有些时候会涉及到使用Java调用MatLab展现一些二维三维图。因此用到Java调用MatLab。 一:注意事项 1: MatLab的版本必须是2006b+( 阅读全文
posted @ 2016-08-18 10:00 微信公众号--共鸣圈 阅读(12516) 评论(1) 推荐(1)
摘要:strsplit更好用,用法:strsplit(strtrim(sprintf(' \t\nds \nhs\t dssd \t \n')))以下转载Matlab的字符串处理没有C#强大,本身又没有提供OO特性,需要依赖别的手段完成这项任务。我们在这里借助正则表达式函数regexp的split模式。一般语法:S = regexp(str, char, 'split')其中str是待分割的字符串,char是作为分隔符的字符(可以使用正则表达式)。分割出的结果存在S中。以下面这样一串字符为例Hello Nocturne Studio首先去除首尾多余的空字符:(debl 阅读全文
posted @ 2014-02-15 17:04 微信公众号--共鸣圈 阅读(2645) 评论(0) 推荐(0)
摘要:What Is the MATLAB Search PathThe search path, or path is a subset of all the folders in the file system. MATLAB® software uses the search path to efficiently locate files used with MathWorks® products. MATLAB can access all files in the folders on the search path.How MATLAB Stores the Sea 阅读全文
posted @ 2014-02-15 14:29 微信公众号--共鸣圈 阅读(858) 评论(0) 推荐(0)
摘要:1, matlab中的字符串就是1维字符数组,即如:a = 'dddssd';b = 'lsde';c = [a, b]; 当然也可以: c= strcat(a, b);2, matlab中的字符串数组尽量用cell来表示,即如:names={'s1'}; %或 names=cell(1, 1); names{1} = 's1';names={names{1,:}, 's2'}; %在字符串数组后面append一个字符串。names={names{1,:}, 's3'}; %在字符串数组后面appe 阅读全文
posted @ 2014-02-15 10:22 微信公众号--共鸣圈 阅读(7544) 评论(0) 推荐(0)