Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Output argument is not assigned on some execution paths error inside if condition

1 回表示 (過去 30 日間)
Suvrat Ramasubramanian
Suvrat Ramasubramanian 2018 年 12 月 12 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I would like to start by saying that I realise that this question has been asked several times before and I have used similar blocks before without any issues. However in this execution I am unable to understand how to clear this error. The error is
Output argument 'measX' is not assigned on some execution paths.
Function '/Subsystem/TLS_SOH' (#60.10.15), line 1, column 11: "measX"
Attached is a image of the simulink block. The output of the said function block from the subsystem is connected to another subsystem (BMS). Both of these subsytems are triggered by the if/else condition outside.
I would also like to point out that the trigger to the first subsystem is does not affect the output measX which is 0 if the subsystem is not triggered. (checked this by removing the trigger).
Any help will be appreciated. Thanks in advance!

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by