Feeds
질문
Generate code from referenced model without generating from the parent
When working with large systems made of many referenced models I can either generate code from the top-level model (parent), whi...
대략 5년 전 | 답변 수: 1 | 0
1
답변질문
How to write local code using a TLC custom storage class
I'm trying to create a class that yields the following behavior: Declare a local struct and fill its fields with data. Pass th...
대략 5년 전 | 답변 수: 0 | 0
0
답변질문
Change Simulink function exported prototype
Hi, I'm trying to generate a set of public functions that will serve as interface to my module once I generate C code from it...
5년 초과 전 | 답변 수: 0 | 0
0
답변문제를 풀었습니다
Zero Cross
Write a function that counts the number of times n a signal x crosses zero or changes sign. Examples x = [1 2 -3 -4 5 6 ...
거의 6년 전
질문
csvread: Trouble reading 'Numeric' field from file
Hi, I'm trying to read the attached csv file, but both csvread is having trouble to parse through line 8010 of the second col...
6년 초과 전 | 답변 수: 1 | 0
1
답변질문
Problem passing index to GetSet function
When I define a Simulink.Signal with dimension >1 and set it's storage class to GetSet it will generate a C function call like t...
거의 7년 전 | 답변 수: 0 | 0
0
답변질문
How to implement descending LUT breakpoint arrays
Is there any Simulink/MATLAB construct that does interpolation using a breakpoint array that is not strictly ascending? I nee...
대략 7년 전 | 답변 수: 0 | 0
0
답변질문
Error: Simulink does not support the execution of function-call cycles
I'm trying to execute this very simple sender/receiver logic with two charts and function calls. The issue is that Simulink dete...
대략 7년 전 | 답변 수: 1 | 0
1
답변답변 있음
MATLAB System block error: The input to coder.const cannot be reduced to a constant
Solved the problem defining the property NumInputs as nontunable.
MATLAB System block error: The input to coder.const cannot be reduced to a constant
Solved the problem defining the property NumInputs as nontunable.
7년 초과 전 | 1
| 수락됨
질문
MATLAB System block error: The input to coder.const cannot be reduced to a constant
I'm trying to build a system block with a dynamic number of inputs. I'm able to choose the number of inputs through a dialog and...
7년 초과 전 | 답변 수: 1 | 1
1
답변질문
Strange results with xcorr
Hi, I'm running the following script to calculate the cross-correlation between two signals: s1 = sig.signals.values(:,...
7년 초과 전 | 답변 수: 3 | 1
3
답변질문
Nested Bus as S-Function input
Hi, I'm trying to compile some legacy code as a s-function, and I'd like to pass a struct as input. I created a bus that rep...
7년 초과 전 | 답변 수: 0 | 1
0
답변답변 있음
Is there a hidden workspace in Simulink other than the model workspace?
I found out what was wrong: Simulink won't clear S-functions static memory from run to run. I'm using clear mex for that. Thanks...
Is there a hidden workspace in Simulink other than the model workspace?
I found out what was wrong: Simulink won't clear S-functions static memory from run to run. I'm using clear mex for that. Thanks...
거의 8년 전 | 0
| 수락됨
질문
Is there a hidden workspace in Simulink other than the model workspace?
When running a Simulink model, I get unexpected behaviors if I don't call a clear all before the execution. Strange thing is tha...
거의 8년 전 | 답변 수: 2 | 0