Published


Explaining Model-Based Design to your Mom
Today, we had a short conversation at the start of a meeting. It went something like this: Guy: Yesterday I opened the...

15 years ago

Thumbnail

Answered
Speed comparison S-Function - Simulink blocks
MATLAB-file s-functions are interpreted by the MATLAB engine. Core blocks are compiled. As said on wikipedia: "The main di...

15 years ago | 6

| accepted

Answered
Initial state vector "X0" must be a real vector of length 103.
You modified a Discrete Filter, this block has states and you very likely changed the number of states. I recommend running the ...

15 years ago | 0

| accepted

Answered
Please help me im getting crazy!
Please do not get crazy! To investigate on your own, I would look at this solution: http://www.mathworks.com/support/solut...

15 years ago | 0

Published


Variable-size signals and Unit Delay
I received requests recently about variable-size signals and the Unit Delay block. One question, many answers What...

15 years ago

Thumbnail

Answered
Dynamic Transfer Function in simulink
I recommend this solution "How do I model a transfer function with coefficients that vary with simulation time in Simulink 7.5 (...

15 years ago | 5

| accepted

Answered
Importing data into Simulink from a file or the Matlab workspace
I recommend going through this documentation section: http://www.mathworks.com/help/toolbox/physmod/simscape/ref/controlledvo...

15 years ago | 0

Answered
Piezo actuator setup generating SimElectronics error "Failed to solve using iteration matrix. Initial conditions solve failed to converge."
The main problem is that you are using a Sensor instead of an actuator. To apply a voltage to the Piezo, I recommend using a Vol...

15 years ago | 0

| accepted

Answered
Input different DC voltage at different time Simulink
If you are using SimPowerSystems, what you need is the Controlled Voltage Source, then you feed a signals as described by Nirmal...

15 years ago | 1

Answered
'PID Controller' in library 'simulink_need_slupdate', error while trying to run old Simulink Code
It looks like your model has been made in an old release (before ~R2009), then open and saved in a recent release. But now you a...

15 years ago | 1

| accepted

Answered
Turn Off Simulink Warning for Transport Delay Time Shorter than Fixed Time Step
I would recommend to reconsider your design and not use a delay smaller than the time step. There is a reason why this warning i...

15 years ago | 0

Answered
Dynamically changing sample time for discrete time integrator
Set the sample time of the discrete time integrator to be inherited and place it inside a triggered subsystem. You will need to ...

15 years ago | 0

| accepted

Answered
Trouble with linearizing SHO system/empty Bode plots
The following documentation page explains how to linearize a SimMechanics http://www.mathworks.com/help/toolbox/physmod/mech/...

15 years ago | 0

| accepted

Answered
Switching sinusoidal signals at the same ampltude and in the same half wave
Doing exactly what you describe can be pretty complex. If you are constructing the signals in the model using basic blocks, it m...

15 years ago | 0

Published


Importing variable-step signals into Simulink
This week I received the following question from a Simulink user: I have a data acquisition system which saves signals at...

15 years ago

Thumbnail

Published


Data Store Enhancement: Accessing Specific Bus and Array Elements
In Simulink R2011a, Data Store blocks have been improved to support bus signals and more. To give you a quick idea, these...

15 years ago

Thumbnail

Answered
Simulink Object tracking
If you care only about the kinematics of 2 points in space, I agre that there is no need for SimMechanics and Simulink or MATLAB...

15 years ago | 0

| accepted

Answered
Problem in Signal Builder
Import from file is a feature introduced in R2010b. If you have an older release, you need to upgrade

15 years ago | 0

Answered
How to iterate through a bus object intil I have a struct of primitives which match RTW output with a script
I am not sure what you mean by "drill down into the buses". Probably the one of the "Simulink.Bus.xxx" functions can be usefu...

15 years ago | 0

Answered
How do I get the minor time in a MATLAB s-function?
I recommend looking at this submission: http://www.mathworks.com/matlabcentral/fileexchange/22695-minor-time-step-logging ...

15 years ago | 0

Answered
Error in Physical Conserving port p
The reason is that the Physical Conserving ports are not connected to any other physical blocks. The resolve the issue, you ...

15 years ago | 1

Answered
Drift in simMechanics forward dynamics solver
Based on the description, it seems like your model contains a closed loop (something like ground-Joint-Body-Joint-Ground). If t...

15 years ago | 0

Published


Making things easier
With every release, we add new capabilities to improve the usability of Simulink. In R2011a, there is a good list of...

15 years ago

Thumbnail

Published


Asynchronous Function-Call Inputs to Models
In Simulink R2011a, it is possible to pass asynchronous function-call signals through Inports of a model. This enables the...

15 years ago

Thumbnail

Answered
Buses as inputs/outputs in C MEX S-Functions
Yes it is possible. What I recommend is to use the S-Function builder as a starting point. Use the S-Function Builder to gene...

15 years ago | 0

Answered
How to get the remainder of a division in Simulink?
Use the "rem" option of the Math Function block: http://www.mathworks.com/help/toolbox/simulink/slref/mathfunction.html @ Paul...

15 years ago | 3

| accepted

Answered
Hyperlink to a pdf file within a Simulink model
Simulink Verification and Validation provides this exact functionality. Here is the product page: http://www.mathworks.com...

15 years ago | 1

| accepted

Published


Blog Image Processing with Simulink
Seth: A change is coming. As you may have noticed, the title of this blog is no longer a perfectly accurate description of...

15 years ago

Thumbnail

Answered
I keep getting this error "There is no 'EditingMode' property in the 'SimscapeCC' class."
I never saw that one. I recommend contacting technical support

15 years ago | 0

Published


Introducing the System Toolboxes
This week I am teaming up with my colleague Ken Karnofsky to introduce another big change in MATLAB R2011a. Guy: So Ken,...

15 years ago

Thumbnail

Load more