玖叶教程网

前端编程开发入门

周一分享(八十六):Matlab精读复刻论文之代码复刻7

Matlab精读复刻论文

Matlab reads the reproduction paper

分享兴趣,传播快乐,

增长见闻,留下美好。

亲爱的您,

这里是LearingYard学苑!

今天小编为大家带来Matlab精读复刻论文。

欢迎您的用心访问!

本期推文阅读时长大约5分钟,请您耐心阅读。

Share interests, spread happiness,

increase knowledge, and leave beauty behind.

Dear you,

this is LearningYard Academy!

Today,the editor brings you Matlab intensive reading reproduction paper.

Welcome your visit!

The reading time of this tweet is about 5 minutes, please read it with patience.

本周小编将从思维导图、精读内容、知识补充三个板块介绍根据上周得到的将复杂网络分为两类。

This week, the editor will introduce complex networks into two categories according to the obtained last week.

01

思维导图

02

精读内容

根据下图要求及上述矩阵,将复杂网络划分为两类。

According to the requirements of the following figure and the matrix above, complex networks are divided into two categories.

代码如下图所示:

The code is shown in the following figure:

结果显示了-1所在的行和列,如下图所示:

The result shows the row and column where -1 is located, as shown in the following image:

将曾经在同一列出现的行数归为一组,可得1、5、6、7、9、11、12、13、14、17、19为一组,2、3、4、8、10、15、16、18、20为一组。然后使用节点替代行元素。由于本文将决策者视为节点,因此为一组,为一组。

Combining the number of rows that have appeared in the same column into groups yields 1, 5, 6, 7, 9, 11, 12, 13, 14, 17, 19, and 2, 3, 4, 8, 10, 15, 16, 18, and 20. Then use the node instead of the row element. Since this paper treats decision makers as nodes, , , , , , , , , , , are a group, and , , , , , , , , are a group.

03

知识补充

find

k=find(X)返回一个包含数组X中每个非零元素的线性索引的向量。如果X为向量,则find返回方向与X相同的向量。如果X为多维数组,则find返回由结果的线性索引组成的列向量。

k=find(X) returns a vector containing the linear index of each non-zero element in the array X. If X is a vector, find returns a vector in the same direction as X. If X is a multidimensional array, find returns a column vector consisting of a linear index of the result.

k=find(X,n)返回与X中的非零元素对应的前n个索引。

k=find(X,n) returns the top n indexes corresponding to non-zero elements in X.

k=find(X,n,direction)(其中 direction 为 'last')查找与X中的非零元素对应的最后n个索引。direction的默认值为 'first',即查找与非零元素对应的前n个索引。

The last n index corresponding to the non-zero element in X. The default value of direction is 'first', which is to find the top n indexes corresponding to non-zero elements.

[row,col]=find(___)使用前面语法中的任何输入参数返回数组X中每个非零元素的行和列下标。

[row,col]=find(___) returns the row and column subscripts for each nonzero element in the array X using any input arguments from the preceding syntax.

[row,col,v]=find(___)还返回包含X的非零元素的向量v。

[row,col,v]=find(___) also returns a vector v containing non-zero elements of X.

今天的分享就到这里了。

如果您对今天的文章有独特的想法,

欢迎给我们留言,

让我们相约明天。

祝您今天过得开心快乐!

That's it for today's sharing.

If you have a unique idea about today’s article,

welcome to leave us a message,

let us meet tomorrow.

I wish you a nice day today!

参考资料:Bing Microsoft Translator、百度、CSDN

参考文献:

[1]王伟明, 徐海燕, 朱建军. 复杂网络视角下的大规模群体DEMATEL决策方法 [J]. 系统工程理论与实践, 2021, 41(1): 200-212.

本文由LearningYard学苑原创,如有侵权请在后台留言!

文字|Zheng

排版|Zheng

审核|任务达人

发表评论:

控制面板
您好,欢迎到访网站!
  查看权限
网站分类
最新留言