Answered
Encountered a error when using RTW to creat .dll from simulink model
This seems to be a third-party product, and your command window output doesn't show any indication of the error (you might want ...

13 years ago | 0

Answered
delay a continous signal
You can use the <http://www.mathworks.com/help/toolbox/simulink/slref/variabletimedelay.html Variable Time/Transport Delay> bloc...

13 years ago | 2

Answered
Unexplained error while building DLL
That's strange. Is there a _model_.c file generated? The _model_ _step function should be generated into it? Also, could you ...

13 years ago | 0

Answered
how to decide the order of initialization?
AFAIK, the initialization order is the same as the execution order (or "Sorted Order"), which in turn is determined by your data...

13 years ago | 2

| accepted

Answered
Cant transpose data in workspace to use it in a scope (Simulink)
You need to organize your data as described in the documentation for the <http://www.mathworks.com/help/toolbox/simulink/slref/f...

13 years ago | 0

Answered
Change/reset initial state values in a level 2 C-mex S-function
You can either follow Ryan's suggestion or put your S-function inside an enabled subsystem with "Output when disabled" set to "r...

13 years ago | 0

Answered
How to I output the maximum value of a signal to a display?
I think you should be able to compute the running maximum using the <http://www.mathworks.com/help/releases/R2011b/toolbox/simul...

13 years ago | 1

| accepted

Answered
How to find data with specific data type.
I think the safest way to check datatypes used in a model is to compile the model and check the compiled datatypes at the bounda...

13 years ago | 1

Answered
Effect of using masked subsystem on simulation speed?
AFAIK, the only effect of masks on simulation performance is that at initialization time, block dialog parameters are first eval...

13 years ago | 0

| accepted

Answered
syntax to pass x0 values (for fsolve) from constant blocks to interpreted matlab function
You should probably create a wrapper function that has the two lines: function y = callFsolve(u) x0=[u(5),u(6),u(7)]; ...

13 years ago | 0

Answered
How can i compile a code which load .Net dll
What is the exact that you receive in the compiled application? If it is "This assembly is built by a runtime newer than the cur...

13 years ago | 1

| accepted

Answered
Initialising variables in an embedded function
Why not use a local variable as the persistent variable instead? function output = fcn(Ti,aw,aa,L,Tstep,Tamb,Tcline,Tprev) ...

13 years ago | 0

| accepted

Answered
Run a simulink model for a certain amount of time and pause
The easiest way to do this is to configure the <http://www.mathworks.com/help/simulink/ug/controlling-execution-of-a-simulation....

13 years ago | 2

Answered
simulink and gui sfunction
This documentation page might be helpful: <http://www.mathworks.com/help/toolbox/simulink/ug/f13-92122.html Accessing Block Data...

13 years ago | 0

Answered
invalid mex - libmysqlcppconn not finding glibcxx_3.4.15
I don't understand library dependency resolution completely, but I wonder if libmysqlcppconn.so.5 could be looking at a differen...

13 years ago | 0

Answered
Using mcc to compile code which calls mex files
The error says "sh: gams: command not found" - so it seems like the "outside" program is not on the System path?

13 years ago | 0

Answered
Implementing a Simulink model in an executable file
It is currently not possible to generate standalone code for Simulink models using a variable-step solver, because this solver u...

13 years ago | 2

| accepted

Answered
Verifying CCS 3.3
Please see http://www-europe.mathworks.com/matlabcentral/answers/40691

13 years ago | 0

| accepted

Answered
Accessing M-file S-Function parameters inside TLC file
Do you call "block.AutoRegRuntimePrms({'P1','P2'});" in DoPostPropSetup? If you call block.AutoRegRuntimePrms without the parame...

13 years ago | 0

| accepted

Answered
Is there an example Freescale S12X target for Simulink Coder and Embedded Coder (R2012a) using the CodeWarrior Compiler?
Perhaps as the solution suggests, you should either write to mytarget@mathworks.com or contact <http://www.mathworks.c...

13 years ago | 0

Answered
Model Reference and shared data types
Do you have <http://www.mathworks.com/help/toolbox/ecoder/ref/bq26g2z-1.html#bq26g9p-1 Data declaration> on the Code Generation>...

13 years ago | 1

| accepted

Answered
disable "Excel COM server"
Do you mean when using the XLSREAD command? Use the <http://www.mathworks.com/help/techdoc/ref/xlsread.html "[num,txt,raw] = xls...

13 years ago | 0

| accepted

Answered
Replace a subsystem A with subsytem B on different models
Does 'oldSub' exist in the top-level of the model or inside a subsystem? For example, does the following command return any valu...

13 years ago | 0

| accepted

Answered
How I can call VB macros in matlab?
I'm not a Visual Basic programmer, but I think this might be possible only if you can expose your Visual Basic code as a COM ser...

13 years ago | 0

Answered
How to run mutliple instances of Simulink blocks at the same time without naming errors?
It's not clear how/if you want the multiple instances to be resolved, but if each Goto (and the corresponding From blocks) is in...

13 years ago | 1

| accepted

Answered
Standalone EXE execute matlab-code online without Matlab installed on the client?
The only way to deploy MATLAB code on a machine without a MATLAB installation is to use <http://www.mathworks.com/products/compi...

13 years ago | 0

Answered
Building a mwArray Structure from C++
Does this work: const char* data_fieldnames[] = { "one", "two", "string", "subtest" }; const char* sub_fieldnames[...

13 years ago | 0

Answered
Interpolate from slower sample rate to faster sample rate in Simulink?
The <http://www.mathworks.com/help/toolbox/dsp/ref/firinterpolation.html FIR Interpolation> block from the DSP System Toolbox mi...

13 years ago | 0

Answered
Custom DWork datatype in TLC generated code via Level 2 M-file S-function or TLC
It doesn't look like MATLAB S-functions support defining custom datatypes within the S-function - see <http://www.mathworks.com/...

13 years ago | 0

Answered
embedded matlab function error with MFCC features
You need to pre-declare 'y' to the expected output type of your function. See <http://www.mathworks.com/help/toolbox/eml/ug/bq1h...

13 years ago | 0

| accepted

Load more