Why won't padarray work?

21 views (last 30 days)
Grant
Grant on 12 Jul 2012
Code:
>> a = [ 1 2 3 4 ];
b = padarray(a,[0 3],'symmetric','pre')
??? Undefined function or method 'padarray' for input arguments of type 'double'.
Given that this is an example from the documentation for padarray, I'm not sure why it isn't working.
PADARRAY Documentation says:
% Class Support
% -------------
% When padding with a constant value, A can be numeric or logical.
% When padding using the 'circular', 'replicate', or 'symmetric'
% methods, A can be of any class. B is of the same class as A.
My version information:
>> ver
-------------------------------------------------------------------------------------
MATLAB Version 7.11.0.584 (R2010b)
MATLAB License Number: ••••••
Operating System: Microsoft Windows 7 Version 6.1 (Build 7601: Service Pack 1)
Java VM Version: Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot(TM) 64-Bit Server VM mixed mode
-------------------------------------------------------------------------------------
MATLAB Version 7.11 (R2010b)
Simulink Version 7.6 (R2010b)
Bioinformatics Toolbox Version 3.6 (R2010b)
Communications Blockset Version 5.0 (R2010b)
Communications Toolbox Version 4.6 (R2010b)
Control System Toolbox Version 9.0 (R2010b)
Curve Fitting Toolbox Version 3.0 (R2010b)
Database Toolbox Version 3.8 (R2010b)
EDA Simulator Link Version 3.2 (R2010b)
Filter Design HDL Coder Version 2.7 (R2010b)
Filter Design Toolbox Version 4.7.1 (R2010b)
Financial Toolbox Version 3.8 (R2010b)
Fixed-Point Toolbox Version 3.2 (R2010b)
Fuzzy Logic Toolbox Version 2.2.12 (R2010b)
Global Optimization Toolbox Version 3.1 (R2010b)
Image Processing Toolbox Version 7.1 (R2010b)
Instrument Control Toolbox Version 2.11 (R2010b)
MATLAB Builder EX Version 1.3 (R2010b)
MATLAB Compiler Version 4.14 (R2010b)
Mapping Toolbox Version 3.2 (R2010b)
Neural Network Toolbox Version 7.0 (R2010b)
Optimization Toolbox Version 5.1 (R2010b)
Parallel Computing Toolbox Version 5.0 (R2010b)
Parallel Computing Toolbox Version 5.0 (R2010b)
Partial Differential Equation Toolbox Version 1.0.17 (R2010b)
RF Toolbox Version 2.8 (R2010b)
Real-Time Workshop Version 7.6 (R2010b)
Robust Control Toolbox Version 3.5 (R2010b)
Signal Processing Blockset Version 7.1 (R2010b)
Signal Processing Toolbox Version 6.14 (R2010b)
SimPowerSystems Version 5.3 (R2010b)
Simulink Control Design Version 3.2 (R2010b)
Simulink Fixed Point Version 6.4 (R2010b)
Spreadsheet Link EX Version 3.1.2 (R2010b)
Stateflow Version 7.6 (R2010b)
Statistics Toolbox Version 7.4 (R2010b)
Symbolic Math Toolbox Version 5.5 (R2010b)
System Identification Toolbox Version 7.4.1 (R2010b)
Wavelet Toolbox Version 4.6 (R2010b)

Accepted Answer

Jonathan Sullivan
Jonathan Sullivan on 12 Jul 2012
type:
which padarray
What does it say?
  1 Comment
Grant
Grant on 12 Jul 2012
I guess it's a a license issue.
>> which padarray C:\Program Files\MATLAB\R2011a\toolbox\images\images\padarray.m % Has no license available

Sign in to comment.

More Answers (1)

Sean de Wolski
Sean de Wolski on 12 Jul 2012
One place to start:
rehash toolboxcache

Categories

Find more on Sequence and Numeric Feature Data Workflows 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!