zoukankan      html  css  js  c++  java
  • 遗传算法MATLAB实现(1):工具箱下载及安装

    到官网下载谢菲尔德大学的GA工具箱:http://codem.group.shef.ac.uk/index.php/ga-toolbox(其实蛮不懂为什么有人把这个传到某个网上还需要积分才能下载,人家开发者都是免费让下载的。。。)

    安装方法抄自:http://www.cnblogs.com/zhengnanlee/p/3439649.html,感谢原作者。

    安装方法

    将整个文件夹复制到matlab安装文件夹中的toolbox文件夹

    例如:C:Program FilesMATLABR2013b oolbox文件夹。

    然后在Command Window里面输入:

    str = ['C:Program FilesMATLABR2013b	oolboxgatbx']
    
    addpath(str)

    可能有些同学出现过这个问题,

    Undefined function or method 'crtbp' for input arguments of type 'double'

    或者是:

    Cannot find an exact (case-sensitive) match for 'crtbp.m' 
    The closest match is C:Program FilesMATLABR2012a oolboxgatbxCRTBP.M 
    To change the file extension, cd to the file's folder, type: 
       movefile CRTBP.M CRTBP.m_bad; movefile CRTBP.m_bad CRTBP.m 
    and then cd back.

    这是因为新旧Matlab版本对于M文件的文件名要求不尽相同,将其全部改为小写文件名和文件后缀名即可。

  • 相关阅读:
    构造和析构
    const修饰的成员函数
    class和struct权限
    封装加强
    函数重载实现原理
    Unity2019破解hub
    Lua模拟stack
    函数重载
    LeanTween
    占位参数和默认参数
  • 原文地址:https://www.cnblogs.com/zxhyxiao/p/9398038.html
Copyright © 2011-2022 走看看