bdeSetContext

Takes diagram and context and sets the context for the diagram. This is the definitions for the variables within the diagram.

Syntax

bdeSetContext(diagram, context)

Inputs

diagram
Diagram to set context of.
Type: diagram
context
Context to set the context of the diagram to.
Type: string

Examples

Set context of model:
context = 'A=[-0.3,3,1;0,0,2;0,0,0];
        B=[1;2;3];
        C=[1,1,2;0,2,3];
        D=0;
        x0=[-2;1;2];'
        diagram = bdeGetCurrentDiagram();
        bdeSetContext(diagram, context)