Answered

How to Increase MATLAB Running Speed ?

Most likely you used MATLAB Compiler to create a deployment executable, and so when that executable is run, first thing it does ...

How to Increase MATLAB Running Speed ?

Most likely you used MATLAB Compiler to create a deployment executable, and so when that executable is run, first thing it does ...

casi 4 años ago | 0

Answered

Code generation specific output array size

I think your question is "How can I get Mshifted and f to have size 4096 in the generated C code"? With that presumption, if ...

Code generation specific output array size

I think your question is "How can I get Mshifted and f to have size 4096 in the generated C code"? With that presumption, if ...

casi 4 años ago | 0

Answered

How to not-optimize my code generated by Matlab coder

If you want to generate f1 and f2 "as is" then you need to make them to be entry points, that is, codegen f1 -args {f1's arg...

How to not-optimize my code generated by Matlab coder

If you want to generate f1 and f2 "as is" then you need to make them to be entry points, that is, codegen f1 -args {f1's arg...

alrededor de 4 años ago | 0

| accepted

Answered

Conflict of the C++ codes generated by MATLAB Coder

There is a way to define a per-project prefix for each function/global vairable/typedef that coder generates. But you have to ha...

Conflict of the C++ codes generated by MATLAB Coder

There is a way to define a per-project prefix for each function/global vairable/typedef that coder generates. But you have to ha...

alrededor de 4 años ago | 0

Answered

Use variable size data with Matlab function block in Simulink

One possible solution is to "emulate" variable-sized data using a fixed-size buffer and a separate field for size. That is, crea...

Use variable size data with Matlab function block in Simulink

One possible solution is to "emulate" variable-sized data using a fixed-size buffer and a separate field for size. That is, crea...

alrededor de 4 años ago | 1

Answered

What are the limitation on arrays of objects with MATLAB coder?

The later is correct. As of R2017b, MATLAB Coder does not support arrays of objects, so if your MATLAB code creates an array of ...

What are the limitation on arrays of objects with MATLAB coder?

The later is correct. As of R2017b, MATLAB Coder does not support arrays of objects, so if your MATLAB code creates an array of ...

alrededor de 4 años ago | 2

Answered

How to check memory of code generated by MATLAB Coder?

If you have Embedded Coder product, then you can use Static Code Metrics tab in the compilation report - you should be able to s...

How to check memory of code generated by MATLAB Coder?

If you have Embedded Coder product, then you can use Static Code Metrics tab in the compilation report - you should be able to s...

alrededor de 4 años ago | 1

Answered

How go compile and run generated C++ code in Microsoft Visual Studio 2013

Hi Lukai, note that you have generated code for a MEX function (aka config:mex) as opposed to standalone (aka config:lib). I am ...

How go compile and run generated C++ code in Microsoft Visual Studio 2013

Hi Lukai, note that you have generated code for a MEX function (aka config:mex) as opposed to standalone (aka config:lib). I am ...

alrededor de 4 años ago | 0

Answered

how to compile matlab generated c code on raspberry pi

Here is a tutorial for how to convert MATLAB code to C and compile/run it on Raspberry PI: http://www.mathworks.com/matlabcen...

how to compile matlab generated c code on raspberry pi

Here is a tutorial for how to convert MATLAB code to C and compile/run it on Raspberry PI: http://www.mathworks.com/matlabcen...

casi 5 años ago | 0

Answered

Displaying progress from a file compiled to MEX with MATLAB Coder.

A combination of 'drawnow' and 'mexPrintf' seem to work: function test1 coder.extrinsic('drawnow'); for i = 1:100...

Displaying progress from a file compiled to MEX with MATLAB Coder.

A combination of 'drawnow' and 'mexPrintf' seem to work: function test1 coder.extrinsic('drawnow'); for i = 1:100...

más de 5 años ago | 1

Answered

I want to take output from a denoising algorithm. Kindly guide me for this, I should create any package/ project/service in matlab like eclipse? I have the image for which I want to use as input.

Calling Java from MATLAB: <http://www.mathworks.com/help/matlab/using-java-libraries-in-matlab.html Call Java from MATLAB> ...

I want to take output from a denoising algorithm. Kindly guide me for this, I should create any package/ project/service in matlab like eclipse? I have the image for which I want to use as input.

Calling Java from MATLAB: <http://www.mathworks.com/help/matlab/using-java-libraries-in-matlab.html Call Java from MATLAB> ...

más de 5 años ago | 0

Answered

The return value of the extrinsic function is a variable array, How can I access it?

After the call to fast_union_sorted(), read the size of the return value, and reallocate J to be of that size: coder.varsiz...

The return value of the extrinsic function is a variable array, How can I access it?

After the call to fast_union_sorted(), read the size of the return value, and reallocate J to be of that size: coder.varsiz...

casi 6 años ago | 0

| accepted

Answered

How to convert matlab code to c/c++ code?

I'm not aware of any other tool or product that converts MATLAB code to C/C++, other than MATLAB Coder. Your options are: * W...

How to convert matlab code to c/c++ code?

I'm not aware of any other tool or product that converts MATLAB code to C/C++, other than MATLAB Coder. Your options are: * W...

alrededor de 7 años ago | 0

Answered

How to increment real world time in matlab function block of simulink?

I don't think there is a way to "fast forward" the simulation time. However, you can achieve nearly same result by placing your ...

How to increment real world time in matlab function block of simulink?

I don't think there is a way to "fast forward" the simulation time. However, you can achieve nearly same result by placing your ...

alrededor de 7 años ago | 0

Answered

Simulink - Embedded Matlab function - Size of function not bounded

Hi Carl, Since csapi and fnval do not support code generation (that's why you used extrinsic on those), you can as well move ...

Simulink - Embedded Matlab function - Size of function not bounded

Hi Carl, Since csapi and fnval do not support code generation (that's why you used extrinsic on those), you can as well move ...

alrededor de 7 años ago | 0

| accepted

Answered

Usage of Step Function in Matlab Coder?

Replace the assert statements with the following: assert(isa(I, 'uint8')); assert(size(I, 1) < 100); assert(size(I, 2...

Usage of Step Function in Matlab Coder?

Replace the assert statements with the following: assert(isa(I, 'uint8')); assert(size(I, 1) < 100); assert(size(I, 2...

alrededor de 7 años ago | 0

| accepted

Answered

How to use symbolic variables and functions (Syms) in a Simulink Matlab Function?

I think the only solution is to use the syms function inside a separate .m file and call that file as extrinsic. Create a ne...

How to use symbolic variables and functions (Syms) in a Simulink Matlab Function?

I think the only solution is to use the syms function inside a separate .m file and call that file as extrinsic. Create a ne...

más de 7 años ago | 5

| accepted

Answered

About CVXGEN: how to call a custom C-mex from an MATLAB Function block in simulink?

It looks to me that the problem you are hitting is that cell arrays are not supported inside MATLAB Function Block. I see two wo...

About CVXGEN: how to call a custom C-mex from an MATLAB Function block in simulink?

It looks to me that the problem you are hitting is that cell arrays are not supported inside MATLAB Function Block. I see two wo...

más de 7 años ago | 0

Answered

embbed function simulink with signal

I was able to make your example work in Simulink after adding the following line before call to "linspace": assert(N<10000)...

embbed function simulink with signal

I was able to make your example work in Simulink after adding the following line before call to "linspace": assert(N<10000)...

casi 9 años ago | 0

| accepted

Answered

Trouble with variable-input sizes in Embedded Matlab

To fix this problem, go to Ports and Data Manager (menu Tools / Edit Data Ports), click on the line for "Pairs", check the check...

Trouble with variable-input sizes in Embedded Matlab

To fix this problem, go to Ports and Data Manager (menu Tools / Edit Data Ports), click on the line for "Pairs", check the check...

casi 11 años ago | 0

Answered

Multi-dimensional arrays indexing for an embedded matlab function in simulink

Hi David-Linus, As Fangjun said, these look like two different issues. Can you show me your model so I can see the problem?

Multi-dimensional arrays indexing for an embedded matlab function in simulink

Hi David-Linus, As Fangjun said, these look like two different issues. Can you show me your model so I can see the problem?

casi 11 años ago | 0

Answered

Multi-dimensional arrays indexing for an embedded matlab function in simulink

Please try replacing > images = zeros(x,y); with > images = zeros(x,y,count); Embedded MATLAB function block does no...

Multi-dimensional arrays indexing for an embedded matlab function in simulink

Please try replacing > images = zeros(x,y); with > images = zeros(x,y,count); Embedded MATLAB function block does no...

casi 11 años ago | 0

| accepted