Answered
Attempted to access 0 element of data T. The valid index range is 1 to 1
Looks like a typo with all those parentheses... MATLAB thinks you're indexing into a variable named T -- for example, T(1). I...

11 years ago | 0

| accepted

Answered
Create a null bus from a bus definition
Hi Moritz, If you're using a nonvirtual bus (i.e. one whose data type is a |Simulink.Bus| object), you can use a Constant blo...

11 years ago | 2

| accepted

Answered
Script based coverage filter creation
Hi Jonatan, I found an example of this by searching around, but this doesn't seem to be documented. Hopefully this at least h...

11 years ago | 1

| accepted

Answered
Prevent update simulink diagram
As long as you're not making structural changes to the model or changing non-tunable parameters (i.e., changes that require the ...

11 years ago | 0

| accepted

Answered
How we can improve the performance of PID controller in simulink?
Do you have Simulink Control Design (SCD) installed? One of the things it provides is the <http://www.mathworks.com/discovery/pi...

11 years ago | 0

Answered
how do i execute a matlab script from simulink, not a function, just an mfile to plot a graph?
Arnold, You can create <http://www.mathworks.com/help/simulink/ug/model-callbacks.html Model Callbacks> to do this. The one y...

11 years ago | 1

| accepted

Answered
Is it possible to access referenced model arguments from InitFcn callback?
Owen, That was a tough one! I think I figured out a way to do it using masks instead of the InitFcn callback. What I did ...

11 years ago | 0

Answered
Simulate with varying parameter and getting a 3-D representation of it
If you open the model's configuration parameters, and go to the Data Import/Export pane, there is a set of options called <http:...

11 years ago | 0

Answered
Is it possible to run seperatly script in simulink, by double click on a subsystem
For any blocks (doesn't have to necessarily be Subsystems), you can register <http://www.mathworks.com/help/simulink/ug/block-ca...

11 years ago | 3

Answered
How to generate random binary numbers matrix with some decimal number constraint
You could use the |randi| function to generate a random integer in a range, and then perform scaling and offset to convert it to...

11 years ago | 0

| accepted

Answered
why current measurement block in simulink is not getting connected with components?
Where did you find that Current Measurement block? It's likely from the Simscape library, which doesn't connect directly to Simu...

11 years ago | 0

Answered
Support for MATLAB functions "medfilt2" and "adapthisteq" on Simulink
Hi Sanya For C/C++ code generation, the supported functions are listed <http://www.mathworks.com/help/simulink/ug/functions-s...

11 years ago | 1

| accepted

Answered
Cant create a variable capacitor in simulink
Hi Saurabh, What version of Simulink are you using? Starting with R2014a, the initial conditions specification changed in Sim...

11 years ago | 2

| accepted

Answered
Help needed on Train dynamics model
There is a simple Simulink-based example <http://ctms.engin.umich.edu/CTMS/index.php?example=Introduction&section=SimulinkContro...

11 years ago | 0

Answered
Communication between Java and Matlab Simulink Stateflow?
Hi Yi-Zong, First thing I would ask you to do is check whether you have Instrument Control Toolbox, as this provides built-in...

11 years ago | 0

Answered
How can I use the Cycloidal Drive block from Simscape in a SimMechanics model?
Hi Morgan, The Cycloidal Drive block is a SimDriveline block, which means it connects directly to other Simscape mechanical b...

11 years ago | 1

| accepted

Answered
Exporting a custom library in Simulink
Hi Tim, I take it that you're able to open up the previous user's library, right? If you don't have the exact filename of ...

11 years ago | 0

| accepted

Answered
How do I work with timeseries as input for my model?
Hi Joel, If you're using an <http://www.mathworks.com/help/simulink/slref/inport.html Inport> block to load the data, there's...

11 years ago | 0

Answered
Need help in converting this subsystem to model
Hi Saurabh, The physical connection ports (i.e. what you see in SimPowerSystems) are not yet supported for crossing nonvirtua...

11 years ago | 0

Answered
How to get matlab to open a file based on its file type?
Hi Daniel, The easiest thing off the top of my head is the FILEPARTS function, which works like this: [pathstr,name,ext]...

11 years ago | 0

Answered
Double Circuit Line Modelling
Hello, You only have to use a matrix if the line is asymmetric. The <http://www.mathworks.com/help/physmod/sps/powersys/re...

11 years ago | 0

| accepted

Answered
How do I call "frd" for discrete time?
Hi Mark, I think you may need to discretize the system *M_g* first using <http://www.mathworks.com/help/control/ref/c2d.html ...

11 years ago | 0

Answered
Running fcn.m file in a block on simulink
Yael, If you want this to just run within the MATLAB environment (i.e., you're not generating code from your model), you can ...

11 years ago | 0

| accepted

Answered
How can I export the state-space model of a simulink model?
If you want to convert a Simulink model to a set of state-space equations, you can linearize it using the Simulink Control Desig...

11 years ago | 0

| accepted

Answered
Could you please provide the phasor model of Wind Farm - Synchronous Generator & Full Converter (Type IV)
Venkatesh, Phasor mode would not work directly with this model, because power electronics are not supported for phasor simula...

11 years ago | 0

| accepted

Answered
Using Model Explorer with Model References
Are you using R2014a or later? In this version, Model Explorer gained the ability to search through referenced models. If you l...

11 years ago | 0

Answered
V&V in model based design
Hello Seongjoo, (Sorry if this does not fully answer your question, as I used Google Translate) Verifying your model can s...

11 years ago | 0

Answered
How to use 1D look-up table for NON-monotonously increasing functions?
Karthik, You could sort the vectors in MATLAB before you put them in the Lookup Table block. >> x = [1 2 5 3 4]; ...

11 years ago | 1

Answered
How to eval expressions in Simulink Data Dictionaries
Hello Klaus, MathWorks _is_ planning on adding this feature in a future release, but right now there isn't anything visible, ...

11 years ago | 0

Answered
How can I access the data from the LOAD FLOW Analysis tool in the Powergui from the MATLAB command (R2014a)?
Lilia, You can use the <http://www.mathworks.com/help/physmod/sps/powersys/ref/power_loadflow.html power_loadflow> command on...

11 years ago | 0

| accepted

Load more