Community Profile

photo

Darshan Ramakant Bhat


Last seen: 2 days ago

MathWorks

98 total contributions since 2017

Darshan Ramakant Bhat's Badges

  • 12 Month Streak
  • Revival Level 2
  • Knowledgeable Level 3
  • First Review
  • 5-Star Galaxy Level 1
  • Personal Best Downloads Level 1
  • First Submission
  • First Answer
  • Solver

View details...

Contributions in
View by

Answered
ARM Cortex A-chip emulator: How to estimate processing time?
You have observed it correctly. When you execure a PIL MEX at a high level below things will happen : Marshall the input data...

2 days ago | 0

| accepted

Answered
Define array to be code generated as static
Please refer the below documentation on stack space usage and dynamic memory allocation : https://www.mathworks.com/help//coder...

26 days ago | 0

Answered
Does Matlab coder self checking Matlab output vs. C code output when generating code?
Line execution count just gives you the code coverage data from the test. It is not necessary to achieve 100% execution in order...

2 months ago | 1

| accepted

Answered
How to use coder.ceval to call a void type C++ function
Try defining the variable 'y' in MATLAB function then try to use coder.wref() Y = 0; coder.ceval('cpp_fun', a, b, coder.wref(Y...

2 months ago | 0

Answered
Matlab coder generated a c function which has void output, even though the matlab function has double array input
This is an intentional design in the generated code and the users dont have control over it to change this behaviour as of today...

3 months ago | 1

Answered
How to convert this C++ code into Matlab or How can I run this into Matlab
Hope below documents will be helpful for you https://www.mathworks.com/help/coder/ug/call-cc-code-from-matlab-code.html https...

3 months ago | 0

| accepted

Answered
Deployment of generated code
You need to change the build type from "MEX" to "lib" or "dll" or "source code only". Below documentation talks more about it....

3 months ago | 0

| accepted

Answered
Functions 'Tiff' and 'geotiffwrite' are not supported for code generation
Like you mentioned those functions are not yet supported for code generation. Workaround 1 Below is the list of functions cur...

3 months ago | 0

Answered
Converting EMD (Empirical mode decomposition) fuction from matlab toolbox to c language
In MATLAB Coder you cannot directy generate code from built-in functions. Please create a wrapper function which uses the buil...

3 months ago | 0

| accepted

Answered
Does Setting Variables as Integers for MATLAB Code Generation requires casting every time?
The default value of a number in MATLAB is 'double'. You can verify that with the below code : >> a = 0 a = 0 >> ...

3 months ago | 1

| accepted

Answered
Coder with classes: Default values and input checking
Yes this is slightly tricky. The definition of the generated class is decided based on the actual use of that class in the other...

3 months ago | 0

Answered
Instantiate an instance of C++ object via MATLAB Coder
I tried to solve this issue by creating the similar example. I have mocked up some of the files using my own definition of the...

3 months ago | 1

Answered
Using custom C structures with MATLAB coder
You dont have to use code.cstructname() for your usecase. I have modified your code and try to make it work. I have attached t...

4 months ago | 1

| accepted

Answered
Problem with basics of including C++ code with coder (coder.ceval)
I changed the MATLAB file name to avoid the clash. Also added coder.cinclude as suggested by Walter. function out = helloWor...

4 months ago | 0

| accepted

Answered
Resample Incorrect Assumption During Codegen.
Thanks for the detailed description and reproduction steps. This looks like a bug in the codegen support for this function. I ...

4 months ago | 0

Answered
Is there any alternative to configureKalmanFilter that works for Matlab coder?
Below page gives the information about the list of functions supported for code generation in the latest release. https://www....

6 months ago | 0

Answered
How to call matlab generated function from c program?
You have to include the appropriate header files which contains the generated function declaration. Then you can directly call t...

6 months ago | 0

| accepted

Answered
How to Generate.dll file without C or C++ code?
Can you please explain your question a little bit ? What do you mean by "without C/C++ code" and why do you want to do it that w...

6 months ago | 1

Answered
How to convert std vector to coder::array
Below document shows an example of creating a coder array and filling up it's values https://www.mathworks.com/help/coder/ug/us...

6 months ago | 0

Answered
Access pointer to struct in Matlab Coder
The struct type is opaque for the MATLAB Coder. So it will not have the information about he fields. Can you please try the belo...

7 months ago | 0

| accepted

Answered
Coder varsize unbounded second dimension
I will try to explain with an example. What does it mean by fixed dimesion ? Consider below example function [x,y] = usevars...

7 months ago | 1

| accepted

Answered
Fixed point coder log10 implementation
The function "log10" is supported for code generation in the latest version (R2020b) of MATLAB. You can find the list of support...

7 months ago | 0

Answered
What is the proper syntax for feeding a C struct (defined in a header file) to a MATLAB function?
You are almost there. I just want to clarify few things. Let's say that the struct that you have difined looked like below : ...

7 months ago | 1

| accepted

Answered
Recursive data structure error in mex compiling of object-oriented program
Unfortunately MATLAB Coder does not support recursive data structures yet. It is documented in the below page : https://www.mat...

7 months ago | 1

Answered
??? Unable to determine that every element of 'C1{:}' is assigned before this line.
This is happening because of the assignment C1=FraDecMultiLevel(u,D,Level); "FraDecMultiLevel" is returning a multi dimension...

7 months ago | 0

Answered
Matlab Coder fails generation for slerp() call with double quaternions
Solution 1 : Remove the single cast function [D] = getInterpolatedTransforms(q0,t0,q1,t1,steps,correction) D = zeros(4,4,steps...

7 months ago | 0

| accepted

Answered
??? Dimension 1 is fixed on the left-hand side but varies on the right ([256 x 256] ~= [:? x :?]) when running codegen command
I have modified the sample code attached and made it work. Please use "codes_modified" file and run below command : codegen Sp...

8 months ago | 0

| accepted

Answered
How to split the function when generating code with MATLAB coder.
You can try coder.inline('never') in your MATLAB Functions. Below is the documentation for the same. https://in.mathworks.com/...

9 months ago | 1

Load more