Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - 日本語 - Русский

Please note that the recommended version of Scilab is 6.1.1. This page might be outdated.
However, this page did not exist in the previous stable version.

Ajuda do Scilab >> Xcos > batch_functions > xcosValidateCompareBlock


Function to compare two Xcos Blocks.


[status, message] = xcosValidateCompareBlock(block1, block2)


block1: A Xcos block.
block2: A Xcos block.


This function is used to compare two Blocks.

Function will go through each block field and compare the two values. The function returns true if the two blocks are equal, false otherwise. message will contain some information about non-homogeneous fields.

File content

  • SCI/modules/xcos/macros/xcosValidateCompareBlock.sci


block1 = CONST_m("define");
block2 = CONST_m("define");
[status, message] = xcosValidateCompareBlock(block1,block2)

block2.model.rpar = 42;
[status, message] = xcosValidateCompareBlock(block1,block2)

See also


5.4.0 Function xcosValidateCompareBlock introduced.
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Feb 12 19:58:38 CET 2018