Beantwortet
How can I specify publish and subscribe rate for ros topics using Simulink?
You can use an Enabled Subsystem which is controlled via the "IsNew" output of the subscriber block. Basically, the code inside ...

fast 11 Jahre vor | 1

| akzeptiert

Beantwortet
How can I retrieve the names of all the blocks in a sim-mechanics model?
*NOTE:* I am assuming SimMechanics second generation. For first generation, the same stuff below works, but the names are a bit ...

fast 11 Jahre vor | 0

| akzeptiert

Beantwortet
2014a OR 2014b OR 2015a Which version is better?
If you don't have any requirements on MATLAB versions (i.e. standardizing on version for collaboration), there's no reason why y...

fast 11 Jahre vor | 0

Beantwortet
Sequentially add figures to a word document using Report Generator
What I've done in my work is save the figure as an image and add it to my report. Furthermore, you can pick the title text from ...

fast 11 Jahre vor | 2

Beantwortet
Converting values to 0 and 1 and then counting occurrences!
Suppose your original data is named |x|. The following line will create a matrix the same size as your original, where the eleme...

fast 11 Jahre vor | 3

Beantwortet
How to write _ in a plot title?
Just put a backslash in front of it: |\_| - Sebastian

fast 11 Jahre vor | 9

| akzeptiert

Beantwortet
SimHydraulics capability modelling water hammer effects in deep water environment
You can model the Water Hammer effect by ensuring there are Fluid Inertia blocks in your model. The simplest way to do this is w...

fast 11 Jahre vor | 1

| akzeptiert

Beantwortet
Using Polyfit in Simulink
Did you try double-clicking the Display block and changing the Format options? The default is "short", which may not show the sm...

fast 11 Jahre vor | 0

Beantwortet
Significance of solver type "Tustin" or "Backward Euler" in Powergui
Tustin and Backward Euler are two different ways of discretizing a continuous-time system. So, when you change your solver type ...

fast 11 Jahre vor | 2

Beantwortet
How to get state vector from the State-space block in Simulink?
I don't believe there's a direct way to access the states unless you re-implement the state-space block yourself with matrix mul...

fast 11 Jahre vor | 5

| akzeptiert

Beantwortet
How can I set a block parameter dynamically during simulation? (e.g. with workspace variable)
What does that "height" variable reference? If it's inside SimMechanics blocks, then that value cannot be changed mid-simulation...

fast 11 Jahre vor | 0

| akzeptiert

Beantwortet
Calling a signal from matlab workspace to simulink
There are quite a few ways -- this page in the documentation describes them pretty well: http://www.mathworks.com/help/simuli...

fast 11 Jahre vor | 0

Beantwortet
how to connect PMSG wind turbine through step up transformer to 30 km transmission line?
You can look at SimPowerSystems examples like this one: http://www.mathworks.com/help/physmod/sps/examples/wind-farm-synchron...

fast 11 Jahre vor | 0

| akzeptiert

Beantwortet
How can I link a data dictionary to a Simulink block library?
That's a tricky one... I can think of one solution that could potentially work, but would require R2015a since this is where the...

fast 11 Jahre vor | 0

Beantwortet
How to Time Shift a waveform to left in simulink?
What is the waveform generated from? Some of the standard Source blocks let you control the phase which could left-shift your si...

fast 11 Jahre vor | 0

Beantwortet
Integrate Simulink + GUI: Attempt to reference field of non-structure array.
I would check a few things to narrow down the problem. First off, do you have access to the |ScopeData| variable inside that...

fast 11 Jahre vor | 0

Beantwortet
How can I change LineWidth of all lines in a printed figure from Simulink?
The documentation refers to |simplot| as being replaced with |Simulink.sdi.view|, which brings up the <http://www.mathworks.com/...

fast 11 Jahre vor | 1

Beantwortet
Writing equation in Simscape
Well, you have 4 total variables: |V| and |i| inherited from the branch, and your additional custom variables |q| and |w|. By...

fast 11 Jahre vor | 0

| akzeptiert

Beantwortet
color the specific simulink block
You can enter >> blockName = 'testModel/input1'; >> set_param(blockName,'BackgroundColor','green'); By the way, you c...

fast 11 Jahre vor | 0

| akzeptiert

Beantwortet
Equivalent ActiveX Code for xlsread
This link might help: http://www.mathworks.com/help/matlab/matlab_external/example-reading-excel-spreadsheet-data.html - S...

fast 11 Jahre vor | 0

Beantwortet
How to define and output signals in array form from stateflow chart ?
Given the syntax you are using, I'm assuming you are using the C action language. In that case, I see 2 syntax errors in that st...

fast 11 Jahre vor | 0

| akzeptiert

Beantwortet
what does Resolve link and break link do?
First off, here's the documentation resource: http://www.mathworks.com/help/simulink/ug/working-with-library-links.html When ...

fast 11 Jahre vor | 1

| akzeptiert

Beantwortet
What happens inside Simscape nodes
Simscape uses a generalized version of Kirchhoff's Circuit Laws. In the diagram you showed, those 3 nodes are actually the same ...

fast 11 Jahre vor | 1

| akzeptiert

Beantwortet
I would like to calculate the Energy for 3 days values.
Luckily, your Excel data is formatted ready for loading into Simulink. First, you can read the data into MATLAB using the |xl...

fast 11 Jahre vor | 0

Beantwortet
how to apply PID controller on dynamic system in state space form? example please
You can create a PID controller using the |pid| function: http://www.mathworks.com/help/control/ref/pid.html Then, you can...

fast 11 Jahre vor | 1

Beantwortet
How can i get a model argument from the modelworkspace into a matlab skript?
wksp = get_param(mdl,'ModelWorkspace') value = wksp.getVariable('K') ... where "mdl" is your model's name :) - Sebast...

fast 11 Jahre vor | 0

| akzeptiert

Beantwortet
Model with multiple data dictionaries
This is a safety mechanism in data dictionaries such that you can't accidentally modify one variable, but not the other. The bes...

fast 11 Jahre vor | 2

Beantwortet
Some Constant blocks not tunable in Simulink External Mode
Are those constant blocks using hard-coded numerical values or are they variables (either numeric or |Simulink.Parameter| object...

fast 11 Jahre vor | 0

Beantwortet
List of Files on a folder
To make a dialog box, you can use the |uigetdlg| function: dirName = inputdlg('Enter value here:') Then, whatever is ret...

fast 11 Jahre vor | 0

Beantwortet
How to simulate a SS model with parametric sampling time?
Assuming you have Control System Toolbox and you already made your matrices A, B, C, D, you can package them up into a state-spa...

fast 11 Jahre vor | 0

Mehr laden