필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Looping for many data

조회 수: 1 (최근 30일)
Seungkyu Park
Seungkyu Park 2016년 6월 29일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi all,
What is the best Simulink modeling for below C code segment. I tried For Iteration Subsystem, and looking for better ways fits to Simulink-thinking.
typedef struct {
int min, max;
int *value;
} Condition;
bool isInRange(Condition *cond) {
return *value > min and *value < max;
}
int main() {
Condition cond[10000] = {{1,2,ptr1}, {10,20,ptr2}, .......};
for(int i = 0; i < 10000; i++) {
if(isInRange(cond+i)) {
// do something
}
}
}

답변 (0개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by