hi to everyone!i don't know how to manage this problem: i have two block functions that have to run in function of an Excel file. This file is a vector that for every hour of the year shows a 1 or 2. If the hour is connected to a 1, one block function has to work otherwise for the other one in case of a 2. How i can manage this?thank you very much for your support!

# MATLAB: If statement problem with excel file

excel fileif statement

###### Related Question

- How to create a level triggered subsystem in simulink
- How to run block of a function only if block of another function has been ran
- Subsystem in simulink
- How to use from workspace block
- In Simulink, how can I resolve a data dependency violation involving a triggered subsystem or a function-call subsystem

## Best Answer