首页 > 编程知识 正文

静态变量是局部变量吗,局部直方图均衡化matlab

时间:2023-05-06 19:02:05 阅读:111824 作者:4574

定义永久变量/局部静态变量(看意义翻译,原意应该是持续的、持续的)。

Syntax语法

持续x y z

说明,说明

definesX,y,andZas variables that are

localtothefunctioninwhichtheyaredeclared; yet their values

areretainedinmemorybetweencallstothefunction.persistent

variablesaresimilartoglobalvariablesbecausethematlab

softwarecreatespermanentstorageforboth.theydifferfrom

globalvariablesinthatpersistentvariablesareknownonlytothe

functioninwhichtheyaredeclared.thispreventspersistent

variablesfrombeingchangedbyotherfunctionsorfromthematlab

命令行

永久变址存储器

memoryorwhenthem-fileischanged.tokeepanm-file in memory

until矩阵队列,use mlock。

ifthepersistentvariabledoesnotexistthefirsttimeyouissue

thepersistentstatement,it

is初始化至the empty matrix。

itisanerrortodeclareavariablepersistentifavariablewith

thesamenameexistsinthecurrentworkspace.matlabalsoerrors

ifyoudeclareanyofafunction ' sinputoroutputargumentsas

persistentwithinthatsamefunction.for example,the following

永久

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。