A(B>TH) = 1 does not transform correctly via Matlab coder
정보
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이전 댓글 표시
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
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
2019년 5월 18일
0 개 추천
Can you show what data you are generating and selecting/indexing out? and your code. There might be several issues.
댓글 수: 0
이 질문은 마감되었습니다.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!