Resample function error even with simple examples

5 views (last 30 days)
I get an "undefined function 'resample' for input arguments of type 'double' even when doing the simplest tutorial examples on the mathworks website. I've read about this error and having functions in the same directory as working. I've pulled in the resample.m function into my working directory. That just resulted in the same error for the gettimeseriesnames.m function. There must be a better way than bringing all of the matlab function files into my working directory. I've also tried setting my working path as the folder where these functions are stored. No luck....

Answers (1)

Ingrid
Ingrid on 11 Jun 2015
when setting the path, you should be sure that you have administrator rights (right click matlab before opening to select this open) + do you add the path with subfolders?
  1 Comment
Mayuko Obuchi
Mayuko Obuchi on 9 May 2016
Edited: Mayuko Obuchi on 9 May 2016
Hi! Unfortunately I have the same error. All files are in the same directory but "resample" doesn't work. I have only the basic version of Matlab (without any extensions and suites) and am using Matlab for the first time. Previously I used octave... and the script worked perfectly. What am I doing wrong? I would be very thankful for your support!

Sign in to comment.

Categories

Find more on File Operations in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!