Beantwortet
S-function flag calling from other functions
I guess you could technically call it from any other method in the same S-function, just like you can call a MATLAB sub-function...

mehr als 14 Jahre vor | 0

Beantwortet
matlab coding to s-function level 2 coding.
Oops, just realized that you are asking about the InitializeConditions function, and not Update or Outputs. The initial conditio...

mehr als 14 Jahre vor | 1

| akzeptiert

Beantwortet
loadlibrary error
For versions older than R2011a, Visual Studio Express (free) editions were not supported with LOADLIBRARY - the support was adde...

mehr als 14 Jahre vor | 0

| akzeptiert

Beantwortet
about Embedded matlab function
The 'find' function us listed amongst the <http://www.mathworks.com/help/releases/R2011a/toolbox/eml/ug/bq1h2z7-11.html function...

mehr als 14 Jahre vor | 0

Beantwortet
Writing Help Browser Documentation... How do I add a link to an external file?
The <http://www.mathworks.com/help/techdoc/matlab_env/f6-30186.html#brvg6ty-1 documentation> seems to suggest that what you're d...

mehr als 14 Jahre vor | 0

Beantwortet
Cannot find MEX function when executing C
It is likely that the "mex" command is not supported for deployment. Is there a reason that you can't simply include your MEX-fi...

mehr als 14 Jahre vor | 0

Beantwortet
R2006a 64-Bit / VC++ 2010 SDK 7.1 / Simulink / Embedded Matlab Fcn make error: lccmake
Perhaps Simulink is using a stale Makefile that was generated with another version of MATLAB into the same folder? See if there ...

mehr als 14 Jahre vor | 0

Beantwortet
How do I eliminate the "ans = " at the end of my function?
How are you calling the function? You need to put a semicolon at the end of your call: >> valcomp;

mehr als 14 Jahre vor | 0

Beantwortet
Error in port widths or dimensions
Apparently the S-function expects a scalar value, but you are feeding in a vector of length=11. If you've written the S-function...

mehr als 14 Jahre vor | 1

| akzeptiert

Beantwortet
Equivalent function to simulink filter block
It seems like the <http://www.mathworks.com/help/toolbox/vision/ref/vision.imagefilterclass.html vision.ImageFilter> class is wh...

mehr als 14 Jahre vor | 0

| akzeptiert

Beantwortet
Plotting labeled graphs in simulink
Typically, the signal name of the input to the Scope block is used to label the plot. To name a signal, right-click on it, selec...

mehr als 14 Jahre vor | 0

Beantwortet
My variables in workspace are updated but not on variables "From Workspace" to the simulink model
The best solution is to call your MATLAB function in a loop from your Simulink model using the <http://www.mathworks.com/help/to...

mehr als 14 Jahre vor | 2

Beantwortet
Plot to axes from a simulink variable
Try sim('Sistema_s_Atraso_SelfTuning',tempo_simulacao, 'DstWorkspace', 'current'); This ensures that all variables crea...

mehr als 14 Jahre vor | 0

Beantwortet
Getting linking error:2001 while integrating C-code generated from Real time work shop from a simulink block.
You need to use either grt.tlc or ert.tlc as the System Target File for your model. The code that is generated for your model se...

mehr als 14 Jahre vor | 0

Beantwortet
changing coding of a block in a simulink model
It depends on how the block was authored - it will help if you specify which Simulink library it belongs to (if it is a shipped ...

mehr als 14 Jahre vor | 0

Beantwortet
How to make a diagram block getsnapshot or get frame on simulink program?
Not sure if this is an ideal solution, but you could try using a <http://www.mathworks.com/help/releases/R2011b/toolbox/imaq/fro...

mehr als 14 Jahre vor | 0

| akzeptiert

Beantwortet
Compiled matlab executables not working correctly with java archives
In general, you are discouraged from using functions like ADDPATH with absolute paths from deployed applications. See <http://bl...

mehr als 14 Jahre vor | 0

Beantwortet
Xilinx System Generator and HDL Workflow Advisor
As far as I know, you need to use Xilinx System Generator to generate code from their blocks. They are not supported directly wi...

mehr als 14 Jahre vor | 1

| akzeptiert

Beantwortet
building standalone application fails on file I don't use
This seems like it could be due to a bug. Please consider reporting this to MathWorks Tech Support. Are you using functions f...

mehr als 14 Jahre vor | 1

| akzeptiert

Beantwortet
Executing the function find_system and load_system using MCR
As is documented <http://www.mathworks.com/help/toolbox/compiler/br2cqa0-20.html here>, Simulink functions in general are not su...

mehr als 14 Jahre vor | 1

Beantwortet
Writing data into excel for unknown range using ActiveX commands
I think you can just use 'A3' (if also specifying a sheet name) or 'A3:A3' (if not specifying a sheet name, because 'A3' may be ...

mehr als 14 Jahre vor | 0

Beantwortet
How to Create a repeating pulse using single pulse without using Source Block(simulink)
This is just one way, but I've used it in the past to generate a pulse-sequence with 50% pulse-width: ----- ---...

mehr als 14 Jahre vor | 0

Beantwortet
print mxArray type.
The easiest way is to just have the MATLAB "disp" function do the job for you: mexCallMATLAB(0,NULL,1, &in1, "disp"); ...

mehr als 14 Jahre vor | 3

Beantwortet
mcc error with directories including spaces in their names
It looks like the issue is because of spaces in your $TEMP directory - see <http://www.mathworks.com/support/bugreports/708703 B...

mehr als 14 Jahre vor | 0

| akzeptiert

Beantwortet
calling a standalone function to matlab function block
You can use any of <http://www.mathworks.com/help/releases/R2011a/toolbox/eml/ug/bq1h2z7-11.html functions supported for code-ge...

mehr als 14 Jahre vor | 1

| akzeptiert

Beantwortet
Error while Code Generation from MATLAB 7.4 to CCS for LF2407 eZdsp
You may not have all required software setup on your machine. Try running the <http://www.mathworks.com/help/releases/R2011b/too...

mehr als 14 Jahre vor | 0

Beantwortet
bloc MATLAB function directory error
What do you get when you execute the following commands in MATLAB: >> pwd >> !cd

mehr als 14 Jahre vor | 2

| akzeptiert

Gelöst


Remove the vowels
Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...

mehr als 14 Jahre vor

Gelöst


Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

mehr als 14 Jahre vor

Gelöst


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

mehr als 14 Jahre vor

Mehr laden