玖叶教程网

前端编程开发入门

周一分享(一百零一):Matlab精读复刻论文之代码复刻12

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 how to generate an array of cells with all zero matrices from three sections: mind map, intensive reading content, and knowledge supplementation.

01

思维导图

02

精读内容

上周,我们用一串代码生成去掉节点-的元胞数组,再将生成的元胞数组放入一个1*20的元胞数组中。

Last week, we use a string of code to generate a cell array without nodes -, and then put the generated cell array into a 1*20 cell array.

本周继续下一步操作,由之前的加权网络凝聚度的代码可知,下一步是生成19*19的零矩阵。为了计算-的加权网络凝聚度。应当生成19个新的19*19的零矩阵,再放入元胞数组中。为了后面验证结果,也考虑的加权网络凝聚度,生成20个新的19*19的零矩阵,再放入元胞数组中。

Continuing with the next step this week, as can be seen from the code of the weighted network cohesion of the previous , the next step is to generate a 19*19 zero matrix. To calculate the weighted network cohesion of -. Nineteen new 19*19 zero matrices should be generated and placed in the cell array. In order to verify the results later, the weighted network cohesion of is also considered, and 20 new 19*19 zero matrices are generated, which are then put into the cell array.

代码如下图所示:

The code is shown in the following figure:

结果如下图所示:

The result is shown in the following figure:

结果生成了1*20的元胞数组,每一个位置储存了19*19的零矩阵。

As a result, a 1*20 cell array is generated, and a 19*19 zero matrix is stored at each position.

03

知识补充

A=zeros:返回标量0。

A=zeros: Returns scalar 0.

A=zeros(n):生成n乘n的全零矩阵。

A=zeros(n): Generates an all-zero matrix of n times n.

A=zeros(m,n)或者A=zeros([m,n]):生成m乘n的全零矩阵。

A=zeros(m,n) or A=zeros([m,n]): Generates an all-zero matrix of m by n.

A=zeros(size(B)):生成与B类型一样的矩阵。

A=zeros(size(B)): Generates a matrix of type B.

今天的分享就到这里了。

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

欢迎给我们留言,

让我们相约明天。

祝您今天过得开心快乐!

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

审核|任务达人

发表评论:

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