Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Looping for many data

1 visualización (últimos 30 días)
Seungkyu Park
Seungkyu Park el 29 de Jun. de 2016
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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
}
}
}

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by