![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/13232169_1533094332431_DEF.jpg)
Matt Shellhammer
Followers: 0 Following: 0
Statistics
RANK
7,200
of 297,016
REPUTATION
6
CONTRIBUTIONS
3 Questions
2 Answers
ANSWER ACCEPTANCE
66.67%
VOTES RECEIVED
1
RANK
of 20,419
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
RANK
of 157,725
CONTRIBUTIONS
0 Problems
0 Solutions
SCORE
0
NUMBER OF BADGES
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Feeds
Question
Using #defines within generated C++ code
Is there a way to insert defined values (using #define in an included header file) into MATLAB Coder generated C++ code? For ...
5 years ago | 1 answer | 0
1
answerVectorization of Loops with Matrix Multiplications
%% Example Data t = 252; h = randn(252,2); l = round(0.1 * t,0); %% Loop for i = 1:(l - 1) o_tmp = (h(1:(t-i),:).' * h...
5 years ago | 0
| accepted
Question
Can I access an external (const) array within generated C++ code without copying the contents into a local array?
I have been generating code with massive constant arrays in the generated code using MATLAB coder code generation MATLAB to C++ ...
5 years ago | 1 answer | 0
1
answerHow to sum the diagonal numbers and numbers after the diagonal of a matrix
total = 0; for idx = 1:size(a,1) total = total + a(idx,idx); end or sum(a(1:(size(a,1)+1):size(a,1)*size(a,2))) or su...
5 years ago | 1
Question
How can I determine if a script is being run by the codegen -test input parameter?
I would like to avoid running certain lines of code when runing a script that calls a generated mex file (codegen -test or coder...
5 years ago | 2 answers | 0