par在matlab中,在Matlab下使用parfor实现多核并行计算

matfile Save and load parts of variables in MAT-files.

MATOBJ = matfile(FILENAME) constructs an object that can load or save

parts of variables in MAT-file FILENAME. MATLAB does not load any data

from the file into memory when creating the object. FILENAME can

include a full or partial path, otherwise matfile searches along the

MATLAB path. If the file does not exist, matfile creates the file on

the first assignment to a variable.

MATOBJ = matfile(FILENAME,’Writable’,ISWRITABLE) enables or disables

write access to the file. ISWRITABLE is logical TRUE (1) or FALSE (0).

By default, matfile opens existing files with read-only access, but

creates new MAT-files with write access.

Access variables in MAT-file FILENAME as properties of MATOBJ, with dot

notation similar to accessing fields of structs. The syntax for loading

part of variable VARNAME into variable SMALLERVAR is

SMALLERVAR = MATOBJ.VARNAME(INDICES)

Similarly, the syntax for saving NEWDATA into variable VARNAME is

MATOBJ.VARNAME(INDICES) = NEWDATA

Specify part of a variable by defining indices for every dimension.

Indices can be a single value, an equally spaced range of increasing

values, or a colon (:), such as:

MATOBJ.VARNAME(100:500, 200:600)

MATOBJ.VARNAME(:, 501:1000)

MATOBJ.VARNAME(1:2:1000, 80)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值