Answered
How can I invoke a Java window from an mdl file?
I would recommend first writing a MATLAB function to call into your Java function and get the selected file name. See <http://ww...

13 years ago | 0

Answered
Could the Simulink Design Verifier toolbox check the Targetlink(dSPACE) model ?
I don't know a whole lot about the Simulink Design Verifier, but after looking at the documentation, I found <www.mathworks.com/...

13 years ago | 2

| accepted

Answered
Collecting tweet from twitter using Matlab
You can use the <https://dev.twitter.com/docs/api Twitter REST API> to perform such queries. There is a MATLAB File Exchange sub...

13 years ago | 1

| accepted

Answered
embedded matlab function error
Walter is correct - sparse matrices are documented amongst the <www.mathworks.com/help/releases/R2012a/toolbox/eml/ug/bq37dee.ht...

13 years ago | 3

| accepted

Answered
pass structure from Matlab to mex
You can pass the structure on to your MEX-file as is, but the real question is how would you access the fields of the structure ...

13 years ago | 0

| accepted

Answered
Structure or array for S-function input, output and parameters?
I can't imagine there being a major difference in Simulink performance between #1 and #2 - they are equivalent to writing two C ...

13 years ago | 1

Answered
Importing matlab values into Simulink Stateflow
You should probably use one of the three <http://www.mathworks.com/help/toolbox/simulink/ug/bq3qblc-1.html#bq3t2zz MATLAB Functi...

13 years ago | 1

Answered
Carriage returns in MAAB Guideline
I think it means that the carriage return character (\r) is allowed as part of a block name. If you're not familiar with the phr...

13 years ago | 0

Answered
mclTerminateApplication() destroys rest of C-application
AFAIK, you should be able to run generic C code after mclTerminateApplication(). Have you tried setting a breakpoint in your cod...

13 years ago | 0

Answered
how to configure a variable in a simulink block which changes with the simulation results
You cannot change a parameter based on the output of another block. Please see <http://blogs.mathworks.com/seth/2011/03/08/how-d...

13 years ago | 0

| accepted

Answered
run a c++ function from matlab 2010b
How about creating a <http://www.mathworks.com/help/matlab/creating-c-c-and-fortran-programs-to-be-callable-from-matlab-mex-file...

13 years ago | 0

Answered
MEX Verification in MATLAB (R2008a)
You need to run "mex -setup" ("mbuild -setup" is for configuring the compiler to be used with MATLAB Compiler).

13 years ago | 0

| accepted

Answered
Is a third-party compiler needed to run a MATLAB Compiler standalone executable that uses loadlibrary function
Please see this previous discussion: http://www.mathworks.com/matlabcentral/answers/32007-using-mcc-to-compile-a-code-that-uses-...

13 years ago | 0

Answered
Error: Cannot propogate bus signal from output 1 to input 5
Have you set the bus object (in the workspace) as the input datatype for the corresponding port inside the referenced model?

13 years ago | 1

| accepted

Answered
Configure parameter of a simulink model as a variable name & pass it through a m file
You can create and save your model with the parameter value set to 'mode'. Now, you'll need to be sure that a variable called 'm...

13 years ago | 3

| accepted

Answered
when using libinfo on my system it does not return values for all the blocks...
Blocks from the Simulink 'built-in' library are the ones that do not have a 'ReferenceBlock' parameter. For such blocks, you may...

13 years ago | 0

Answered
Why does the Fixed Point Advisor show a Trigonometric function as unsupported when using CORDIC approximation?
What version of MATLAB are you using? Are you referring to the documentation installed with your version, or from the web? Fixed...

13 years ago | 0

Answered
How to access position information of line labels in Simulink
I don't think there is a way to get/set signal label positions currently. Please consider confirming this with MathWorks Technic...

13 years ago | 0

Answered
How to tell Simulink not to treat a subsystem as a sublibrary
According to <http://www.mathworks.com/support/solutions/en/data/1-31C704/index.html this solution> you need to mask it AND add ...

13 years ago | 0

| accepted

Answered
Embedded MATLAB function block in simulink is not working.
You might be missing the Windows SDK installation. Please see <http://www.mathworks.com/support/solutions/en/data/1-BYZCYZ/?solu...

13 years ago | 0

Answered
Is there a way to calculate jacobians of Simulink models?
I'm not entirely sure if this is what you're looking for, but it is possible to get the Solver Jacobian Pattern for a Simulink m...

13 years ago | 1

Answered
Can you use a Simulink model to set the values in a different model?
AFAIK, the only supported way currently to have two models run simultaneously and send/receive data from each other is to use bo...

13 years ago | 2

| accepted

Answered
why embedded matlab function failed to determine the size of expression
Strange. This works fine for me (I'm using R2011b). Perhaps you are using an older version of MATLAB? What about if you pre-allo...

13 years ago | 0

| accepted

Answered
Level 2 MATLAB S-function - Initial Condition Input
Brian: I have explained <http://www.mathworks.com/matlabcentral/answers/41050 here> why S-functions do not have the ability to t...

13 years ago | 2

Answered
Simulink how to comb data export to "To Workspace"
Try moving the To Workspace block inside of the Enabled Subsystem.

13 years ago | 0

| accepted

Answered
How to create my own model callback function (InitFcn, StartFcn,...) in Model properties/Callbacks panel ?
Sorry, it is currently not possible to introduce your own model callback. The PostLoadFcn is the latest option that you have bef...

13 years ago | 0

Answered
Is there any known eason why my level 2 matlab S-function runs slow
Your code looks fairly simple, and I don't see anything that stands out, but how do you figure out that it's the S-function that...

13 years ago | 1

| accepted

Answered
How do I output an array from my level 2 S Function? Please help!
Have you configured block.OutputPort(1).Dimensions to N?

13 years ago | 1

Answered
Level-2 M-file S-Function
Perhaps you have block.NumDialogPrms set to 25 in your MATLAB S-function code?

13 years ago | 1

Answered
view .mexw32 (MEXW32 File) in Matlab R2011a
It looks like what you have is an <http://www.mathworks.com/help/toolbox/simulink/sfg/f6-151.html S-function>. You cannot run an...

13 years ago | 0

Load more