0

I'm using MATLAB 2015a. Even if I try to run document example of conv function, i get an error saying Error using conv (line 15), Not enough input arguments..

This is the example code I'm using:

u = [1 0 1];
v = [2 7];
w = conv(u,v)

What is the problem with my MATLAB?

2
  • 3
    You've probably shadowed conv with your own variable or function. What does which conv return? Commented Apr 26, 2018 at 12:23
  • @excaza Oh, you're right. It is using another toolbox other than that of MATLAB. Commented Apr 27, 2018 at 6:34

1 Answer 1

1

It is hard to find the documentation for that version online without a license. You can find the documentation for your version by typing

help conv

Presumably the interface changed after your version. So you have to see what your documentation says.

FWIW, the documentation archives are here, but I cannot access them.

Also, I tried your code in Matlab 2015b (that is, b, not a), and it worked. So it must have changed between those two versions.

According to excaza, the docs haven't changed. So, like they say, it must be a shadowing issue. You would verify that by using clear all before your code snippet.

Sign up to request clarification or add additional context in comments.

1 Comment

This is a shadowing issue. The inputs to conv haven't changed since at least R2006a.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.