该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

函数全部如下:

function [Graph,varargout] = GraphLoad(FileName,IndexFileName,SkipSqueeze,varargin)

% Loads a graph from file

%

% Receives:

% FileName - string - the file to load

% Nx2 of integers - the actual links

% IndexFileName - string - (optional) the name of the file which holds the index, The index file must

% comply with the following format: 2 columns. For each node it's name (string)

% and index are provided. Default: [].

% - structure - The structure containing the index

% .IndexNames - vector of integers - lists node indeces

% .IndexValues- cell str - lists appropreate names

% - cell 2x1 or 1x2 - Cell containing the index, where the first cell is indeces, while the second - their names

% SkipSqueeze - boolean - (optional) If true (~=0), the mexGraphSqueeze function is not called after the graph is loaded. Default: 0

% varargin - FLEX IO - The input is in FlexIO format. The following parameters are allowed:

% Parameter Name | Type | Optional | Default Value | Description

% IndexFileImportHandle | function pointer| Yes | @(IndexFileName)textread(IndexFileName,'%s %d'); | Defines how the index file is read.

%

% Returns:

% Graph - Graph Struct - the loaded graph

%LUT -Nx2 of integers-(optional) Look up table of the size Nx2 (N - number of nodes in the graph) with the

% order in which the node's numbering was changed. Can be used for corresponding ordering

% of other node parameters. See 'mexGraphSqueeze'

%

narginchk(1,inf);

nargoutchk(0,2);

if ~FIOProcessInputParameters(varargin,GetDefaultInput)

error('The function input is not FlexIO compatible');

end

if ~exist('IndexFileName','var')

IndexFileName = '';

end

if ~exist('SkipSqueeze','var')

SkipSqueeze = 0;

end

IndexNames = [];

IndexValues = [];

if ischar(FileName)

LinksData = load(FileName,'-ascii');

Graph.FileName = FileName;

else

LinksData = FileName;

FileName = '';

end

if ischar(IndexFileName) && exist(IndexFileName,'file')

try

[IndexValues IndexNames] = textread(IndexFileName,'%d %s');

%[IndexNames IndexValues] = IndexFileImportHandle(IndexFileName);

catch

end

elseif isstruct(IndexFileName)

IndexNames = IndexFileName.IndexNames;

IndexValues = IndexFileName.IndexValues;

elseif iscell(IndexFileName) && numel(IndexFileName)==2

IndexNames = IndexFileName{1};

IndexValues = IndexFileName{2};

end

if nargout < 2

Graph = ObjectCreateGraph(LinksData,mfilename,'IndexNames',IndexNames,'IndexValues',IndexValues,'SkipSqueeze',SkipSqueeze);

else

[Graph varargout{1}]= ObjectCreateGraph(LinksData,mfilename,'IndexNames',IndexNames,'IndexValues',IndexValues,'SkipSqueeze',SkipSqueeze);

end

Graph.FileName = '';

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

function DefaultInput = GetDefaultInput

DefaultInput = {};

DefaultInput = FIOAddParameter(DefaultInput,'IndexFileImportHandle',@(IndexFileName)textread(IndexFileName,'%s %d'));

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

matlab函数算错,函数是这个样子的,我是不懂应该怎么输入,试了好多种情况都是错...相关推荐

  1. 考勤管理系统(节点,主函数,管理员函数)

    sta* newnode(sta* p) //构建员工节点函数 { p=(sta*)malloc(sizeof(sta)); //动态内存申请 p->next=NULL; //初始化为空 ret ...

  2. MATLAB运行提示未定义函数或者变量,MATLAB出现未定义函数或变量

    MATLAB 二元二次函数出图 老是出现错误, xy的个数不同不能计算z值,改为[x,y]=meshgrid(72.00:80.00,65.00:90.00);z=x*pi.*y.*y./100000 ...

  3. matlab里.,在MATLAB中如何定义函数

    MATLAB是本人经常使用的程序,编程过程中经常会有部分代码重复出现,为了简化代码许多时候希望将实现特定功能的特定的代码(算法)书写成函数的形式,提高代码的可封装性与重复性,简化代码设计,提高执行效率 ...

  4. matlab拟合未定义函数或变量,关于matlab的未定义函数或变量的问题

    1.首先需要知道matlab中查看数据类型函数是class,可以先在命令行窗口中help class.2.在命令行窗口中输入"a=123 class(a)".3.按回车键可以看到变 ...

  5. matlab私有函数,MATLAB 嵌套函数,子函数,私有函数,重载函数

    MATLAB函数嵌套 MATLAB中M文件有两种类型,脚本M文件和函数M文件.脚本M文件是将可执行程序语句放入M文件中,就像在命令窗口那样,按其语句顺序及逻辑关系执行,可以理解为一般的顺序执行程序语句 ...

  6. MTM:matlab实现5主函数解码

    前言 之前讲了MTM(多锥形窗谱估计)的相关原理,现在来分析一下它的matlab实现. 想要复习的可以参考一下之前的文件: 现代谱估计:多窗口谱 想要复习一下如何实现的可以参考: MTM:matlab ...

  7. matlab匿名函数求导,Matlab中的匿名函数的使用

    转载自:http://blog.sina.com.cn/s/blog_71fb42f70100uyfx.html#commonComment 1.匿名函数的基本用法. handle = @(argli ...

  8. matlab求固有频率,eig()函数求固有频率和有限元软件求固有频率结果不相等

    本帖最后由 爱模型啊 于 2017-12-26 16:54 编辑 我现在在用Abaqus有限元软件做模态分析,已经求出了各阶的模态频率,也知道怎么输出系统的质量矩阵.系统的刚度矩阵. 在有限元软件中, ...

  9. matlab如何创建callback函数_如何学好MATLAB GUI

    差不多有一个月的时间没有写一些总结了,所以今天打算聊聊之前写的几篇文章. 8月可以说是我的GUI月,因为发的4篇文章,全是关于GUI的. 这可能就是我写文章的一个陋习,写起GUI就是连着好几篇,写爬虫 ...

最新文章

  1. 撩课-Web大前端每天5道面试题-Day39
  2. Centos7 Java8的安装
  3. ruby中的复制 dup clone
  4. 模块版网站与html网站,网站新闻模块代码html
  5. 大数据学习(06)-- 云数据库
  6. fedora 初始化系统_用Fedora数字化VHS
  7. c# webservice的简单示例
  8. 利用form的“accept-charset”在不同编码的页面间提交表单
  9. 【转】adb控台中Permission denied的解决方案
  10. java自行车火多重,多重继承的演变
  11. linux主机名包含点
  12. extjs2.0 ie8 下拉树_extjs2下拉树选项框comboxWithTree(支持异步加载子节点)
  13. nginx下apk下载,ie9的问题
  14. 音视频 即时通讯Linux源码
  15. dorado7时间格式调整
  16. unity3d实现水果机(随机)跑马灯效果
  17. MarkDown思维导图
  18. this指向问题(箭头函数)
  19. MOS管推挽电路设计及特性解析
  20. ​最适合女生的10个副业(上篇),只要你有执行力,实现财富自由很简单!

热门文章

  1. java字符流和字节流的区别_java字符流与字节流的区别是什么
  2. linux arm ffmpeg configure文件,ffmpeg库的交叉编译记录
  3. oracle gets/exec 单位,ORACLE AWR使用基础
  4. php 识别图片主色调,PHP 判断图片主色调的简单示例
  5. cordova 更改app版本_【ios马甲包cps联运】App上架难 马甲包不知道该怎么做?
  6. elinput内容过长显示悬浮框_excel中一直被忽视的名称框,用好了也能提高效率
  7. 常规计算机 符号键是,电脑键盘上的字母和符号都表示什么
  8. java 上传文件及预览_SpringBoot上传下载文件及在线预览
  9. 播放RTMP协议的流媒体的几种选择 1
  10. java 图像梯度检测_数字图像处理-边缘检测