Answered
Method for determining height and width of a Simulink annotation
Hi Douglas, In Simulink, annotations are classified by <http://www.mathworks.com/help/simulink/slref/simulink.annotation.html...

mer än 10 år ago | 0

Answered
SimHydraulics modeling beginner question
Hi Vanja, The SimHydraulics toolbox has a specific set of blocks that are designed to model pipelines with pressure different...

mer än 10 år ago | 0

Answered
When do I need point operator when using power function?
The '.' syntax is used to denote <http://www.mathworks.com/help/matlab/ref/times.html element-wise multiplication>. What this me...

mer än 10 år ago | 4

| accepted

Answered
Is it possible to generate a variable number of Simulink blocks?
Hi Shawn, Simulink is equipped with command line functionality for model creation. After experimenting with it a bit, you sho...

mer än 10 år ago | 1

Answered
mkfilter 2nd order Bessel bug?
Hi, This does look to be a possible bug in MKFILTER. Fortunately, the code for MKFILTER is accessible. If you got to lines 60...

mer än 10 år ago | 0

Answered
Lookup table as an input
Hi Alain, Unfortunately, the parameters within most of the Simscape blocks and all of the SimHydraulic blocks are not tunable...

mer än 10 år ago | 0

| accepted

Answered
mex cc files in ubuntu system
Hi Zhang, Regarding the "I can't find file 'cascade'." error, the filename is 'cascade.cc' not 'cascade'. Try adding '.cc' ex...

mer än 10 år ago | 0

Answered
How to use curve fitting to get transfer function in frequency domain?
Hi Siyu, Rather than go through the Curve Fitting toolbox, I recommend one of two other avenues. # Go directly to a linear...

mer än 10 år ago | 0

Answered
Stateflow fails to compile after calling Simulink from a Matlab script
Hi Stefan, This is just a guess at this point but it could be possible that your path names are too long. The Windows maximum...

mer än 10 år ago | 0

| accepted

Answered
Standalone GUI from Simulink MDL
Hi Andreas, Unfortunately, It is not possible to do this without the use of Embedded Coder. Here is an example of how one wou...

mer än 10 år ago | 0

Answered
How can i use a 2-D lookup table as feedback for a Matlab Function Block?
Hi Lorenzo, Based on your explanation, it does not seem as though the two outputs of the MATLAB function block (Pratio and Ws...

mer än 10 år ago | 0

Answered
Purpose or effect of "Use last table value for inputs at or above last breakpoint"?
The two options produce the same results. The only difference being how the results are being computed internally. Some users pr...

mer än 10 år ago | 1

| accepted

Answered
Accurately Insert a Block in Simulink Model based on Mouse Position.
The system has parameters named 'ModelBrowserVisibility' and 'ModelBrowserWidth'. I would suggest checking if the visibility is ...

mer än 10 år ago | 1

| accepted

Answered
how to run a MATLAB model through GUI
Hi Milan, If you save a model with the scopes open and then close the model, then the next time that you open that model, the...

mer än 10 år ago | 0

Answered
In an assignment A(I) = B, the number of elements in B and I must be the same. this is the error i am getting
Hi Trilochan, MATLAB is a powerful resource for matrix indexing operations. Rather than loop through and assign each element ...

mer än 10 år ago | 1

Answered
Is is possible to access the simulink block names in C-S-function.
Hi Priyanka, The <http://www.mathworks.com/help/simulink/sfg/ssgetpath.html ssGetPath> macro will allow you to get the full p...

mer än 10 år ago | 0

| accepted

Answered
How do i solve the following simulation error??
Hi Paranshu, It is hard to say based on the information that is provided but it may be due to several reasons. Internally, th...

mer än 10 år ago | 0

| accepted

Answered
Is there support in Matlab 2012b and up for using Bus objects in a level-2 M S-function??
Hi Erwin, Currently, there is no way to pass bus objects with varying data types into a level-2 MATLAB S-Function. I would su...

mer än 10 år ago | 0

Answered
How to use linprog in Simulink?
Hi Avinash, Currently, both LINPROG and FMINCON are not supported for code generation. What is going on is that all of the co...

mer än 10 år ago | 2

Answered
i cannot understand this problem
Hi Sherif, Regarding your error message: Unexpected or invalid block connection. This can arise when a library block cha...

mer än 10 år ago | 0

| accepted

Answered
Multiport switch with code
Hi Muneer, Thanks to advances in the MATLAB execution engine, for loops such as the one above are really quite efficient. How...

mer än 10 år ago | 2

| accepted

Answered
How to get Port Data Type inside a Masked Block
Hi Timothy, Unfortunately, the 'CompiledPortDataTypes' parameter is the only parameter that will give you the data types at e...

mer än 10 år ago | 1