답변 있음
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...

14년 초과 전 | 0

답변 있음
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...

14년 초과 전 | 1

| 수락됨

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

14년 초과 전 | 0

| 수락됨

답변 있음
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...

14년 초과 전 | 0

답변 있음
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...

14년 초과 전 | 0

답변 있음
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...

14년 초과 전 | 0

답변 있음
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 ...

14년 초과 전 | 0

답변 있음
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;

14년 초과 전 | 0

답변 있음
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...

14년 초과 전 | 1

| 수락됨

답변 있음
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...

14년 초과 전 | 0

| 수락됨

답변 있음
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...

14년 초과 전 | 0

답변 있음
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...

14년 초과 전 | 2

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

14년 초과 전 | 0

답변 있음
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...

14년 초과 전 | 0

답변 있음
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 ...

14년 초과 전 | 0

답변 있음
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...

14년 초과 전 | 0

| 수락됨

답변 있음
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...

14년 초과 전 | 0

답변 있음
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...

14년 초과 전 | 1

| 수락됨

답변 있음
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...

14년 초과 전 | 1

| 수락됨

답변 있음
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...

14년 초과 전 | 1

답변 있음
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 ...

14년 초과 전 | 0

답변 있음
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: ----- ---...

14년 초과 전 | 0

답변 있음
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"); ...

14년 초과 전 | 3

답변 있음
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...

14년 초과 전 | 0

| 수락됨

답변 있음
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...

14년 초과 전 | 1

| 수락됨

답변 있음
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...

14년 초과 전 | 0

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

14년 초과 전 | 2

| 수락됨

문제를 풀었습니다


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

14년 초과 전

문제를 풀었습니다


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

14년 초과 전

문제를 풀었습니다


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

14년 초과 전

더 보기