problem with signal dimension in If-else block

1 回表示 (過去 30 日間)
PaoloC
PaoloC 2015 年 4 月 1 日
編集済み: TAB 2015 年 4 月 6 日
Hi all,
in my project i use a If-else block after a logical AND block. The AND port recieves two signal from input ports of dimension 8-Its produce a signal of same dimension redirect as incomming singal in If-else block.(see attached figure)
The error generated from Update diagram phase is : " _Error in port widths or dimensions. Output port 1 of 'model ' is a one dimensional vector with 8 elements."
Maybe it's due to how matlab manage the variable, It uses array or matrix. How can skip this problem ?
Thanks!!!! italic

回答 (1 件)

TAB
TAB 2015 年 4 月 6 日
編集済み: TAB 2015 年 4 月 6 日
Use Demux block to extract the array elements from output of AND block into 8 individual signal. Perform the logical operation between the signal as needed and pass the output to "If block".

カテゴリ

Help Center および File ExchangeEvent Functions についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by