sharedCodeupdate
Add new shared code source files to existing shared code folder
Syntax
Description
sharedCodeupdate(
copies, for example, shared utility files fromsourceFolder
,destinationFolder
)sourceFolder
到子文件夹中destinationFolder
前提是文件中不存在destinationFolder
。The function:
Identifies files in both folders that have identical names but different content. The function does not overwrite these files in
destinationFolder
。在命令窗口中,您会看到一个compare
link for each file. To examine differences by using the Comparison tool, click the link.Lists
sourceFolder
files that the function intends to copy and seeks confirmation. When you provide confirmation, the function copies the files todestinationFolder
。By default, the destination of the copied files is a subfolder that corresponds to the release in which the files were created, for example,R2015a
或者R2015b
。
sharedCodeupdate(
copies files to the subfolder that you specify.sourceFolder
,destinationFolder
, 'ExistingCodeSubfolder',destinationSubfolder
)
sharedCodeupdate(
copies shared code source files from the shared code location associated withBuildFolder
,destinationFolder
)BuildFolder
。
sharedCodeupdate(
copies shared code source files to the folder specified by theBuildFolder
,configurationSetOrModel
)'ExistingSharedCode'
parameter of a Simulink®configuration set or model.
sharedCodeupdate(
将保护模型的共享实用程序复制到共享代码文件夹。protectedModel
,destinationFolder
)