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

11 years 前 | 0

已回答
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...

11 years 前 | 4

| 已接受

已回答
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...

11 years 前 | 1

已回答
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...

11 years 前 | 0

已回答
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...

11 years 前 | 0

| 已接受

已回答
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...

11 years 前 | 0

已回答
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...

11 years 前 | 0

已回答
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...

11 years 前 | 0

| 已接受

已回答
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...

11 years 前 | 0

已回答
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...

11 years 前 | 0

已回答
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...

11 years 前 | 1

| 已接受

已回答
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 ...

11 years 前 | 1

| 已接受

已回答
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...

11 years 前 | 0

已回答
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 ...

11 years 前 | 1

已回答
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...

11 years 前 | 0

| 已接受

已回答
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...

11 years 前 | 0

| 已接受

已回答
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...

11 years 前 | 0

已回答
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...

11 years 前 | 2

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

11 years 前 | 0

| 已接受

已回答
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...

11 years 前 | 2

| 已接受

已回答
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...

11 years 前 | 1