Community Profile

photo

David Fink

Last seen: 15 dagar ago Active since 2017

Statistics

  • Knowledgeable Level 3
  • Knowledgeable Level 2
  • Revival Level 1
  • First Answer

View badges

Content Feed

View by

Answered
Codegen failed to infer output size of built-in function, ??? Dimension 1 is fixed on the left-hand side but varies on the right ([1 x :?] ~= [:? x :?])
Thank you for reporting this! There have been some changes to downsample - try a recent version of MATLAB - R2021b or newer, wh...

3 månader ago | 0

Answered
HDLcoder ignores coder.const
By making the call to get_pfb_weights opaque to code generation (so fixed-point conversion won't try to process it), you can cal...

3 månader ago | 0

| accepted

Answered
Code generation for event functions and ODE solvers
All odeset inputs must be constant, but the anonymous function (which stores the value of params when the anonymous function is ...

3 månader ago | 2

| accepted

Answered
why mexw64 generated by coder runs slower than pure .m file?
The C code generated by MATLAB Coder can be found in the codegen/mex/SUModd/ folder, so you can compare that against the handwri...

3 månader ago | 0

| accepted

Answered
Exporting to JavaScript Angular Integration for Ionic framework
While MATLAB Coder doesn't currently offer conversion to JavaScript directly, see the following File Exchange submission which g...

3 månader ago | 0

| accepted

Answered
Not able to generate c code from dpigen
Please reach out to MathWorks Technical Support to report this bug, and find out if there's a workaround: https://www.mathworks...

3 månader ago | 0

Answered
Not able to use MINGW compiler for C++
As Gagan figured out, the Visual Studio compiler was not correctly installed, and uninstalling + reinstalling it allowed MATLAB ...

ungefär ett år ago | 0

Answered
Texas Instruments C2000 microcontroller problem with F28379D
In addition to being installed, licenses for those products must also be available. Please reach out to MathWorks Technical Sup...

ungefär ett år ago | 0

Answered
How can I deploy a face tracking algorithm to Raspberry Pi 4?
The Cascade Object Detector supports code generation, with some limitations: https://www.mathworks.com/help/vision/ref/vision.c...

ungefär ett år ago | 0

Answered
Error in Simulink.Bus - Struct conversion
Please reach out to MathWorks Technical Support for assistance with this: https://www.mathworks.com/support/contact_us.html

nästan 2 år ago | 0

| accepted

Answered
Interpolation with Piecewise Polynomials in Simulink
Wrapping the call to mkpp in coder.const will evalue it once during model update, and reuse that value during simulation. This ...

nästan 2 år ago | 0

Answered
i have excel design sheet which contains all DS I/O card information.so i want to filter the particular card information like how we do in excel.
I recommend importing into MATLAB as a table: mathworks.com/help/matlab/import_export/read-spreadsheet-data-into-table.html ...

mer än 2 år ago | 0

Answered
Unable to determine MEX compiler: use mex -setup to configure your system.
[Copying the answer here] At the MATLAB Command Prompt: mex -setup -v

mer än 2 år ago | 0

Answered
problem of custom target of board stm32f429
It looks like there are a few problems with the Makefile: "codertarget.arm_cortex_a.internal.getSpPkgRootDir" should have been ...

mer än 2 år ago | 0

Answered
Import Function is not supported
import is used to bring names into scope. Instead of: import x.y.* functionInXY(); use x.y.functionInXY(); Please contac...

mer än 2 år ago | 0

Answered
How to replace Nonscalar struct for Matlab Coder error?
centroids = cat(1, stats.Centroid); is just concatenating the centroid row vectors in the first dimension (vertical), which can...

mer än 2 år ago | 0

| accepted

Answered
What is the combined execution time of the Flux Observer and Speed Measurement block in Motor Control Blockset?
Runtime performance of generated code relies on a variety of factors, including: Hardware Code generation settings related to ...

mer än 2 år ago | 0

| accepted

Answered
How to import a pre trained linear regression model from python to matlab?
To import from Python to MATLAB, save the model in a format MATLAB can import: https://www.mathworks.com/help/deeplearning/deep...

mer än 2 år ago | 1

Answered
Fixed variable range in code translation
Yes, using "assert" statements. See examples on: Define Variable-Size Data for Code Generation Provide Maximum Size for Varia...

mer än 2 år ago | 0

| accepted

Answered
How can I Change/Set coder Error limit?
This is (for now) an internally-set limit. Similar to other compilers, some errors messages tend to "cascade", producing multip...

mer än 2 år ago | 0

| accepted

Answered
Missing builtin_typeid_types.h with OpenECU
Based on http://support.openecu.com/, it sounds like OpenECU r2.8.0 does not support RSim with MATLAB R2018b. I recommend reach...

mer än 2 år ago | 0

Answered
GUI for basic operations in Boolean algebra
Like Adam mentioned, you can set breakpoints to run your code one line at a time in order to find the problem. Alternatively,...

ungefär 3 år ago | 0

| accepted

Answered
Can't "coder.loadDeepLearningNetwork" import a custom network model?
The crash in R2019b and error in R2019a are not expected. Please reach out to MathWorks Technical Support with the reproduction...

ungefär 3 år ago | 0

Answered
Can't check out MATLAB coder license.
Please reach out to our Installation and Licensing Team for assistance with this issue: https://www.mathworks.com/support/conta...

mer än 3 år ago | 0

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

mer än 3 år ago | 1

| accepted

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

mer än 3 år ago | 1

| accepted

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

mer än 3 år ago | 0

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

mer än 3 år ago | 1

| accepted

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

mer än 3 år ago | 0

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

mer än 3 år ago | 2

| accepted

Load more