VBA-toolbox

The VBA toolbox
授权协议 GPL-3.0 License
开发语言
所属分类 应用工具、 科研计算工具
软件类型 开源软件
地区 不详
投 递 者 松霖
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

VBA toolbox

Official website: https://mbb-team.github.io/VBA-toolbox/

What is the VBA toolbox?

Most models of neurobiological and behavioral data can be broken down into processes that evolve over time and static observation mappings. Given these evolution and observation mappings, the toolbox can be used to simulate data, perform statistical data analysis, optimize the experimental design, etc... In brief, the toolbox provides:

  • plug-and-play tools for classical statistical tests
  • a library of computational models of behavioral and neurobiological data time series
  • quick and efficient probabilistic inference techniques for parameter estimation and model comparison (+ experimental design optimization)
  • graphical visualization of results (+ advanced diagnostics of model inversion)

Requirements

This toolbox runs in Matlab. Although it should run in all versions of Matlab, the toolbox has only been extensively tested on Matlab 2013 and higher.

How do I install the toolbox?

Get the toolbox

  • Ideally, use Git to clone the repo of the toolbox on your computer:

    cd ~/path/to/parentDirectory
    git clone https://github.com/MBB-team/VBA-toolbox.git

    You will then be able to stay up to date with the latest versions using the command:

    cd ~/path/to/parentDirectory/VBA-toolbox
    git pull
  • If you don't want to install Git, you can alternatively download a zip of the latest stable release of the toolbox directly form the download page of the official website: http://mbb-team.github.io/VBA-toolbox/download.

Add the toolbox folder to your Matlab path:

cd ~/path/to/parentDirectory/VBA-toolbox
VBA_setup()

Note that you might have do run VBA_setup() after an update of the toolbox (eg. after a git pull).

Enjoy!

You can now try one of the demos or tutorials you can find in the VBA-toolbox/demos folder. If you have a recent version of Matlab (>= 2017), you can also run VBA_test() to check that everything works as intended on your system.

Structure of the toolbox

  • / contains all the functions you can use directly in your scripts to call general routines like model simulation and inversion.
  • /core contains the sub-functions that implement the internal algorithms of the toolbox, like the variational estimation scheme. You should not use those functions directly!
  • /demos contains a large selection of computational models (ie. evolution and observation functions) you can use directly or adapt to your hypothesis. You will also find in this folder a series of demos that implement those models and tutorials demonstrating the various features of the toolbox.
  • /legacy contains some old code that will soon disappear but we keep for backward compatibility.
  • /modules contains a set of tools that complement the toolbox, like DCM generators or advanced models and scripts used in publications.
  • /sandbox contains code in development that is not yet fully functional and / or tested. Feel free to test them, or wait a bit until they move to the core.
  • /tests contains unit testing functions. This code help us ensure that the toolbox does what we want it to do...
  • /third-party contains code we did write ourselves but is needed by the toolbox.
  • /utils contains plenty of cool tools that you can use directly if you need, like random number generators, mathematical measures (eg. KL divergence), or nifty numerical tricks.

Want more details?

Please visit the wiki pages for tutorials, demos, and advanced features descriptions.

You can also seek help on our dedicated forum. We will always be happy to help you with the toolbox if you need.

How can I participate?

The VBA-toolbox is an open-source, collaborative project.We gladly welcome contributions at all levels:

  • flag a bug or request a feature by creating a new issue on Github
  • provide your model to other users by integrating it directly in the toolbox. Send us an email, or directly create a pull request.
  • 在VBA中或者VB中用IGeoProcessor接口中的Execute方法可以调用arcgis中所有Toolbox工具。 GP.Execute的命令名称格式如下:“工具名称(toolbox中的名称)”+下划线+所在工具集的假名。如“MosaicToNewRaster_management” 下面例子中调用了MosaicToNewRaster工具--镶嵌栅格数据 Set GP = New GeoPr

  • ;;---------------------=={ Area Label }==---------------------;; ;; ;; ;; Allows the user to label picked areas or objects and ;; ;; either display the area in an ACAD Table (if available), ;; ;; opti

  • '模块中的代码 Option Explicit Public Const SHGFI_DISPLAYNAME = &H200 Public Const SHGFI_EXETYPE = &H2000 Public Const SHGFI_LARGEICON = &H0 Public Const SHGFI_SHELLICONSIZE = &H4 Public Const SHGFI_SMALLICO

  • 命令栏对象为CommandBar。 在office中命令栏包含有菜单栏、工具栏。 由于excel 2007版本开始,微软用ribbon代替了原来常用的菜单栏、工具栏。 所以很多菜单栏、工具栏都已经不存在了,但是有些还是有使用价值的,比如单元格右键菜单栏。 所有的菜单栏、工具栏集合在一起,构成了CommandBar集合对象。 如果要在vba中操作具体的命令栏,可以使用CommandBars ( in

  • 1、屏蔽“菜单”中的项: Application.CommandBars(1).Controls("文件(&F)").Enabled = False '屏蔽文件菜单 Application.CommandBars(1).Controls("编辑(&E)").Enabled = False '屏蔽编辑菜单 Application.CommandBars(1).Controls("视图(&V)").E

 相关资料
  • 主要内容:工作表事件,工作簿事件在VBA中,要手动更改单元格或单元格值范围时,可以触发事件驱动的编程。 更改事件可能会使事情变得更容易,但您可以非常快速地结束一个完整的格式化页面。VBA中有两种事件 - 工作表事件 工作簿事件 工作表事件 工作表事件在工作表中发生更改时被触发。 它是通过右键单击工作表选项卡并选择“查看代码”,然后粘贴代码来创建的。 用户可以选择这些工作表中的每一个,并从下拉列表中选择“工作表”以获取所有支持的工

  • 主要内容:数组声明,赋值给数组,多维数组,ReDim语句,数组方法我们都知道,一个变量是一个存储值的容器。 有时,开发人员希望一次可以在一个变量中保存多个值。 当一系列值存储在单个变量中时,则称为数组变量。 数组声明 数组声明的方式与声明变量相同,只是数组变量的声明使用括号。 在下面的例子中,括号里提到了数组的大小。参考以下示例 - 在上面代码中, 虽然数组大小被指定为,但是当数组索引从零开始时,它可以保持个值。 数组索引不能是负数。 VBScript数组可以在

  • 主要内容:循环控制语句当需要多次执行一段代码时,就可以使用循环语句。 一般来说,语句是按顺序执行的:函数中的第一个语句首先执行,然后是第二个,依此类推。 编程语言提供了各种控制结构,允许更复杂的执行路径。 循环语句允许多次执行语句或语句组。 以下是VBA中循环语句的一般形式。 VBA提供以下类型的循环来处理循环需求。点击以下链接查看详细信息。 编号 循环类型 描述 1 for循环 多次执行一系列语句,缩写管理循环变量的

  • 决策允许程序员控制脚本或其中一个部分的执行流程。执行由一个或多个条件语句控制。 以下是在大多数编程语言中找到的典型决策结构的一般形式。 VBA提供了以下类型的决策声明。 点击以下链接来查看它们的详细信息。 编号 语句 描述 1 if语句 一个语句由一个布尔表达式和一个或多个语句组成。 2 if…else语句 语句由一个布尔表达式和一个或多个语句组成。如果条件为,则执行语句下的语句。如果条件为,则执

  • 主要内容:语法,示例常量是一个命名的内存位置,用于保存脚本执行期间固定(无法更改)的值。如果用户试图更改常量值,则脚本执行结束时会出现错误。常量声明与声明变量相同。 以下是命名常量的规则 - 常量名称必须使用一个字母作为第一个字符。 常量名称不能在名称中使用空格,句点(),感叹号()或字符,,,。 常量名称的长度不能超过个字符。 不能使用Visual Basic保留关键字作为常量名称。 语法 在VBA中,需要为声明的

  • 主要内容:数据类型,示例变量是一个指定的内存位置,用于保存脚本执行过程中可以更改的值。以下是命名变量的基本规则。 变量名称必须使用一个字母作为第一个字符。 变量名称不能使用空格,句点(),感叹号()或字符,,,。 变量名称的长度不能超过个字符。 不能使用Visual Basic保留关键字作为变量名称。 语法 在VBA中,变量需要在使用它们之前声明。 数据类型 有许多VBA数据类型,可以分为两大类,即数字和非数字数据类型。