已回答
How to convert mxarray datatype in simulink
For allocating |logical| data use either of the functions |true| or |false|: x = true(size(u)); x = false(size(u));

10 years 前 | 0

| 已接受

已回答
Attempt to extract field 'Value' from 'mxArray'.
When using the output of an extrinsic function, it may often be necessary to preinitialize the variable to which it is assigned...

10 years 前 | 4

| 已接受

已回答
Fatal error U1077: How do I solve this issue?
Hi Jacob, It looks like the generated make file is having issues because of the space in the path C:\Program Files. It is tr...

10 years 前 | 0

| 已接受

已回答
Subscripting into an mxArray is not supported
|I2| is assigned as the output of |im2double| which is an extrinsic call. When doing that you need to assign |I2| prior to the ...

10 years 前 | 2

| 已接受

已回答
Using fprintf in MATLAB function block with rapid accelerator (R2013b)
FOPEN, FCLOSE and FPRINTF were supported for code generation in R2013a: <http://www.mathworks.com/help/coder/release-notes.ht...

10 years 前 | 0

| 已接受

已回答
Simulink: Read a file on RaspberryPi in external Mode [error: unknown type name ‘FILE’]
Nice to see someone using the RaspberryPi like this. Two issues: you need to include stdio.h (for the definition of popen and...

11 years 前 | 1

已回答
c code conversion question
Is the variable data defined in the base MATLAB workspace? Try: whos to see the currently defined variables. If not, p...

11 years 前 | 0

| 已接受

已回答
Migration from 2010a to 2013b ,Problems
This is a hard question in general. My recommendation would be to first have a look through the release notes for the product(s...

11 years 前 | 0

| 已接受

已回答
Embeded MATLAB function variable-size signal
You can add calls to ASSERT which effectively bounds the values arguments: function y = fcn(u) %#codegen N = 10000; co...

11 years 前 | 0

| 已接受

已回答
Simulink Matlab Function block
You may want to add the variable as an input parameter under the ports and data manager: <http://www.mathworks.com/help/simul...

11 years 前 | 0

已回答
Errors thrown when Parallel Toolbox invoked or Coder generation attempted
I'll suggest the usual suspects. Try running: rehash toolboxcache restoredefaultpath

11 years 前 | 0

已回答
'Matlab Coder' generated code is NEVER of double type (only real_T)
Also if you are using MATLAB Coder in R2013b, you can request that C built-in types be used in the generated code for LIB, DLL a...

11 years 前 | 2

已回答
Loading Files into Codegen Files
The function coder.load is now supported which loads data from a MAT file at compile-time as constants: <http://www.mathworks...

11 years 前 | 0

已回答
c files compilation using Matlab coder
If you are generating a MEX function with MATLAB Coder then you can call the MEX files extrisically: <http://www.mathworks.co...

11 years 前 | 0

| 已接受

已回答
The most efficient method to start a matlab code within a C-Routine
Hopefully someone corrects me if I am wrong but option 2 should give you what you want if you are using MATLAB Compiler already....

11 years 前 | 0

| 已接受

已回答
Undefined variable "RTW" error on Matlab start before prompt appears and in coder
It seems like the file getInstance.p is not in your installation. What is the output of: ls(fullfile(matlabroot,'toolbox','...

11 years 前 | 1

| 已接受

已回答
Unable to use "cholupdate" in a Simulink Matlab function made for C code generation
CHOLUPDATE is not supported for code generation. You can see an exhaustive list of functions which are supported here: <http...

11 years 前 | 0

已回答
error with coder.type('constant',value)
Did you put the line: a = coder.type('constant',value); in the code on which you are calling CODEGEN? The function code...

11 years 前 | 1

| 已接受

已回答
Matlab Coder not working
The supported version of GCC for R2013a is 4.4.*: <http://www.mathworks.com/support/compilers/R2013a/index.html?sec=glnxa64> ...

11 years 前 | 0

已回答
How to select target for Embedded Coder / Matlab Coder
You can achieve this simply by using the project interface. Create a new project: coder -new myProj.prj In the UI which ...

11 years 前 | 1

| 已接受

已回答
Matlab coder generated mex function
Could it be possible that the array which is being passed to MAX has an empty dimension when you are running the MEX? The err...

11 years 前 | 1

| 已接受

已回答
coder.opaque + persistent statements at once
You should be able to do something like: persistent var; if isempty(var) var = zeros('int16'); end ... use var ......

11 years 前 | 2

| 已接受

已回答
how can i use events() in matlab coder.
Events are not supported for code generation. You can see the list of limitations here: <http://www.mathworks.com/help/fixed...

11 years 前 | 0

已回答
How do I use Embedded Matlab Coder to generate C-code?
If you have a look at the supported compilers for R2008a: <http://www.mathworks.com/support/compilers/release2008a/macintosh....

11 years 前 | 0

| 已接受

已回答
MATLAB Coder Support for C11 and Textscan()
Hi Paul C11 and TEXTSCAN are both currently unsupported with MATLAB Coder. Using coder.ceval() it is possible to read from a fi...

11 years 前 | 0

| 已接受

已回答
How to pass a string into a Matlab function block?
Hi Ursula, You should simply be able to pass a MATLAB string to coder.ceval: Out = coder.ceval('MyFct', structArg.varName...

11 years 前 | 2

| 已接受

已回答
What do I use instead of fopen and fprintf when running Matlab Coder to convert m-file to mex to C/C++
FOPEN, FPRINTF and FCLOSE are supported for code generation starting in R2013a: <http://www.mathworks.com/help/simulink/ug/fu...

11 years 前 | 1

已回答
Matlab Coder Error - Unable to create HTML report file?
To shut off the report you can: c = coder.config('mex'); c.GenerateReport = false; c.LaunchReport = false; and then p...

11 years 前 | 0

已回答
embedded matlab function in simulink
Use hold('on') Command duality means using the non-function-style: hold on

11 years 前 | 0

已回答
Is Matlab coder available in R2010a?
I'm not sure if the GUI project interface was available but the commandline functionality was there in the commands: emlc ...

11 years 前 | 1

| 已接受

加载更多