Starting model simulation from word file or poer point file.

I would like to know the mechanism of starting simulation of a model from an external word or power point file?? In addition, how can I represent a real time graphs on these files (power point files)? Simply; I need to control the model from the office file.
Thanks in advance for your help.

1 Comment

I am curious: why do you want to run simulations from PowerPoint? Are you setting up a demonstration or giving a presentation?

Sign in to comment.

Answers (1)

You can invoke MATLAB as a COM Server from most Windows applications, but I'm not sure if Microsoft Word/PowerPoint can act as a COM client. In general, MATLAB provides several External Interfaces, so if Word/PowerPoint can work with one of these interfaces, you can use it. You can run a model simulation using the SIM command in MATLAB, and obtain the output signal values at the end of the simulation. You can then import this data into the interfacing application and generate plots/reports accordingly.
However, generating "real-time" plots, or plots that update as the simulation runs is I think a more advanced maneuver. You could write an S-function block that acts as a sink in your model, and have that talk to something in Word/PowerPoint when it is called at every time-step by Simulink. You need to have an automation script in Word/PowerPoint which will then update the plot based on the data obtained from the S-function.

Categories

Products

Asked:

on 4 Apr 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!