Conv() not working
이전 댓글 표시
I am trying to use Conv function to convolute two distributions. But the Conv function is not working, do I have to install any special tool for it to work. Isn’t it a built-in function?
댓글 수: 2
Ameer Hamza
2020년 10월 8일
편집: Ameer Hamza
2020년 10월 8일
You don't need a toolbox to run this function. What is the error?
dinesh kumar mohan
2020년 10월 8일
채택된 답변
추가 답변 (1개)
Constantino Carlos Reyes-Aldasoro
2020년 10월 8일
Could it be that you tried with uppercase C as in Conv and not with lower case as in conv?
>> conv([1 1],[2 2])
ans =
2 4 2
>>
>> Conv([1 1],[2 2])
Cannot find an exact (case-sensitive) match for 'Conv'
The closest match is: conv in C:\Program
Files\MATLAB\R2019a\toolbox\matlab\datafun\conv.m
댓글 수: 5
dinesh kumar mohan
2020년 10월 8일
Constantino Carlos Reyes-Aldasoro
2020년 10월 8일
ahhhh this may be more subtle! Try the following:
>> which conv
C:\Program Files\MATLAB\R2019a\toolbox\matlab\datafun\conv.m
>>
If you do not see the same, it is because a) you have another file with the name conv, or you have a variable with the name conv.
dinesh kumar mohan
2020년 10월 8일
Constantino Carlos Reyes-Aldasoro
2020년 10월 8일
Great! If this is sorted, please accept the answer. If not, let me know.
Constantino Carlos Reyes-Aldasoro
2020년 10월 8일
ah I see that you accepted Steven's.
카테고리
도움말 센터 및 File Exchange에서 Correlation and Convolution에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!