Answered
How can I send a result to the workspace and take the same result from workspace ??
The "To Workspace" block does not write the variable to the workspace immediately, it is only available at the end of the simula...

14 years ago | 1

Answered
mex file compiling error
Is this an S-function? If yes, you are probably missing: #include "simstruc.h"

14 years ago | 0

| accepted

Answered
Simulink model layout
You can use the set_param command to programmatically set the position of a block: set_param('path/to/block', 'Position', ...

14 years ago | 0

| accepted

Answered
Error in builnding model on Arduino
Is <http://www.mathworks.com/matlabcentral/fileexchange/32374-matlab-support-package-for-arduino-aka-arduinoio-package this> whe...

14 years ago | 0

Answered
Chirp Signal Block in MATLAB
Yes, since there is no amplitude parameter, you can simply place a Gain block after it to achieve the desired frequency.

14 years ago | 0

| accepted

Answered
how can I measure the real time taken by a simulation in case i use a simulink model?
You still use tic-toc and run the simulation from MATLAB: >> tic; sim(bdroot); toc Or, use the Simulink Profiler. Turn ...

14 years ago | 3

| accepted

Answered
implementing dot between functions
The dot between adaptfilt and lms is actually to depict that lms is a method that belongs to the adaptfilt class (the dot as in ...

14 years ago | 1

| accepted

Answered
[sys] output.
Since Level-1 S-functions have long been deprecated, and only exist for the sake of backward compatibility, there is not a lot o...

14 years ago | 0

Answered
S-function Matlab level I
Check out the documentation on <http://www.mathworks.com/help/releases/R2011b/toolbox/simulink/sfg/f6-12629.html How S-functions...

14 years ago | 0

Answered
Saving data in Model Workspace
See the <http://www.mathworks.com/help/toolbox/simulink/ug/f4-140122.html#f4-140142 Using MATLAB Commands to Change Workspace Da...

14 years ago | 0

Answered
simulink
This question is quite similar to your earlier question that I answered here: http://www.mathworks.com/matlabcentral/answers/285...

14 years ago | 0

| accepted

Answered
How to load the Embedded Coder output into Code Composer Studio 4?
Support for CCS4 was only added in R2011a - so if you're using a previous version you might have trouble interfacing with CCS4. ...

14 years ago | 0

Answered
simulink
The <http://www.mathworks.com/help/releases/R2011b/toolbox/simulink/slref/minmaxrunningresettable.html MinMax Running Resettable...

14 years ago | 0

| accepted

Answered
Insert variable workspace in embedded MATLAB function
The load function is not amongst the <http://www.mathworks.com/help/toolbox/eml/ug/bq1h2z7-11.html functions supported for code-...

14 years ago | 0

| accepted

Answered
The FIND block in Simulink is fixed size, but labeled as variable
The error that you get is "Data is inferred as a variable size matrix, while its specified type is something else." - which mean...

14 years ago | 1

| accepted

Answered
Embedded matlab function error..
It looks like you are trying to create a variable whose size is dynamic. For example: function y = myfun(n) y = zeros(...

14 years ago | 2

| accepted

Answered
stoping the simulink.
The command to stop simulation is: >> set_param(modelName, 'SimulationCommand', 'Stop') However, Simulink does not let ...

14 years ago | 0

| accepted

Answered
GPS signal into simulink via arduino
I am not aware of any blockset directly produced by MathWorks that fulfills this requirement. However, there may be 3rd party bl...

14 years ago | 0

Answered
Simulink and compiler
See Seth and Chirag's answers here: http://www.mathworks.com/matlabcentral/answers/10193-matlab-compiler-and-simulink

14 years ago | 0

| accepted

Answered
Shared Library (dll) called by another Shared Library (dll)
Do you mean that you are using LOADLIBRARY and are seeing errors loading Level1.dll? Or do you mean that MATLAB loads Level1.dll...

14 years ago | 0

| accepted

Answered
Bad Handle Error
What is the exact error message? Guessing from your description, it might mean that the S-function block is not able to execute ...

14 years ago | 0

| accepted

Answered
How do I list all my dependent m-Files?
You can use <http://www.mathworks.com/help/techdoc/ref/depfun.html depfun>.

14 years ago | 0

Answered
Unable to find an unused TCP/IP port to connect to the rapid accelerator target for model
It appears that firewall protection on your machine can cause this type of error. Try turning it off to see if the error goes aw...

14 years ago | 0

Answered
linking libeng.lib problem in VC++ 2010
Have you configured your Linker properties to the path where libeng.lib is present and also included libeng.lib in the Additiona...

14 years ago | 0

Answered
code generation using simulink
Support for CCS 4.0 was only recently added (I think it was R2011a). Also, you need to use the XMakefile configuration for CCS 4...

14 years ago | 0

Answered
simulink 'tofile' block creates an unloadable mat file
I believe there is a problem with MATLAB being unable to load large MAT-files created by the "To File" block - how many samples ...

14 years ago | 1

| accepted

Answered
Embedded Matlab in Acclerator Mode
The Embedded MATLAB blocks generate a C-MEX S-function in Normal/Accelerator mode (not an M-file S-function). Like you have obse...

14 years ago | 0

| accepted

Answered
Problem with matlab function block.
The MATLAB Function block does not allow dynamic sizing of variables. The best you can do is figure out a maximum size for your ...

14 years ago | 1

| accepted

Answered
Problem in load library when using opencv and matlab
See if this previous discussion helps: http://www.mathworks.it/matlabcentral/answers/27971-loadlibrary-error

14 years ago | 0

Answered
Working with MATLAB classes in the Level-2 MATLAB S-Functions
The ideal technique to save data in an S-function in such a way that it is available in all the callback methods is to use <http...

14 years ago | 3

| accepted

Load more