回答済み
Clear a persistent variable in a MATLAB Fcn block as serial object
Another thought could be to use the serial port I/O blocks directly in Simulink. See the |Blocks| heading here: <http://www....

12年弱 前 | 0

回答済み
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));

12年弱 前 | 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...

12年弱 前 | 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...

12年弱 前 | 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 ...

12年弱 前 | 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...

12年弱 前 | 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...

約12年 前 | 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...

約12年 前 | 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...

約12年 前 | 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...

約12年 前 | 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...

約12年 前 | 0

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

約12年 前 | 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...

約12年 前 | 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...

約12年 前 | 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...

12年以上 前 | 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....

12年以上 前 | 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','...

12年以上 前 | 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...

12年以上 前 | 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...

12年以上 前 | 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> ...

12年以上 前 | 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 ...

12年以上 前 | 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...

12年以上 前 | 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 ......

12年以上 前 | 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...

12年以上 前 | 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....

12年以上 前 | 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...

12年以上 前 | 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...

13年弱 前 | 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...

13年弱 前 | 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...

13年弱 前 | 0

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

13年弱 前 | 0

さらに読み込む