Beantwortet
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...

mehr als 14 Jahre vor | 1

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

mehr als 14 Jahre vor | 0

| akzeptiert

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

mehr als 14 Jahre vor | 0

| akzeptiert

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

mehr als 14 Jahre vor | 0

Beantwortet
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.

mehr als 14 Jahre vor | 0

| akzeptiert

Beantwortet
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 ...

mehr als 14 Jahre vor | 3

| akzeptiert

Beantwortet
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 ...

mehr als 14 Jahre vor | 1

| akzeptiert

Beantwortet
[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...

mehr als 14 Jahre vor | 0

Beantwortet
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...

mehr als 14 Jahre vor | 0

Beantwortet
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...

mehr als 14 Jahre vor | 0

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

mehr als 14 Jahre vor | 0

| akzeptiert

Beantwortet
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. ...

mehr als 14 Jahre vor | 0

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

mehr als 14 Jahre vor | 0

| akzeptiert

Beantwortet
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-...

mehr als 14 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 14 Jahre vor | 1

| akzeptiert

Beantwortet
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(...

mehr als 14 Jahre vor | 2

| akzeptiert

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

mehr als 14 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 14 Jahre vor | 0

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

mehr als 14 Jahre vor | 0

| akzeptiert

Beantwortet
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...

mehr als 14 Jahre vor | 0

| akzeptiert

Beantwortet
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 ...

mehr als 14 Jahre vor | 0

| akzeptiert

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

mehr als 14 Jahre vor | 0

Beantwortet
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...

mehr als 14 Jahre vor | 0

Beantwortet
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...

mehr als 14 Jahre vor | 0

Beantwortet
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...

mehr als 14 Jahre vor | 0

Beantwortet
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 ...

mehr als 14 Jahre vor | 1

| akzeptiert

Beantwortet
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...

mehr als 14 Jahre vor | 0

| akzeptiert

Beantwortet
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 ...

mehr als 14 Jahre vor | 1

| akzeptiert

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

mehr als 14 Jahre vor | 0

Beantwortet
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...

mehr als 14 Jahre vor | 3

| akzeptiert

Mehr laden