Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9011231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T02:40:30+00:00 2026-06-16T02:40:30+00:00

Using the adftest function in MATLAB’s econometrics toolbox, I’m receiving the following error: >>

  • 0

Using the adftest function in MATLAB’s econometrics toolbox, I’m receiving the following error:

>> [h1,pVal1] = adftest(y1,'model','ARD')
Error using lagmatrix (line 25)
lagmatrix: wrong # of input arguments

Error in adftest>runReg (line 705)
yLags = lagmatrix(y,0:(testLags+1));

Error in adftest (line 417)
        testReg = runReg(i,y,testT,testLags,testModel,needRegOut);

y1 is a <41×1> vector of doubles.

Has anyone received this error or have any thoughts on what the issue is? I am using this code right out of the box so I’m not sure what is going on. I’d post to MATLAB’s site, but it is down for maintenance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T02:40:32+00:00Added an answer on June 16, 2026 at 2:40 am

    This is either a bug in Matlab, in which case you should submit it on the Matlab support site. Before you do that, you should check that you don’t have a function lagmatrix on your path that shadows the built-in function. Type

    which lagmatrix
    

    on the command line. If the path does not point to your Matlab installation, you should move lagmatrix off the Matlab search path.

    Also note that y1 should not contain all NaN, or be otherwise degenerate, so you may want to check the function using the sample data as suggested in the help to be sure it’s a bug and not just your data.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using the DateTime class, if I try to run the following code: $mydate =
Using the following as an example (with $db being a previously created database connection
Using the following database table structure: Order Table: OrderId OrderName OrderItem Table: OrderId ItemId
Using this code, the following execution yields strange results: C 100 R W The
Using php's DOMDocument->LoadHTMLFile('test.html'); keeps on returning an error to me, reporting for an error
I am using JPA in a Glassfish Container. I have the following Modell (not
Using CMake I want to check if a particular function (cv::getGaborKernel) from OpenCV library
Using batch script, I want to get a first token of a line delimited
Using MongoDB C# Driver (official form 10gen), I'm doing the following code: using (database.RequestStart())
Using a CSS image sprite, I'm creating an 'interactive' image where hovering over certain

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.