답변 있음
Convert C++ Code to Matlab Code with MATLAB 2019a
If your overall goal is to convert C++ code to MATLAB code, yes, manual conversion is still required in R2019a. However, if y...

대략 5년 전 | 1

| 수락됨

답변 있음
Generation of C code from simulink
Based on the error message, Hd (a dsp.IIRFilter) contains a member that is a handle class, which let multiple names refer to the...

대략 5년 전 | 1

| 수락됨

답변 있음
how to convert matlab code to c with nonsuported functions for code generation
Please see Walter's comment, with one difference: As of R2019a, arrayfun is supported for code generation, with limitations: h...

대략 5년 전 | 0

답변 있음
Complete Example for Passing Array by Reference to C for Processing
Thanks for the recommendation! We're working on improving our documentation and this is valuable feedback. Let's see if I ca...

대략 5년 전 | 1

| 수락됨

답변 있음
Matlab coder prevent memcpy/ name alias without copy
If Structure1.structure2.list is a Handle Class, you can assign to another name (myList) and modify the original object via myLi...

대략 5년 전 | 0

답변 있음
What is the right way to work with Matlab coder dynamic and static allocations?
There are two recommended ways to avoid large stack usage and dynamic allocation in multiple iterations of the algorithm. For b...

대략 5년 전 | 2

| 수락됨

답변 있음
how to generate MEX from package function in MATLAB?
Functions within packages are not supported as entry-point functions. (Current as of R2018b) See the following question/answe...

대략 5년 전 | 1

| 수락됨

답변 있음
Online Parameter Estimation of Plant model
The System Identification Toolbox has command-line and Simulink functionality for Online Parameter Estimation: https://www.math...

5년 초과 전 | 0

답변 있음
Rte_Type.h file in generated code for AUTOSAR with Matlab function in Simulink
Try setting the DataScope for the Enum to "Exported": <https://www.mathworks.com/help/simulink/ug/using-enumerated-data-in-si...

대략 6년 전 | 0

답변 있음
DAQ USB 6008 is NOT RECOGNIZED
Make sure the Driver version is compatible with your release of MATLAB. Click "Third-Party Requirements" on the right side of fo...

6년 초과 전 | 0

답변 있음
how to make phased.CosineAntennaElement element pattern in z-direction
A linear array or planar array can be used to <https://www.mathworks.com/help/phased/ref/phased.cosineantennaelement-system-obje...

6년 초과 전 | 0

답변 있음
How can I choose the mex c object file (.o) output location?
To debug, you need to add the debug flag -g so that mex knows to compile with debugging symbols: mex -g -v mxisscalar.c -ou...

6년 초과 전 | 1

| 수락됨

답변 있음
C++ Flags in Legacy Code Tool
While passing '-std=c++11' to the Legacy Code Tool is not currently supported, I have tested the following workaround: # Cons...

6년 초과 전 | 0

답변 있음
Getting MATLAB to accept input from external keypad
Since MATLAB displays '4' when you type it on the external keypad, MATLAB does receive signals from the external keypad. This...

6년 초과 전 | 0

답변 있음
Script to access Amazon S3 files
Since S3 uses a RESTful architecture, use 'webread' and 'webwrite' to access the S3 bucket. webread: <https://www.mathworks.c...

6년 초과 전 | 0

답변 있음
How can I skip some lines in a text file in order to reach a specific one which is in an undefined position?
Use 'fgetl' and 'isequal' to check each line against the specific one. Consider the following text file 'find.txt', and the d...

6년 초과 전 | 0

답변 있음
How does the Lasso function handle NaN values?
The lasso function ignores all rows (observations) with NaN values. This can be seen in the code for 'lasso' near line 240 wh...

6년 초과 전 | 0

| 수락됨

답변 있음
Custom C/C++ code block in Simulink Desktop Realtime
Yes, this is possible. See the following page for an example: <https://www.mathworks.com/help/simulink/examples/c-object-meth...

6년 초과 전 | 0

답변 있음
Distance between Global Maximum of a Wave Pattern and next Consecutive Maximum/Minimum
To find the next minimum and maximum after the global maximum, use the "findpeaks" function, but limit the data to after the glo...

거의 7년 전 | 1