Info

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

A(B>TH) = 1 does not transform correctly via Matlab coder

1 回表示 (過去 30 日間)
Sara
Sara 2019 年 5 月 18 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hi,
I have the following expression in my code:
A= zeros(some_size);
A(B>TH) = 1 ;
A and B are matrices with the same size, TH is a float threshold value.
The A matrix I get from my matlab code is different from the one I get after running the code created by matlab coder.
I also checked B and TH, they are the same in both codes.
Does anyone know what could be the problem?
Thanks!
  1 件のコメント
Walter Roberson
Walter Roberson 2019 年 5 月 18 日
Can you perhaps create a small test case for us?
Which MATLAB version are you using and what compiler are you using?

回答 (1 件)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2019 年 5 月 18 日
Can you show what data you are generating and selecting/indexing out? and your code. There might be several issues.

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by