标签:www.tianjin-qmedu.com, 2005: / matlabcentral / fileexchange /喂?类别% 5 b % 5 d = matlab findex % 2 MATLAB中央文件交换 程序 logo.png MATLAB中央文件交换 用户输入的代码库 2023 - 05 - 17日0 - t13:49:24 + 131年 1 60 35642年 2012 - 06 - 08 - t14:48:20z 2012 - 06 - 08 - t14:48:20z kml2struct 一系列shapefile导入.kml文件结构。像kml_shapefile,但更稳定。

导入谷歌地球.kml文件的点、线、多边形、或组合,Matlab struct,兼容工具箱的映射功能,和shapefile导入与shaperead ()。结构由以下字段:-几何-名字-描述-经度纬度BoundingBoxMapping工具箱多边形需要顺时针大会指定之间正面和负面的地区。这些不是.kml文件中指定,所有多边形都转化为顺时针方向,保证他们代表积极的空间。

詹姆斯Slegers //www.tianjin-qmedu.com/matlabcentral/profile/1938391-james-slegers
7842年 2015 - 02 - 04 - t22:07:10z 2015 - 02 - 04 - t22:07:10z CATSTRUCT 连接/合并结构(v4.1, 2015年2月)。

CATSTRUCT连接或合并结构与不同fieldnamesX = CATSTRUCT (S1, S2、S3…)合并结构S1, S2、S3……成一个新的结构出现在variousstructures X X包含所有字段。一个例子:A.name =“我”;B。收入= 99999;X = catstruct (A, B) %→X.name =“我”;% X。收入= 99999;如果一个字段名没有独特的结构(即。, a fieldname is present in more than one structure), only the value from the last structure with this field is used. In this case, the fields are alphabetically sorted. A warning is issued as well. An axample: S1.name = 'Me' ; S2.age = 20 ; S3.age = 30 ; S4.age = 40 ; S5.honest = false ; Y = catstruct(S1,S2,S3,S4,S5) % use value from S4 The inputs can be array of structures. All structures should have the same size. An example: C(1).bb = 1 ; C(2).bb = 2 ; D(1).aa = 3 ; D(2).aa = 4 ; CD = catstruct(C,D) % CD is a 1x2 structure array with fields bb and aa The last input can be the string 'sorted'. In this case,CATSTRUCT(S1,S2, ..., 'sorted') will sort the fieldnames alphabetically. To sort the fieldnames of a structure A, you could use CATSTRUCT(A,'sorted') but I recommend ORDERFIELDS for doing that. When there is nothing to concatenate, the result will be an empty struct (0x0 struct array with no fields). NOTETo concatenate similar arrays of structs, you can use simple concatenation: A = dir('*.mat') ; B = dir('*.m') ; C = [A ; B] ;Latest version: 4.0 (dec 2013)

乔斯(10584) //www.tianjin-qmedu.com/matlabcentral/profile/870065 -乔斯- 10584
26216年 2019 - 07 - 29 - t11:29:13z 2019 - 07 - 29 - t11:29:13z 结构字段变量 代码编写工具导入/导出工作空间变量或结构。

结构是一种方便的方法,可以随身携带的许多变量作为一个单独的对象,并将这些变量传递给一个函数用一个参数。一旦结构被传递给一个函数,然而,许多用户(根据各个新闻组帖子)发现这烦人的多次访问其字段通过dot-indexing符号和寻求自动化方式结构和分离变量分配所有的字段,如在= myStruct.a;b = myStruct.b;c = myStruct.c;等等……万博 尤文图斯解决方案基于assignin()经常被试过了,但是很危险,讨论的原因,例如,在这个线程://www.tianjin-qmedu.com/matlabcentral/newsreader/view_thread/244639 # 628695structvars()工具在这个FEX提交几乎一样好和更安全的东西。给定一个结构,它将打印所需要的代码行数分配结构领域分离变量(或相反)。行代码可以方便地从命令窗口复制/粘贴到文件编辑器在文件中的位置的变量需要被打开。Examples: Given structure myStruct, with fields a,b,c, & d (1) structvars(myStruct) %assign fields to variables ans = a = myStruct.a; b = myStruct.b; c = myStruct.c; d = myStruct.d; (2) structvars(3,myStruct) %split the last result across 3 columns ans = a = myStruct.a; c = myStruct.c; d = myStruct.d; b = myStruct.b; (3) structvars(3,myStruct,0) %assign variables to fields ans = myStruct.a = a; myStruct.c = c; myStruct.d = d; myStruct.b = b; The commands can obviously be regenerated if you add/remove structure fields later on. On the other hand, the effort of just making these incremental edits manually is typically minimal.

马特·J //www.tianjin-qmedu.com/matlabcentral/profile/1440443-matt-j
22752年 2015 - 08 - 30 - t01:33:03z 2015 - 08 - 30 - t01:33:03z 比较结构 比较两个结构化变量递归和笔记的两种结构是不同的。

这是一个全新版本的工具和新功能基于注释的朋友给了我一个关于如何使这个更有用。建议应用程序报告了常见的两种结构之间的内容和每个结构的独特的内容结构形式——从本质上说,解析输入结构。输出列表现在使用一个单独的应用程序执行(list_sruct)。所以使用comp_struct比较两个结构。扩大(解压缩)的结构,利用list_struct在每个输出。这应该也会很长一段路要解决这个问题所指出的布拉德•Stiritz大卫Groppe,大卫Provencher。如果需要旧代码包括作为参考。2013年__________________Oct 19日这是一个更新的代码来提供更好的遇到的错误列表。之前的明确限制重写在后期处理数据(由于布拉德Stiritz Brett Shoelson和有用的评论如何解决这个问题)。新代码在本质上是相同的算法(一些小错误是如何记录变化)但添加了一种新的误差评估算法。 The great difficulty here is in managing the potential combinations of structure mismatches. For instance, the code could encounter issues such as:a.a is class double, b.a is class chara.b exists, b.b does not exista(2) exists, b(2) does not exista.c and b.c are both the same class but have different contentsa.d and b.d are both functions (even the same function) but are evaluated at different pointsa.e is a substructure while b.e is a double, char, cell, ….The new output attempts to manage all of these combinations by developing a cell with N rows (for N errors) and 3 columns (error label, structure 1 contents, and structure contents). NOTE: The calling syntax has changed (new output variables) so it is not a direct update of the prior code. You will need to update the calling functions if you are currently using the prior script._______________________________________Apr 29, 2013This is a scratch re-write of the code taking advantage of new abilities in MATLAB since I wrote the first version 10 years ago. Original version was just something I wrote in desperation and was not very elegant. This version should be more usable. Original version is included for posterity. Calling syntax is similar to the original but now you can:1.Disable all printouts to screen, print out only missing fields, print out all errors, or print out all errors and matches. 2.Activate a waitbar for progress (use if you are not printing out errors and your structures are large)3.Collect all errors into a single cell (rather than two cells for each structure)4.Structure order does not matter. Tool looks for matching fields.Thanks to Brian for suggestions and a validation test. Thanks to David Groppe for the error only output suggestion. Thanks to David Provencher for the output only suggestion. Thanks to Keith Beardmore for pointing out the sort order issue._______________________________________Original post:Structured variables are good for organizing data and manipulating data. However, they can be difficult to check for errors or differences. Function allows each field of a structure to be checked against a corresponding field in a separate structure. Possible outcomes are:1.Fields agree (both exist and have the same content)2.Fields do not agree (both exist but contents / values are different)3.Field exists in only one structure4.Field type differs (variable class disagreement)

迈克尔arant //www.tianjin-qmedu.com/matlabcentral/profile/460215-michael-arant
43131年 2013 - 08 - 19 - t19:25:07z 2013 - 08 - 19 - t19:25:07z 剪辑 返回一个数组的值在给定的范围内,选择对应的剪数组返回。

剪辑(x, xmin xmax变长度输入宗量)返回一个剪修剪或数组只包含x的值xmin和xmax之间,包容性。包含其他数组作为输入返回对应的剪数组。可选参数“独家”只能包含返回值但不包括xmin和xmax之间。输入和输出:xclp =剪辑(x, xmin xmax)返回一个数组中的所有值x xmin xmax,包容性。xclp =剪辑(x, xmin xmax,“独家”)返回一个数组的值x xmin xmax,排斥。[xclp,印第安纳州]=剪辑(x, xmin xmax)返回一个数组的值x xmin xmax,并返回x xclp对应的指标。请注意,xclp = x(印第安纳州)。[xclp, yclp] =剪辑(x, xmin xmax, y)返回xclp和对应的剪值数组的y,应该当x是一样长的。[xclp、y1clp y2clp,…ynclp] =剪辑(x, xmin xmax, y1, y2,…yn)返回通过yn剪x和y₁数组。[xclp y1clp, y2clp,…,ynclp,印第安纳州]=剪辑(x, xmin xmax, y1, y2,…yn)返回剪数组的x和y₁yn和相应的指标将xclp = x(印第安纳州)和y1clp = y₁(印第安纳州)等等。在上图的例子中,通过y4被宣布y1,和有兴趣的值从70 x = x = 90,剪x和y数组被发现是这样的:[xc、y1c y2c, y3c, y4c] =剪辑(x, 70, 90, y1, y2, y3、y4);

乍得格林 //www.tianjin-qmedu.com/matlabcentral/profile/1062128-chad-greene
52573年 2022 - 12 - 28 - t14:27:53z 2022 - 12 - 28 - t14:27:53z PRINTSTRUCT |递归结构打印到命令窗口或一个细胞char数组 递归地打印/显示层次的轮廓结构内容

递归地打印内容层次结构的轮廓。这是一个小的文件交换的贡献”结构大纲”b . Roossien写的。结构变化包括:自动确定输入变量名称,用于标题每个结构——包括输出参数,定义时,返回印刷struct字符单元阵列和抑制输出到命令窗口输入规范和定义默认值更容易和更灵活的结构,(可能)更好的处理数组

鲍勃Spunt //www.tianjin-qmedu.com/matlabcentral/profile/3893829-bob-spunt
31532年 2014 - 11 - 20 - t08:07:59z 2014 - 11 - 20 - t08:07:59z 打包与解包变量从结构和增强功能 v2struct包解包变量与结构和增强功能。

v2struct has dual functionality in packing & unpacking variables into structures and vice versa, according to the syntax and inputs. Function features: * Pack variables to structure with enhanced field naming * Pack and update variables in existing structure * Unpack variables from structure with enhanced variable naming * Unpack only specific fields in a structure to variables * Unpack without over writing existing variables in workspaceIn addition to the obvious usage, this function could by highly useful for example in working with a function with multiple inputs. Packing variables before the call to the function, and unpacking it in the beginning of the function will make the function call shorter, more readable, and you would not have to worry about arguments order any more. Moreover you could leave the function as it is and you could pass same inputs to multiple functions, each of which will use its designated arguments placed in the structure.Moreover, the function enables extracting specific fields from a structure according to field names. This enhances the flexibility and ease of use of structures, for example it allows you to pass same inputs as structures to multiple functions, each of which will use its designatedarguments placed in the structure.Some examples: Simple pack: x = zeros(3); y = 'Testing123'; z = cell(2,3); fieldNames1 = {'fieldnames','x','y','z'}; fieldNames2 = {'fieldnames','a','b','c'}; >> S = v2struct(x,y,z) S = x: [3x3 double] y: 'Testing123' z: {2x3 cell} pack with different field names: >> S = v2struct(x,y,z, fieldNames2) S = a: [3x3 double] b: 'Testing123' c: {2x3 cell} update existing structure with additional field: >> S.oldField = 'field to be saved for future use' >> S = v2struct(x2, nameOfStruct2Update, fieldNames3) S = oldField: 'field to be saved for future use' x: [3x3 double] simple unpack: S.x = zeros(3); S.y = 'Testing123'; S.z = cell(2,3); fieldNames3 = {'y'}; >> v2struct(S) y y = Testing123More examples, further comments and demo usage are available inside the .m file and the demo functions.Comments, suggestions, bug reports and any other feedback is welcomed at adi.navve[at]gmail[dot]comInspired by the function 'mmv2truct' from the Mastering Matlab Toolbox (available free) by D.C. Hanselman, University of Maine, Orono, ME 04469 4/28/99, 9/29/99, renamed 10/19/99 Mastering MATLAB 5, Prentice Hall, ISBN 0-13-858366-8available at:http://www.eece.maine.edu/mm/MM6/tbx.html

Adi Navve //www.tianjin-qmedu.com/matlabcentral/profile/2881228-adi-navve
28516年 2022 - 06 - 08 - t23:35:56z 2022 - 06 - 08 - t23:35:56z RenameField 重命名的字段结构——C-Mex快

RenameField——重命名的字段structT = RenameField (S、旧、新)输入:结构或结构体数组。旧的,新的:CHAR或细胞字符串(M版本接受字符串),字段的名称重命名。输出:师:结构S和重命名字段。例子:S。= 1;年代。B = 2;T = RenameField(年代,' B ', ' C ');% T。= 1,T。C = 2这个函数创建讨论后罗兰的博客:http://blogs.mathworks.com/loren/2010/05/13/rename-a-field-in-a-structure-arrayTested:Matlab 2009 a / 2015 b / 2018 b, Win10, LCC3.8, BCC5.5, OpemWatcom 1.8, MSVC 2008兼容64位Linux, MacOS。在指令编译墨西哥人文件的c文件。包括一个M-version慢。

1月 //www.tianjin-qmedu.com/matlabcentral/profile/869888-jan
45123年 2014 - 01 - 20 - t19:57:28z 2014 - 01 - 20 - t19:57:28z 数据结构 MATLAB的实现常见的数据结构,包括树、哈希表、堆和列表

这个包包含MATALB基于类的实现以下常见的数据结构:1)Arrays2)二进制搜索Trees3)散列Tables4 Heaps5) Lists6) Queues7)红黑Trees8) StacksThe编写代码以这样一种方式,它可以很容易地翻译成其他语言。大多数方法都是取自规范化算法文本:Algorithmshttp概论:/ /mitpress.mit.edu/books/introduction-algorithmsNote:所有类继承父类引用传递行为通过MATLAB的处理

布莱恩摩尔 //www.tianjin-qmedu.com/matlabcentral/profile/3690384-brian-moore
33262年 2011 - 10 - 13 - t14:12:10z 2011 - 10 - 13 - t14:12:10z 得到结构以递归的方式字段名称 返回一个结构的字段名称,包括字段名称的“次级架构”。

名称= fieldnamesr (S)返回一个字符串包含的单元阵列结构字段名称与年代有关,任何结构的结构字段名称字段的年代,任何结构字段的字段的年代,等等。名称= fieldnamesr(年代,深度)是一个可选字段允许的深度搜索定义。默认是1,不限制搜索的深度。深度1将只返回的字段名称(象字段名)。深度2将返回那些字段名称、字段名称的任何结构,这是一个领域的年代,等等。名称= fieldnamesr(…,“全”)返回的名称字段结构,以及这些结构的内容,作为单独的细胞。这是不同于默认返回一个结构树。名称= fieldnamesr(…,“前缀”)返回的字段的名称前缀的名字输入结构。名称= fieldnamesr(…,“结构”)只返回结构的字段的名称。

亚当 //www.tianjin-qmedu.com/matlabcentral/profile/2951188-adam
28573年 2018 - 07 - 02 - t15:53:08z 2018 - 07 - 02 - t15:53:08z nestedSortStruct 执行一个嵌套的结构体数组基于多个字段。

nestedSortStruct nestedSortStruct2做一个嵌套的一维结构体数组的两种不同的方法。就是一个字段的结构体数组排序,然后这些条目数组具有相同值的字段排序的第二个字段,etc.If你想只有一个字段,你可以叫nestedSortStruct和使用一个简单的字符串,而不是单元阵列fieldNamesCell,或者您可以简单地调用sortStruct。字段的限制必须是单一的数字或逻辑值,或字符(通常是简单的字符串)。默认情况下,结构体数组将按升序排序,但功能包括一个选项按照降序排列。比nestedSortStruct2 nestedSortStruct通常会更快。nestedSortStruct,排序的速度主要是独立fieldNamesCell字段名的顺序。nestedSortStruct2,字段的顺序fieldNamesCell影响速度。大部分条目的早一个字段结构体数组中有独特的价值观将被用于结构体数组(即。早些时候,它位于fieldNamesCell), nestedSortStruct2将越快。如果一个字段是独特的条目是第一个字段的结构体数组排序,比nestedSortStruct nestedSortStruct2可能更快。nestedSortStruct可以叫sortStruct, nestedSortStruct2 sortStruct2打电话。

杰克Hughey //www.tianjin-qmedu.com/matlabcentral/profile/1972843-jake-hughey
47960年 2014 - 09 - 30 - t07:01:59z 2014 - 09 - 30 - t07:01:59z DataFrame 面向对象的类似于表的数据结构,与熊猫DataFrame相似

Matlab impelementation DataFrame /熊猫的概念。我希望能够定制Matlab表但是我想要的,所以我可以扩展功能。另外,我发现Matlab的方法有许多功能漂浮有点难以记住哪些功能你需要哪些数据结构。相反,我与DataFrame类封装Matlab表,试图尽可能远离的方式我们可以尽可能利用表,同时提供灵活地扩展我们的愿望。另外,我附加方法DataFrame所有现有的功能,可以操作表,同时提供一些新的。我可能会添加更多的方法随着时间的填写,我看到桌子上的缺乏。看到的Github页面如果使用一个基本的介绍。请通过Github贡献/交互问题。我可能会不经常检查这个页面,如果这一切。用例:这样做的一个原因是,我想在未来如何从通用DataFrame继承类型,然后执行类型检查。所以,如果你要求一个AddressBook表名称和地址列总是被初始化,你可以添加到一个专业DataFrame的子类。注意:有一些初步测试和例子在github库。

尼古拉斯 //www.tianjin-qmedu.com/matlabcentral/profile/5320992-nicholas
50534年 2017 - 06 - 12 - t15:52:04z 2017 - 06 - 12 - t15:52:04z 从深层嵌套的结构体中提取值指定的字段名 有用的工具在树上搜索和收集值数据类型结构与特定的字段名

STRUCTVAL是一种方便的工具,从深层嵌套的结构体中提取值指定的字段名。假设你有一个数据集是由相同的属性并存储在一个结构体变量。它可能看起来像:data.a001.r01.valuesdata.a001.r02.valuesdata.a001.r03.valuesdata.b002.r01.valuesdata.c003.values ....你怎么能提取所有的值在“值”提出的每个子集‘数据’吗?这是我的解决方案。[输出]= STRUCTVAL(年代,字段名)深入搜索一个结构体变量字段名和字段值的收集导致“输出”。这个函数收集任何数据类型,但结构。如果特定的字段的数据类型是一个结构,它使搜索进一步下降。此外,STRUCTVAL还能够重建分层数据结构!这是非常有用的,当你需要更换一个特别领域的新价值!更多的信息,在命令窗口中输入“帮助structval”发现。Example: >> S.a = 1;>> S.a.val = 1;>> S.b.val = 'test';>> field = 'val';>> val = structval(S,field)val = [1] 'test'This function is very useful when your data are hidden deeply down a nested STRUCT variable. I used it for collecting results from a Simulink output, which has the form such like data.resultA.signals.values, data.resultB.signals.values....and so forth. Hopefully, it will be useful to you. If you found any problem in the code, please don't hesitate to contact me or leave comments below. Yung-Yeh Chang Ph.D.6/12/2017

Yung-Yeh常 //www.tianjin-qmedu.com/matlabcentral/profile/1100783-yung-yeh-chang
27542年 2016 - 09 - 01 - t15:14:34z 2016 - 09 - 01 - t15:14:34z 递归地比较嵌套细胞和结构体数组 比较两个单元或结构体数组和准确地找到他们不同的地方

这个包包含两个功能CELLEQ和STRUCTEQ分别比较两个细胞数组或两种结构。细胞/结构体内部可能含有更多的比递归嵌套细胞和结构体数组。功能简介:*支持嵌套结构/细胞数组*万博1manbetx返回完整的堆栈信息两个细胞/结构体*内控制的比较函数处理不同结构/细胞*控制比较南propertiesUsage: [iseq信息]= celleq (cell1, cell2、funh2string ignorenan) [iseq信息]= structeq (struct1, struct2, funh2string ignorenan) * iseq是真的如果两个细胞的所有元素和子元素或结构是相同的*信息是一个结构,包含一个字段“原因”,给你一个文本的差异产生的原因以及领域”,“它包含元素和子元素的指标比较失败的地方。*(可选)funh2string,如果这是真的,指示函数处理比较返回true,如果函数的字符串表示处理是相同的。*(可选)ignorenan,如果这是真的,将为南= =南返回true。By default both properties are set to falseExample:>> figure;>> g = surf(peaks(50));>> rotate3d>> hg1 = handle2struct(gcf);>> set(g,'XDataMode', 'manual');>> hg2 = handle2struct(gcf);>> [iseq, info] = structeq(hg1, hg2)iseq = 0info = Reason: [1x137 char] Where: '(1).properties(1).KeyPressFcn{1}'>> [iseq, info] = structeq(hg1, hg2, true)iseq = 0info = Reason: [1x188 char] Where: '(1).children(1).children(1).properties(1).XDataMode'

Ameya Deoras //www.tianjin-qmedu.com/matlabcentral/profile/6055857-ameya-deoras
46676年 2014 - 05 - 20 - t21:33:28z 2014 - 05 - 20 - t21:33:28z set2struct.m 读入戴维斯*。set-files和给他们重新成为一个结构体

函数读取文件路径,打开*。设置文件和写的内容到一个结构体,最后返回。

安德烈亚斯•施密德 //www.tianjin-qmedu.com/matlabcentral/profile/3006596-andreas-schmid
13831年 2012 - 06 - 05 - t11:50:07z 2012 - 06 - 05 - t11:50:07z 结构显示 在Matlab环境下简单的递归显示结构的内容

这个函数非常简单,递归地显示字段和子字段的Matlab结构使用内置的“disp”功能。

托马斯Deneux //www.tianjin-qmedu.com/matlabcentral/profile/898621-thomas-deneux
26867年 2013 - 09 - 11 - t20:06:03z 2013 - 09 - 11 - t20:06:03z anyEq 快速检查2数组有共同的元素

C-Mex: anyEqThis是一个简单而快速的检查,如果两个数组包含任何常见的元素。C-Mex是25%到60%的速度比等效Matlab表达式“任何”(X (:) = = y)和速度远远超过“任何(ismember (X, y))“如果y是一个数组。如果找到一个匹配的元素,这个函数返回没有测试其他非常快。Matlab版本相反,C-mex不需要任何临时数组。R = anyEq (X, Y)输入:X, Y:数组的大小。复杂或稀疏阵列被拒绝。类型:双、单(U) INT8/16/32/64, CHAR,逻辑。输出:R:真正的回答如果X出现在Y的任何元素,否则假。注:——这相当于:R = (X (:) = = Y(1) | |任何(X (:) = = Y (2) | |…——这个墨西哥人版本比Matlab方法更快,因为中间逻辑数组的创建是避免:坏的情况下(没有匹配的元素):25%到60%的速度最好的情况(第一个元素匹配):快99.99% 1 e6元素(Matlab 2011 b / 64, MSVC 2008)。- For small LOGICAL arrays (< 5'000 elements) anyEq is up to 65% slower than any(X) or ~all(X). For larger arrays the speedup depends on the position of the first match and can reach a factor of 7.- X and Y are ordered automatically such, that the elements of the smaller array are searched in the larger one.EXAMPLES: anyEq(0:0.1:1, 0.3) % FALSE: Effect of limited precision anyEq(1:4, [5,2]) % TRUE: 2 is found in 1:4COMPILATION: See anyEq.c for instructions how to compile the C-file.TEST: Run uTest_anyEq to check validity and speed of the Mex function.Tested: Matlab 6.5, 7.7, 7.8, 7.13, WinXP/32, Win7/64 Compiler: LCC2.4/3.8, BCC5.5, OWC1.8, MSVC2008/2010Suggestion and bugreports by email or in the comment section are appreciated.

1月 //www.tianjin-qmedu.com/matlabcentral/profile/869888-jan
38821年 2012 - 10 - 29 - t18:20:41z 2012 - 10 - 29 - t18:20:41z 结构覆盖和合并 覆盖和合并两个结构。覆盖和合并都是可选的。

这是一个东东我需要GUI模拟器在GUI用户输入参数,这些参数搁置的默认的模拟器。合并东东添加这些参数作为“额外的”。我不能负担得起在这个bug(当然:))。如果你发现任何错误请告诉我。我一般这样其他用户可以使用它,如果他们需要。也它的区分大小写的烦人。

戴Awan //www.tianjin-qmedu.com/matlabcentral/profile/2046804-daniyal-awan
35022年 2012 - 02 - 10 - t04:02:55z 2012 - 02 - 10 - t04:02:55z StructFind 找到所有字段在一个结构体(数组)的搜索模式

在结构函数搜索条目。这样做是递归,贯穿所有元素的数组结构。输入:search_struct:搜索结构,也可以是结构体数组search_object:字符串、整数、细胞,数组或另一件事是寻找(可选)structure_name:搜索结构的名称。用于结构的完整输出contentOutput: FoundFields:细胞领域搜索对象的数组。

亚历山大仅仅 //www.tianjin-qmedu.com/matlabcentral/profile/2885627-alexander-mering
33866年 2011 - 11 - 30 - t15:52:55z 2011 - 11 - 30 - t15:52:55z 分散 输入数组元素分配给单个输出变量和一个函数调用。

通常使用Matlab时我们发现自己不得不执行一系列重复的作业从某种类型的数组,如= (1);b = (2);c = (3);。等不可避免的我们问自己,有方法更简单吗?分散是执行这些任务的语法糖和一个函数调用。分散是不一样的。例如,如果一个是一个向量(b c d) =分散(A)执行= (1),b = (2), c =(3),和d =(4),而[A b c d] (A)执行一个= =交易,b = A, c = A和d =。分散推广到任意尺寸,和扩展遵循类似的行为单元数组和结构数组。例如,如果一个是一个RGB图像,然后[r g b] =分散(A)抓住了r, g, b颜色通道从A看到更多示例文档。- - - - - - - - - -编辑:我最近通知,有一个类似的叫做VECT2VAR提交。为输入向量,这些函数是等价的;然而,分散也适用于高维对象,它是方便的在处理矩阵,图片,视频等。

山姆Hallman //www.tianjin-qmedu.com/matlabcentral/profile/2914048-sam-hallman
31736年 2011 - 06 - 09 - t05:03:49z 2011 - 06 - 09 - t05:03:49z 细胞/结构树,Struct排序 为细胞阵列,生成树结构和数据,从一个细胞或一个结构体。

给定一个细胞或一个结构体,有时是有用的了解树从主要到最远的分支。树木作为字符串返回细胞,根据数据类型。每条路径可以有效地使用Matlab内置执行eval()函数。结构的排序也实现,一些限制。排序是基于Matlab实现内置()函数,在引用的一个领域。因此所有字段应该有相同数量的元素。分选细胞的关系的一个字段是没有实现。

t·R。 //www.tianjin-qmedu.com/matlabcentral/profile/2058688-t-r
52375年 2021 - 02 - 12 - t19:31:53z 2021 - 02 - 12 - t19:31:53z explorestruct 1.2 MATLAB工具探索结构和策划的领域。R2012a固定。

(由哈桑Lahdili基于explorestruct 1.1) explorestruct v.1.2MATLAB探索结构的实用程序和策划他们的田地。这个GUI StructBrowser实用程序的更新和增强版本提交给MATLAB中央2003年5月。它有新的接口和一个增强显示。它使用微软TreeView控件来显示和探索任何类型的MATLAB结构。CRC ExploreStruct旨在揭露任何深度和结构体数组的内容情节的任何组件。这个工具对于程序员是非常有用的在自己的代码中使用的结构。版本R2012a固定。我上传的版本和补丁在这里发展原始文件似乎已经停止。那将是一种耻辱depricated如果这样一个有用的工具。

路加福音Plausin //www.tianjin-qmedu.com/matlabcentral/profile/2597630-luke-plausin
63025年 2017 - 05 - 19 - t22:46:19z 2017 - 05 - 19 - t22:46:19z awmiller / hasfield_matlab HASFIELD发现第一个结构体成员称为字段名,用HASFIELDRX找到第一个正则表达式匹配

ISFIELD HASFIELD是一个改善的目的是搜索结构在结构体字段名。为此它还提供现场首次发现的水平,使用广度优先搜索。默认情况下它将搜索详尽,但可以通过第二个参数是有限的氮水平,把父结构作为tree.ex.d.c的根源。= 1,特区。b = 2,特区。c = 3; d.c.d。= 1,特区。d.b.waldo = 'where?'d.c.d.walbo = 'wear?'[x,L] = hasfield(d,'waldo')x = logical 1L = 4

安德鲁•米勒 //www.tianjin-qmedu.com/matlabcentral/profile/4127098-andrew-miller
56413年 2016 - 04 - 06 - t22:14:08z 2016 - 04 - 06 - t22:14:08z kpfield(年代,字段) 只保留指定字段的结构。rmfield逆。

函数只保留指定字段的结构。比使用rmfield作为结构转换为一个单元阵列在字段名比较逻辑转换回一个结构之前。对于大型结构更快。

迈克尔Sansoni //www.tianjin-qmedu.com/matlabcentral/profile/7912216-michael-sansoni
54837年 2016 - 01 - 19 t15:50:32z 2016 - 01 - 19 t15:50:32z 合并选项 合并一个struct的缺省选项结构的用户选择

% = mergeOptions输出(默认、用户名称)% %合并一个默认选项结构结构与一个用户定义的选项。%递归地工作,并将问题警告消息如果用户试图定义一个字段,默认选项。% %行为:% % -所有字段默认将显示在输出%——如果一个字段是在违约和用户,然后从用户价值输出% %——如果一个字段存在于用户,但不违约,然后发出一个警告。%——递归地应用% % %指出:% %参数名称是可选的,并包含一个字符串指定%选择结构的名称。这主要是用于打印%警告用户。% %这个函数递归地工作。例如,如果有一个struct %的内部结构,那么它将递归地应用这个merge. %

马修•凯利 //www.tianjin-qmedu.com/matlabcentral/profile/2853760-matthew-kelly
53871年 2015 - 11 - 09 - t10:48:25z 2015 - 11 - 09 - t10:48:25z uniqueStruct 执行“独特”结构的向量

一个非常简单的函数,该函数将返回命令向量的结构独特的元素。注意:nan被认为是相等的。

Valerio Biscione //www.tianjin-qmedu.com/matlabcentral/profile/4488786-valerio-biscione
34401年 2011 - 12 - 31 - t16:05:41z 2011 - 12 - 31 - t16:05:41z CatStruct2 每个深度连接结构(字段合并)

FinalStruct = CatStruct2 (S1, S2)连接结构S1和S2 FinalStruct成一个结构。在每个字段名深度会比较。字段名是发现在这两种结构,第二次发生的值将覆盖first.CatStruct2 (S1, S2,“分类”)将合并两种结构后按字母顺序排序的字段名。由于乔斯van der地表古积提供的源代码CATSTRUCT onhttp: / /www.tianjin-qmedu.com/matlabcentral/fileexchange/7842-catstruct/content/catstruct.m

哈桑 //www.tianjin-qmedu.com/matlabcentral/profile/3246090-hassan
32879年 2011 - 09 - 13 - t15:08:54z 2011 - 09 - 13 - t15:08:54z 以图形方式显示的“分支”结构一个结构体变量 递归函数用来显示“分支”结构的结构体变量。

欢迎来到我的第一个帖子!递归函数的structstruct。米的任何类接受一个输入和输出ASCII命令窗口。目前没有功能输出。植物体内非结构性的输入,对structstruct显示输入的类和大小,然后退出。结构输入,structstruct显示输入的字段和子字段在一个ASCII的图形打印命令窗口。结构字段的顺序保存。有标题和评论道“帮助”文本输入/输出信息。代码是亲切地说。我设计这个函数可以很容易地探索一个结构体变量的结构没有通过“挖掘”中的所有字段变量编辑器。 It serves its purpose very well, but there are surely areas for expanded/improved functionality that I'm not seeing...Comments and suggestions welcome!

安德鲁 //www.tianjin-qmedu.com/matlabcentral/profile/3044321-andrew
4176年 2009 - 07 - 21 - t08:25:26z 2009 - 07 - 21 - t08:25:26z PNM工具箱3.01 PNM工具箱是一个集合的MATLAB程序读写PPM, PGM, PBM, PNM,……

PNM工具箱是一个集合的MATLAB程序读写图像文件。PPM(万博1manbetx便携式pixelmap)支持的格式,PGM(便携式graymap), PBM(便携式位图),RAS(太阳光栅文件),SGI / RGBA / RGB / BW(硅谷图形图像文件)和XBM X11位图图像文件。

彼得约翰Acklam //www.tianjin-qmedu.com/matlabcentral/profile/294097-peter-john-acklam
25541年 2016 - 09 - 01 - t15:12:45z 2016 - 09 - 01 - t15:12:45z structdlg 对话框显示或修改结构化数据

回答= STRUCTDLG (S)创建一个模态对话框,返回结构体中的多个提示用户输入答案。是默认的结构。每个提示字符串将继承年代的字段名称。答案是相同的结构作为年代除了字段类型的“字符串单元阵列”,将作为一个字符串返回(用户选择)。对话框支持以下万博1manbetx类型:领域-数字(标量和多维)字符串(单行和多行)——逻辑(标量和多维)——cellarray和异构数据类型(字符串)- struct回答= STRUCTDLG(名称),指定对话框标题的答案= STRUCTDLG(年代,名字,选项)指定的选项结构

保罗Fabbri //www.tianjin-qmedu.com/matlabcentral/profile/1297630-paolo-fabbri
48637年 2016 - 01 - 15 - t04:19:30z 2016 - 01 - 15 - t04:19:30z DISPDISP -详细的结构和对象的显示 显示更多信息字段和属性的结构或对象。

DISPDISP (Z), Z是一个结构或对象,调用disp一样(Z),除了Z的每个字段或属性,字段或属性的disp方法的输出将显示(如果它通常只需要一行)。使用dispdisp过载disp类的方法。

天空缝匠肌 //www.tianjin-qmedu.com/matlabcentral/profile/2407391-sky-sartorius
42332年 2013 - 06 - 24 t17:51:42z 2013 - 06 - 24 t17:51:42z addStructs 增加了两种结构的数值。

S = addStructs (S1, S2)给定两个结构S1和S2,返回一个struct年代这样的这是。= S1。+ S2。对于所有字段名的相应的值都是在S1和S2 numericand相同的长度。如果值不是数字或不相同的长度,从S1复制到价值。该函数将抛出一个错误如果字段名称inS1和S2是不一样的。Example:>> s1s1 = a: 1 b: 2 c: [1 2 3] foo: 'bar'>> s2s2 = a: 1 b: 4 c: 3 foo: 'baz'>> addStructs(s1, s2)ans = a: 2 b: 6 c: [1 2 3] foo: 'bar'

戴夫 //www.tianjin-qmedu.com/matlabcentral/profile/3568531-dave
41810年 2013 - 05 - 21 - t15:43:37z 2013 - 05 - 21 - t15:43:37z 吉尔松高效液相色谱泵RS232通信 通过RS232与Gilson高效液相色谱泵(和508接口模块)

可以用来传达各种Gilson泵通过RS232,所有使用508接口模块连接在一起。这是一个稍微CO2gui简化版本的代码。serialObject = gilsonpumpobj(一致)返回串口对象Gilson泵给定合适的COM端口号(无符号整数:1 - 255)。信息可以传递到串行对象通过可选的用户数据参数。信息存储在一个结构在通信会话的泵更有效的沟通。gilsonpumpobjconnect和断开(serialObject)工作像你expectVarious命令可用与泵、通信和数据存储的方式如果你检索多个参数可能是更有效的收集它们在同一时间(见每个文件中的注释)。

杰弗里Akien //www.tianjin-qmedu.com/matlabcentral/profile/1795689-geoffrey-akien
40124年 2013 - 05 - 01 - t21:43:08z 2013 - 05 - 01 - t21:43:08z compareStruct 比较结构体字段

compareStruct比较结构体字段并返回逻辑1(真正的)如果输入结构有相同的字段,和逻辑0(假)否则,无论其内容。

马可·博尔赫斯 //www.tianjin-qmedu.com/matlabcentral/profile/2412620-marco-borges
24576年 2012 - 07 - 18 - t09:39:04z 2012 - 07 - 18 - t09:39:04z 为Matlab InplaceArray: semi-pointer包 操纵(多维)阵列的就地形式

这个包可以帮助创建“孩子”数组,数组共享相同的数据作为母亲。孩子们数组可以塑造任何定制的大小后操作。简而言之,它提供了某种等价的C -“指针”,Matlab缺乏。极端谨慎使用这个包时,否则遇到崩溃和内存泄漏保修。“高级”用户。稀疏、结构目前不是supportedATTENTION: testinp万博1manbetxlace上的严重错误。在第一次提交。新的固定版本提交前请不要运行这个函数(休息是好的)

布鲁诺陈德良 //www.tianjin-qmedu.com/matlabcentral/profile/390839-bruno-luong
31809年 2011 - 06 - 15 - t11:35:03z 2011 - 06 - 15 - t11:35:03z 合并结构 合并两个结构相同的大小。

一个简单的函数来合并两种结构,只要他们是相同的大小。例:[test1 (1:2, 1:2)。]=交易(1、2、3、4)[test2 (1:2, 1:2)。B] =交易(5、6、7、8)= fJoinStructures (test1, test2) = 2 x2结构体数组字段:B

格兰特Lohsen //www.tianjin-qmedu.com/matlabcentral/profile/1966096-grant-lohsen
29808年 2010 - 12 - 23 - t06:05:12z 2010 - 12 - 23 - t06:05:12z structfind 寻找一个值,在Matlab struct细胞或字符串

StructFind,找到某个字符串的索引或价值结构指数= StructFind(一、字段值)输入,答:Matlab结构,例如(1). name = '红',一个(2). name =“蓝”;领域:搜索的字段的名称,例如“名字”价值:搜索值,例如“蓝”输出,指数:结构指数匹配搜索示例中,(1). name =“蓝”;(1).index = 0;(1).val = ' g ';(2). name = '红色';(2).index = 1;(2)。val = [1 0];(3). name = '绿色';(3).index = 2; a(3).val='g'; a(4).name='black'; a(4).index=3; a(4).val=[0 0 0]; a(5).name='yellow'; a(5).index=NaN; a(5).val=[0 1 1]; a(6).name='orange'; a(6).index=[]; a(6).val=[1 1 0]; a(7).name='brown'; a(7).index=6; a(7).val={'12'}; a(8).name='white'; a(8).index=7; a(8).val.x=1; a(8).name='purple'; a(8).index=8; a(8).val.child.value=2; index=structfind(a,'name','red'); disp(['index : ' num2str(index)]) index=structfind(a,'index',1); disp(['index : ' num2str(index)]) index=structfind(a,'val',[0 0 0]); disp(['index : ' num2str(index)]) index=structfind(a,'val','g'); disp(['index : ' num2str(index)]) index=structfind(a,'index',NaN); disp(['index : ' num2str(index)]) index=structfind(a,'index',[]); disp(['index : ' num2str(index)]) index=structfind(a,'val',{'12'}); disp(['index : ' num2str(index)]) index=structfind(a,'val.child.value',2); disp(['index : ' num2str(index)])

Dirk-Jan克朗 //www.tianjin-qmedu.com/matlabcentral/profile/1097878-dirk-jan-kroon
28115年 2010 - 11 - 10 - t13:28:06z 2010 - 11 - 10 - t13:28:06z 剪切指标 这可能是剪显示块的时间记录。

剪切是主要的项目。有三个输入:y =时间记录,threshhold_value剪裁阈值,和threshhold_samples是连续数据点的数量超过了threshhold_value表明数据剪。程序会返回两个细胞阵列(clipped_max clipped_min)表示剪的长度和索引数据。块大于threhhold_value clipped_max显示数据。块小于1 * threhhold_value clipped_min显示数据。

爱德华Zechmann //www.tianjin-qmedu.com/matlabcentral/profile/276845-edward-zechmann
28517年 2010 - 08 - 20 - t06:13:09z 2010 - 08 - 20 - t06:13:09z fRMField 将字段从C-Mex结构有效地-快

fRMField:删除字段(s)从结构-快速C-MEXThis函数是5到10倍的速度比RMFIELD Matlab 2009 a。T = fRMField(年代,名称)输入:结构或结构体数组。名称:细胞字符串或字符串。删除一个名字,这并不是一个字段名的年代,不是* *一个错误,在Matlab的RMFIELD相反。输出:师:Struct年代没有删除字段。例子:S。= 1;年代。B = 2;T = fRMField(年代,{' B ', ' C '});% >> T.A = 1 T = fRMField(S, 'A'); % >> T.B = 2TEST: Run TestfRMField to check validity and speed of the Mex function. See screenshot.Tested: Matlab 6.5/2009a, WinXP 32bit, LCC2.4/3.8, BCC5.5, OpenWatcom1.8, MSVC2008Compatibility to Linux, MacOS, 64bit, 2010a is assumed.

1月 //www.tianjin-qmedu.com/matlabcentral/profile/869888-jan
27858年 2010 - 06 - 09 - t12:55:42z 2010 - 06 - 09 - t12:55:42z Struct字符串替换 替换字符串中嵌套结构和细胞阵列。

这个函数递归地遍历一组任意深度嵌套的结构和细胞阵列,找到给定字符串的所有实例,并替换一个新的字符串。除了任何简单的文本操作,这个函数是用于更新一组路径名存储在一个大型结构如果相关的文件被重新安置。

罗斯·哈顿 //www.tianjin-qmedu.com/matlabcentral/profile/594876-ross-hatton
19484年 2008 - 06 - 03 - t07:38:00z 2008 - 06 - 03 - t07:38:00z 灵活的搜索字段名称和清单工具在一个结构数组中 在一个结构数组和列表搜索字段名称

看涨期权:- - - - - - - - - - - - searchfield (AStruct)——显示所有字段结构数组AStruct拥有完整(“长”)的名称。searchfield (AStruct SearchString)——显示所有字段结构数组AStruct的名称包含SearchString(默认=不区分大小写)。searchfield (AStruct SearchString, SearchOption)——以下选项可能是由SearchOption表示:“违约”——违约(不区分大小写的搜索,见上图)。“案例”——区分大小写的搜索。“准确”——只有那些匹配的字段名称列出SearchString完全(不区分大小写的搜索)。“exactcase”——“精确”一样,但区分大小写的搜索。“开始”——只有那些字段名称列出的开始匹配SearchString(不区分大小写的搜索)。“begincase”——“开始”一样,但区分大小写的搜索。“结束”——只有那些字段名称列出的最后匹配SearchString(不区分大小写的搜索)。“endcase”——一样的“结束”,但与区分大小写的搜索。 If no option is given, 'default' is assumed.SearchFields(AStruct, SearchString, SearchOption, AStructName)- Normally, the name of the structure array AStruct is resolved using the internal MatLab function "inputname". However, this does not work when the name of AStruct contains dots and/or brackets. As a workaround (as well as to enable recursive operation) the name of AStruct can be entered "manually" as a string in AStructName.FoundFieldsList = SearchFields(AStruct, ...)- A list of the found field names is stored as a cellular string array into the output variable FoundFieldsList.If no output variable is indicated, the names are printed as a list on the screen.Example of function call:------------------------SearchFields(ExampleStruct, 'afield')Result (example):----------------ExampleStruct.AFieldExampleStruct.AnotherField{2,3}.AFieldExampleStruct.AnotherField{2,3}.AField2

保罗点Bune //www.tianjin-qmedu.com/matlabcentral/profile/1338810-paul-a-m-bune
7828年 2007 - 08 - 14 - t15:14:25z 2007 - 08 - 14 - t15:14:25z explorestruct MATLAB工具探索结构和策划的领域。

CRC-ExploreStruct v.1.1MATLAB探索结构的实用程序和策划他们的田地。这个GUI StructBrowser实用程序的更新和增强版本提交给MATLAB中央2003年5月。它有新的接口和一个增强显示。它使用微软TreeView控件来显示和探索任何类型的MATLAB结构。CRC ExploreStruct旨在揭露任何深度和结构体数组的内容情节的任何组件。这个工具对于程序员是非常有用的在自己的代码中使用的结构。

哈桑Lahdili //www.tianjin-qmedu.com/matlabcentral/profile/19815-hassan-lahdili
15463年 2007 - 07 - 02 - t13:53:44z 2007 - 07 - 02 - t13:53:44z 数据操作工具箱 细胞操纵数据,如字符串、数组、数组和结构体,和一个单元测试框架

数据操作工具箱(dmtoolbox)是一个MATLAB工具箱,以促进一般的编程使用各种数据结构,如字符串、数组、细胞数组和结构体数组。尽管MATLAB提供了一系列的内置函数来操纵这些元素,非平凡的努力仍然需要完成一些高级操作。这个工具箱旨在补充一些MATLAB的函数目前缺乏而不是取代现有的。这里是一个简短的列表dmtoolbox常见工具提供的功能函数的逻辑判断,条件数,数组选择和笛卡儿积的计算。字符串操作和格式生成字符串的函数在不同类型、格式化字符串,从字符串中提取信息,并转换为字符串。单元阵列操作功能的逻辑判断,条件计算、元件选择、选择性去除,和转换的细胞阵列。结构体数组操作的功能分类和转换结构体数组从/到不同的数据结构。(查阅表)的映射函数构建地图(也被称为字典,哈希表,或者loop-up-table),和一个标量或字符串映射到相应的值。单元测试框架,它是一个灵活和轻量级框架类和函数在MATLAB辅助单元测试。您可以使用框架编写测试函数与断言,组织成测试用例和测试套件。框架监控所有测试用例的运行和记录所有断言检查结果和异常,并报告给用户。提供了详细的帮助在每个函数m,足够的例子来展示他们的用法。此外,这里这个工具箱提供的HTML帮助MATLAB帮助浏览器。你可以很容易地把它通过列表中的数据操作工具箱的MATLAB帮助内容或者只是打字dmdoc MATLAB命令行。保证质量,全面testsuite一直写检查所有功能是否正常工作。 After installing the toolbox, you may type in dmtoolbox_test to run the tests to verify that the toolbox can work normally in your MATLAB environment. The whole testsuite is written based on the unit testing framework offered in the toolbox, which in itself is a good example to show how to use the testing framework.

大华林 //www.tianjin-qmedu.com/matlabcentral/profile/870600-dahua-lin
8776年 2005 - 10 - 21 - t10:25:56z 2005 - 10 - 21 - t10:25:56z STRUCTDLG 此函数接受一个结构作为输入,然后自动构建一个图形用户界面。

S_NEW = STRUCTDLG (S_OLD)创建一个模态对话框,要求用户对新结构S_OLD每个字段的值,然后创建一个新的结构S_NEW相同的字段,但新值。换句话说,这个函数接受一个结构作为输入,然后它自动构建一个图形用户界面来修改它的字段值。它是基于INPUTDLG。

马可Cococcioni //www.tianjin-qmedu.com/matlabcentral/profile/870264-marco-cococcioni
6668年 2005 - 03 - 01 - t09:44:18z 2005 - 03 - 01 - t09:44:18z StructDlg——结构基于GUI的定义 基于结构的定义一个输入GUI。

StructDlg创建一个模态对话框,其中包含一个用户界面(UI)为每个输入结构的控制领域。在其简单的形式,StructDlg作为基于结构替代INPUTDLG和浏览和方便的方法是改变结构的值(例如,当结构包含参数)。其先进的形式,StructDlg允许快速和方便的基于文本的定义GUI可能包含许多风格的UI控件,如编辑、弹出菜单,单选按钮,切换等等。详细的例子给出了一个HTML文档文件。

阿龙Fishbach //www.tianjin-qmedu.com/matlabcentral/profile/869998-alon-fishbach
14395年 2022 - 09 - 07 - t09:17:48z 2022 - 09 - 07 - t09:17:48z ObjDiff——通用对象比较器 任何类型的比较对象inc . Java, Matlab, HG处理、结构、细胞和数组

OBJDIFF compares two objects & returns an object of the same type with just the different fields/values. Unlike Matlab's SETDIFF or SETXOR, this OBJDIFF utility also compares structs, GUI handles, ActiveX, Matlab & Java objects, in addition to arrays & cells. OBJDIFF also allows comparison of numeric cell arrays, unlike SETDIFF/SETXOR. It also accepts anything that SETDIFF/SETXOR accept. Syntax: [objectC,IA,IB] = objdiff(objectA, objectB, options, ...) Inputs: - objectA - first object to compare - objectB - second object to compare. Field order in opaque objects does not matter. Note: If objectB is not supplied, then objectA(1) is compared to objectA(2) - options - optional flags as follows: 'rows' - see documentation for SETXOR 'dontIgnoreJava' - show different instances of the same java class (default=ignore them) Outputs: - objectC - object containing only the different (or new) fields, in a {old, new} pattern - IA,IB - index vector into objectA,objectB such that objectC = [objectA(IA),objectB(IB)] (see SETXOR) Examples: >> objectA = struct('a',3, 'b',5, 'd',9); >> objectB = struct('a','ert', 'c',struct('t',pi), 'd',9); >> objectC = objdiff(objectA, objectB) % a=different, b=new in objectA, c=new in objectB, d=same objectC = a: {[3] 'ert'} b: {[5] {}} c: {{} [1x1 struct]} >> objectC = objdiff(java.awt.Color.red, java.awt.Color.blue) objectC = Blue: {[0] [255]} RGB: {[-65536] [-16776961]} Red: {[255] [0]} >> objectC = objdiff(0,gcf) % 0 is the root handle objectC = children: {[2x1 struct] []} handle: {[0] [1]} properties: {[1x1 struct] [1x1 struct]} type: {'root' 'figure'} >> [objectC,IA,IB] = objdiff({2,3,4,7}, {2,4,5}) objectC = 3 5 7 IA = 2 4 IB = 3 See also: setdiff, setxor, isstruct, isjava, ishghandle, isobject, iscell,http://UndocumentedMatlab.com

实验后奥特曼 //www.tianjin-qmedu.com/matlabcentral/profile/642467-yair-altman
72748年 2019 - 09 - 26 - t13:53:20z 2019 - 09 - 26 - t13:53:20z getDisplayProperties 一个函数来确定主要显示属性

Today screen resolution may vary from the "standard" 96 dpi to much larger values (>300).Frequently users have to specify some scaling option at the os level in order to avoid too small characters on screen. In order to run safely java swing customisation (for example) it is necessary to take into account such scaling at run time. This small code answers this question and give some other useful display properties.

阿兰Barraud //www.tianjin-qmedu.com/matlabcentral/profile/2029305-alain-barraud
71990年 2019 - 06 - 30 - t08:54:15z 2019 - 06 - 30 - t08:54:15z rotfield从哈迪萨达特(编辑) 编辑从哈迪saadat让itEdited哈迪萨达特

使它与Matlab的新版本兼容

乌斯曼(2015 - ee - 448) uet (fsd) //www.tianjin-qmedu.com/matlabcentral/profile/12077359 -乌斯曼- 2015 ee - 448 - uet -女性性功能障碍
63774年 2019 - 03 - 13 - t10:28:00z 2019 - 03 - 13 - t10:28:00z 从结构selectfields:选择指定的字段名 选择字段中列出一个细胞从一个结构体数组

选择字段中列出一个细胞从一个结构体数组。可选的第三个参数抑制错误消息如果结构不包含字段。东西:struct2 = selectfields (struct1{列表字段名称})字段名称和对应字段内容从struct1 struct2。struct2 = selectfields (struct1{列表字段名称},true)字段名称和对应字段内容从struct1 struct1 struct2如果字段名存在。错误信息缺失字段nan也suppressedSee renamefieldsSee医生selectfields

比尔美白 //www.tianjin-qmedu.com/matlabcentral/profile/2041667-bill-whiten
69247年 2018 - 10 - 28 - t13:59:57z 2018 - 10 - 28 - t13:59:57z deployFields 部署所有字段的结构变量

% DEPLOYFIELDS部署所有字段结构的“细节”,作为变量,%在调用者的workspace. % %语法:% DEPLOYFIELDS(细节);% DEPLOYFIELDS (structVarName); % DEPLOYFIELDS; % % DEPLOYFIELDS接受一个结构变量,或者一个名字%的一个结构变量。后者是更快,因为它不涉及%复制结构。% %如果没有参数传递,DEPLOYFIELDS搜索默认结构%变量名:“细节”。最常见的用法:函数[]= foo() %的默认值:a = 1, b = 2, deployfields;%部署细节。如果细节领域。。b,他们将.............覆盖默认值

以利米勒以下两 //www.tianjin-qmedu.com/matlabcentral/profile/11426099-elimelech-schreiber
67918年 2018 - 07 - 03 - t08:28:35z 2018 - 07 - 03 - t08:28:35z isempty_field——轻松地检查是否一个深层嵌套的字段为空或不存在 这个函数检查是否一个字段是空的存在/不存在无需其母字段

tf = isempty_field (S、帧)这个函数检查是否一个字段为空/不存在。这是特别有用,当我们想要检查是否adeeply嵌套的字段是空的,但不知该领域和/或母公司字段存在。“isempty”功能和“isfield”不可能轻易地申请了这个目的,因为他们需要父字段存在。例如,我们有一个字段“S.a.b.c.d.e。f”,想检查是否为空,但不确定是否所有的字段(“a.b.c.d.e”)存在。我们可以用“isfield”每个父字段,但这非常麻烦,需要几行代码。相反,我们可以简单地调用:tf = isempty_field(年代,“S.a.b.c.d.e.f”),该函数将返回假当该S.a.b.c.d.e领域”。f”存在,不是空的,否则和真实。

特伦斯博朗 //www.tianjin-qmedu.com/matlabcentral/profile/3301777-terence-brouns
67096年 2018 - 04 - 27 - t09:21:46z 2018 - 04 - 27 - t09:21:46z StructSearch (input_struct search_term) 搜索并返回细节和孩子结构匹配参数。

输入:1。结构(嵌套的)2。搜索字符串(不分大小写)找到一个成员。输出:1。结果:[nx4字符串)→[matching_member full_path_of_that_member Class_of_member Description_of_member) 2。Child_struct =一个struct与匹配的成员,同时保留形成层次结构。用途:用于嵌套结构与大量的成员。我这是用于磁共振成像数据处理。如:%例嵌套结构P_struct =结构(“array_small”, [5 - 6],“array_large”的(2、3、5)、“字符串”、“示例”);P_struct。N1_strct=struct('string', 'Nested struct 1'); P_struct.N1_strct.N2_struct=struct('string', 'In Nested struct 2');%Usage [details, child]=StructSearch(P_struct,'strin'); %outputdetails = 3×4 string array "string" "P_struct.string" "char" "Example" "string" "P_struct.N1_strct.st…" "char" "Nested struct 1" "string" "P_struct.N1_strct.N2…" "char" "In Nested struct 2"child = struct with fields: string: 'Example' N1_strct: [1×1 struct]

Praveen Iyyappan Valsala //www.tianjin-qmedu.com/matlabcentral/profile/8083664-praveen-iyyappan-valsala
66821年 2018 - 04 - 08 - t16:37:48z 2018 - 04 - 08 - t16:37:48z concat_struct (s1, s2) 系列的两种结构的连接

这个函数执行两种结构的连接字段降序的每个字段。不需要的字段名称。

哈达尔发现 //www.tianjin-qmedu.com/matlabcentral/profile/3261123-hadar
64057年 2017 - 08 - 17 - t17:20:02z 2017 - 08 - 17 - t17:20:02z flattern_struct(输入名称) flattern结构与未知数量的嵌套结构

例如:输入。input.field1 field1 =结构()。field2 =结构()……flattern struct它只有一层,然后你就可以把它转换成细胞/表等等。

uathena //www.tianjin-qmedu.com/matlabcentral/profile/4988405-uathena
63930年 2017 - 07 - 31 - t21:15:09z 2017 - 07 - 31 - t21:15:09z struct2pairs (struc) 创建单元阵列对字段名和字段值。

存储的名称值对结构方便,易于维护,易于阅读的代码。用户struct2pairs当传递到function.Example:…lineconfig =结构(“颜色”,“r”,“线型”、“——”、“MarkerSize”, 3,…);双= struct2pairs (lineconfig);情节(数据、数据对{:})

罗马Muller-Hainbach //www.tianjin-qmedu.com/matlabcentral/profile/5324027-roman-muller-hainbach
63754年 2017 - 07 - 18 - t09:26:13z 2017 - 07 - 18 - t09:26:13z renamefields:重命名一些结构体字段名称 改变结构体字段名称从单元阵列中的旧名称,名称列表的新名称列表

改变结构体字段名称从单元阵列中的旧名称,名称列表的新名称列表。可选的第四个参数抑制错误消息如果结构不包含一个古老的名字。Examplesstruct2 = renamefields (struct1{旧名单},{新名单})改变给定的名称在“旧名单”中“新名单”struct2 = renamefields (struct1{旧名单},{新名单},true)这些名称从旧名称变化,如果出现在struct1名称从新的namesCan还交换名称e.g.struct2 = renamefields(结构体(a, 1, ' b ', 2 ' c ', 3), {“a”、“b”}, {' b ', ' '})参见selectfieldsSee医生renamefields

比尔美白 //www.tianjin-qmedu.com/matlabcentral/profile/2041667-bill-whiten
59507年 2016 - 10 - 05 - t21:33:00z 2016 - 10 - 05 - t21:33:00z digitizeImg GUI对数字化位图图形。

DIGITIZEIMG2开始数字化图形的GUI。可用于多个数据集每图号如果一个数据点标记为错误。使用:按照说明的GUI。右击:选择数据点左键点击:完成鼠标中键:没有最后的数据点语法:digitizeImg2打开一个文件选择器。只能用于与IMREAD兼容的数据类型。选择一个文件之后,一个GUI将打开,将指导您完成所需的步骤提取数据。如果没有输出,数据保存在一个垫子文件。ImgData = digitizeImg2;保存矩阵中的数据/ struct ImgData (struct如果超过一个数据集)。digitizeImg2(文件名); To choose the file directly. see also: IMREAD, IMFINFO Input arguments: - filename: file name of the image to be digitized (optional) Output arguments: - ImgData: X- and Y-coordinates of the digitized graphs Author: Marc Jakobi - 15.12.2015 Original versions: digitize (by J.D.Cogdell) / digitize2 (by A. Prasad)

Marc Jakobi //www.tianjin-qmedu.com/matlabcentral/profile/4529133-marc-jakobi
59245年 2016 - 09 - 22 - t20:19:04z 2016 - 09 - 22 - t20:19:04z 代的帧变量大小的字节填充 代的帧变量大小的字节填料符合OSI数据层

代框架- 1 - 8个字节的长度值之间min_Val max_Val = [0255] frame分隔的开始标记和结束标记(171)如果帧内的开始标记然后被转义字符转义(27)

蒂莫 //www.tianjin-qmedu.com/matlabcentral/profile/3366238-timo
57957年 2016 - 07 - 31 - t08:25:55z 2016 - 07 - 31 - t08:25:55z 设置和获取嵌套结构/对象提交数据 函数允许容易获取和设置访问一个嵌套结构/对象提交数据

曾经与一个结构或一个对象复杂的拓扑结构,包括多层次嵌套域?访问相关的申请你必须知道整个路径。幸运的是Matlab自动完成一个伟大的帮助,但问题仍然存在。代码使用这个路径可能看起来像一个句子在文学。如果拓扑(完整路径到目标字段)将会改变吗?的支持和万博1manbetx调试的代码是一个持续的噩梦。以下组函数提出了一个办法摆脱这个局面。通过使用只有一个路径的一部分(可能只使用目标提交名称)对你的目标分场,你可以找到整个路径使用函数“isSubPath”。将验证是否提供的部分路径是合法的,并返回完整路径。通过使用完整路径你可以接受目标字段数据,使用“getStructSubField”函数只有两个输入,结构和完整路径。以类似的方式你可以设置所需的数据到目标字段使用“setStructSubField”功能。Using the above sequence you will get short code, that will run, despite changes in topology (as long as the partial path is legal).Me and my colleagues find this code very helpful. Hope you'll enjoy it as well.

尼古拉。 //www.tianjin-qmedu.com/matlabcentral/profile/1409938-nikolay-s
20876年 2016 - 04 - 04 - t17:02:03z 2016 - 04 - 04 - t17:02:03z 使用哈希表 (Java类包装)

类Hashtable Matlab提供用户访问哈希表数据结构。中指定的类允许多个键值对‘得到’,‘把’和‘删除’方法,使用细胞阵列收集输入和输出,并提供矢量形式的‘iskey’和‘isvalue’,以及选择初始化一个哈希表的初始键/值set.Note Java的参与限制的范围类型可以存储在一个Hashtable实例。

迪米特里Shvorob //www.tianjin-qmedu.com/matlabcentral/profile/870050-dimitri-shvorob