Answered
Using if function block in MATLAB Simulink
You should use a Merge block with the outputs of the "if" and "else" subsystems, and then look at the signal coming out of that ...

11 years ago | 0

Answered
Changing Field of View or Perspective in Simmechanics Simulation
Rob, Right now you can't really make the SimMechanics animation perspective "follow" an object. Simulink 3D Animation does le...

11 years ago | 0

Answered
Creating a position sensor for hydraulic actuator
I'm assuming you have a cylinder block somewhere in there, right? You can connect an <http://www.mathworks.com/help/physmod/sims...

11 years ago | 0

Answered
can Matlab be used to make simulation of tasks on an assembly line?
I saw that you already did CAD Import on the robot arm model itself. The only missing part would be the extra loads. You coul...

11 years ago | 0

Answered
Function block in simulink
Hi Mikkel, I think the best bet would be to place that MATLAB Function block in a <http://www.mathworks.com/help/simulink/lib...

11 years ago | 0

Answered
ways to build in sensor and system uncertainty
Yes, you can do this relatively easily. On the MATLAB side, you can always create a vector of normally distributed values wit...

11 years ago | 0

Answered
import LV5250SDK to the matlab 2014a to controlling the movming of the robotic arm
Have you looked into <http://www.mathworks.com/help/matlab/matlab_external/calling-functions-in-shared-libraries.html this page>...

11 years ago | 0

| accepted

Answered
How to obtain Transfer Function from Scope Data?
The |idfrd| function is a start, as that will package up your collected data into an "experiment" of frequency vs. complex respo...

11 years ago | 0

| accepted

Answered
How to make real-time simulation in simMechanics?
To go to real-time simulations, you have to do a couple things. 1. Change your model to use a fixed-step solver and your Sims...

11 years ago | 0

Answered
Dependency report for a mixed code of Matlab and Simuilink model
You can generate Model Manifests from <http://www.mathworks.com/help/simulink/ug/model-dependencies.html Simulink models>, which...

11 years ago | 0

Answered
Externally Fired Gas Turbine
Do you have access to Simscape as well? If so, keep reading: The closest I can think of is the <http://www.mathworks.com/matl...

11 years ago | 0

Answered
SimPowerSystems: 2nd vs 3rd Generation in terms of speed
Depends on your model. If you aren't using any power electronics blocks (inverters, transistors, etc.) and your frequencies a...

11 years ago | 1

| accepted

Answered
Unexpected velocity component in aerospace block set 6dof euler equations
First 2 things I would try out: # Does that initial body rotation rate element of 1 affect the results at all? That is, if yo...

11 years ago | 0

Answered
Plot sin or cosine with Simulink scope
Javier, By default, if no other blocks drive it, Simulink will choose a sample time of 1/50 the total time -- so, in your cas...

11 years ago | 1

Answered
How to open Simscape results explorer?
Which version are you using? If it's R2014b or later, this results explorer is built into Simscape, although the underscore isn'...

11 years ago | 0

| accepted

Answered
Simulink report generator: how generate a report with hierarchy identical to simulink model?
I just tried this out on a similar model. Looks like your best bet is to use a "System Loop" report component with the "Sort ...

11 years ago | 0

Answered
PID controlled reflow oven Simulink
Hi Kdog, After typing the answers below, I realize that my suggestions for doing all this involve quite a few separate produc...

11 years ago | 0

Answered
Three Phase dynamic load
It could very well be numerical noise. I noticed you are still using the ode45 solver, which is the default for Simulink. If ...

11 years ago | 0

Answered
SIMULINK How to connect gas charge accumulator to a pump/motor?
SimHydraulics comes with blocks for all of those already: Pumps, gas-charged accumulator, tanks, valves, etc. A typical diagram ...

11 years ago | 0

| accepted

Answered
Share data between multiple Simulink models? (Global simulink signals)
Simulink does have this capability... either using global variables in a MATLAB Function block or using Data Store Read/Write bl...

11 years ago | 1

Answered
creating a structure from a bus object in matlab
You can convert buses to structures using this function: http://www.mathworks.com/help/simulink/slref/simulink.bus.creatematl...

11 years ago | 0

| accepted

Answered
How do I make sure Simulink Constants are coded as #define?
You mean like this? http://www.mathworks.com/help/releases/R2015a/ecoder/ug/macro-definitions-define.html - Sebastian

11 years ago | 0

| accepted

Answered
Simulink : How can I update the data from Workspace while the simulation is running?
Simulink only writes data to the workspace when a simulation is completed or stopped. You could use a <http://www.mathworks.c...

11 years ago | 0

Answered
Use of Translational Hardstop with Multi Body
My guess is the extra weight of the new object (which is much bigger) makes it such that the hard stop spring and damper can't p...

11 years ago | 0

Answered
Need help creating shapes in SimMechanics
It doesn't seem like your screenshot went through. Anyways, I will try answer: 1. For the round tube, you should create a cir...

11 years ago | 0

| accepted

Answered
Modelling gas particles; "Attempted to access x(11); index out of bounds because numel(x)=10."
I have two thoughts here. 1. You have an out-of-bounds indexing error because you're saying that |x(i) = x(i)+velocityx*dt;| ...

11 years ago | 0

Answered
Water Boiling Modeling by Simscape
There is this model for two-phase fluids (liquid + gas), though the application is different. http://www.mathworks.com/matlab...

11 years ago | 0

Answered
Is there a tool which produces a graphical (or textual) representation of the data dependencies of a model?
There are two tools I can think of, both of which are included with a standard Simulink license. 1. <http://www.mathworks.com...

11 years ago | 0

Answered
How can I display the axes on a video?
The default syntax for <http://www.mathworks.com/help/matlab/ref/getframe.html getframe> (without any input arguments) uses the ...

11 years ago | 1

| accepted

Answered
Without optimization toolbox can we able to use Global Optimization toolbox in Matlab???
Unfortunately, no. Global Optimization Toolbox requires both MATLAB and Optimization Toolbox. http://www.mathworks.com/produc...

11 years ago | 0

Load more