Matlab : how to get method 'tonndata' for input arguments for matlab?

??? Undefined function or method 'tonndata' for input arguments of type 'double'.?
I'm using matlab R2009a
Thank you

1 Comment

Thanks, when i click button "Train" it pop up this this error code:-
??? Undefined function or method 'tonndata' for input arguments of type 'double'.
Error in ==> EvaluateAN at 16 inputSeries = tonndata(input_Data,false,false);
Error in ==> Forecasting>train_Callback at 225 fr = EvaluateAN(op,high,low,close,volume,18.2,0);
Error in ==> gui_mainfcn at 96 feval(varargin{:});
Error in ==> Forecasting at 42 gui_mainfcn(gui_State, varargin{:});
Error in ==> @(hObject,eventdata)Forecasting('train_Callback',hObject,eventdata,guidata(hObject))
??? Error while evaluating uicontrol Callback
>>

Sign in to comment.

 Accepted Answer

Your version is too old
function [x,wasMatrix,err] = tonndata(x,columnSamples,cellTime)
%TONNDATA Convert data to standard neural network cell array form.
%
% tonndata and fromnndata convert data from and to standard neural
% network form.
%
% Standard neural network cell array data consists of a cell array which
% has as many rows as there are signals and as many columns as there are
% timesteps. Each i,jth element of the cell array is a matrix which has
% as many rows as the ith signal has elements and as many columns as
% there are samples.
%
% [Y,wasMatrix] = tonndata(x,columnSamples,cellTime) takes matrix or cell
% array data X and converts it to standard neural network cell data Y.
%
% If columnSamples is false, then matrix X or matrices in cell array X
% will be transposed, so row samples will now be stored as column vectors.
%
% If cellTime is false, then matrix samples will be separated into columns
% of a cell array so time originally represented as vectors in a matrix
% will now be represented as columns of a cell array.
%
% The returned value wasMatrix can be used by FROMNNDATA to reverse the
% transformation.
%
% Here data consisting of six timesteps of 5-element vectors is originally
% represented as a matrix with six columns is converted to standard
% neural network representation and back.
%
% x = rand(5,6)
% [y,wasMatrix] = tonndata(x,true,false)
% x2 = fromnndata(y,wasMatrix,columnSamples,cellTime)
%
% Here data is defined in standard neural network data cell form.
% Converting this data does not change it. The data consists of three
% time series samples of 2-element signals over 3 timesteps.
%
% See also FROMNNDATA
% Copyright 2010 The MathWorks, Inc.
Thank you for formally accepting my answer
P.S. You can convert data between matrix and cell formats without using this function
Greg

More Answers (1)

and try this before it gets to the part where it fails.
which -all tonndata
ver
and tell us what that spits out into the command window, along with the complete error message (everything in red), not just a small snippet of it like you gave us.

5 Comments

after inserting it, it shows :-
>> which -all tonndata
ver
'tonndata' not found.
Strange that the ver command did not list any of your toolboxes.
Why do you think that you should have this tonndata function? What gave you that idea? Did you get a bunch of m-files from someone and they forgot to give you this function? Or do you think that it's an official MATLAB function that is supposed to be in some toolbox that you've purchased?
I get 3 m-files from someone and he says it should work because it work with him. is this function can be added to my MATLAB?
it does list the toolboxes like this:-
ver 'tonndata' not found. ------------------------------------------------------------------------------------- MATLAB Version 7.8.0.347 (R2009a) MATLAB License Number: •••••• Operating System: Microsoft Windows Vista Version 6.1 (Build 7600) Java VM Version: Java 1.6.0_04-b12 with Sun Microsystems Inc. Java HotSpot™ Client VM mixed mode ------------------------------------------------------------------------------------- MATLAB Version 7.8 (R2009a) Simulink Version 7.3 (R2009a) Aerospace Blockset Version 3.3 (R2009a) Aerospace Toolbox Version 2.3 (R2009a) Bioinformatics Toolbox Version 3.3 (R2009a) Communications Blockset Version 4.2 (R2009a) Communications Toolbox Version 4.3 (R2009a) Control System Toolbox Version 8.3 (R2009a) Curve Fitting Toolbox Version 2.0 (R2009a) Data Acquisition Toolbox Version 2.14 (R2009a) Database Toolbox Version 3.5.1 (R2009a) Datafeed Toolbox Version 3.3 (R2009a) EDA Simulator Link DS Version 2.1 (R2009a) EDA Simulator Link IN Version 2.4 (R2009a) EDA Simulator Link MQ Version 2.6 (R2009a) Econometrics Toolbox Version 1.1 (R2009a) Embedded IDE Link CC Version 3.4 (R2009a) Embedded IDE Link MU Version 1.2 (R2009a) Embedded IDE Link TS Version 1.4 (R2009a) Embedded IDE Link VS Version 2.2 (R2009a) Filter Design HDL Coder Version 2.4 (R2009a) Filter Design Toolbox Version 4.5 (R2009a) Financial Derivatives Toolbox Version 5.4 (R2009a) Financial Toolbox Version 3.6 (R2009a) Fixed-Income Toolbox Version 1.7 (R2009a) Fixed-Point Toolbox Version 2.4 (R2009a) Fuzzy Logic Toolbox Version 2.2.9 (R2009a) Gauges Blockset Version 2.0.5 (R2009a) Genetic Algorithm and Direct Search Toolbox Version 2.4.1 (R2009a) Image Acquisition Toolbox Version 3.3 (R2009a) Image Processing Toolbox Version 6.3 (R2009a) Instrument Control Toolbox Version 2.8 (R2009a) MATLAB Builder EX Version 1.2.12 (R2009a) MATLAB Builder JA Version 2.0.3 (R2009a) MATLAB Builder NE Version 3.0.1 (R2009a) MATLAB Compiler Version 4.10 (R2009a) MATLAB Distributed Computing Server Version 4.1 (R2009a) MATLAB Report Generator Version 3.6 (R2009a) Mapping Toolbox Version 2.7.2 (R2009a) Model Predictive Control Toolbox Version 3.1 (R2009a) Model-Based Calibration Toolbox Version 3.6 (R2009a) Neural Network Toolbox Version 6.0.2 (R2009a) OPC Toolbox Version 2.1.3 (R2009a) Optimization Toolbox Version 4.2 (R2009a) Parallel Computing Toolbox Version 4.1 (R2009a) Partial Differential Equation Toolbox Version 1.0.14 (R2009a) RF Blockset Version 2.4 (R2009a) RF Toolbox Version 2.5 (R2009a) Real-Time Windows Target Version 3.3 (R2009a) Real-Time Workshop Version 7.3 (R2009a) Real-Time Workshop Embedded Coder Version 5.3 (R2009a) Robust Control Toolbox Version 3.3.3 (R2009a) Signal Processing Blockset Version 6.9 (R2009a) Signal Processing Toolbox Version 6.11 (R2009a) SimBiology Version 3.0 (R2009a) SimDriveline Version 1.5.2 (R2009a) SimElectronics Version 1.2 (R2009a) SimEvents Version 2.4 (R2009a) SimHydraulics Version 1.5 (R2009a) SimMechanics Version 3.1 (R2009a) SimPowerSystems Version 5.1 (R2009a) Simscape Version 3.1 (R2009a) Simulink 3D Animation Version 5.0 (R2009a) Simulink Control Design Version 2.5 (R2009a) Simulink Design Optimization Version 1.0 (R2009a) Simulink Design Verifier Version 1.4 (R2009a) Simulink Fixed Point Version 6.1 (R2009a) Simulink HDL Coder Version 1.5 (R2009a) Simulink Report Generator Version 3.6 (R2009a) Simulink Verification and Validation Version 2.5 (R2009a) Spline Toolbox Version 3.3.6 (R2009a) Spreadsheet Link EX Version 3.0.3 (R2009a) Stateflow Version 7.3 (R2009a) Stateflow Coder Version 7.3 (R2009a) Statistics Toolbox Version 7.1 (R2009a) Symbolic Math Toolbox Version 5.2 (R2009a) System Identification Toolbox Version 7.3 (R2009a) SystemTest Version 2.3 (R2009a) Target Support Package FM5 Version 2.2.3 (R2009a) Target Support Package IC1 Version 1.5.3 (R2009a) Target Support Package TC2 Version 3.2 (R2009a) Target Support Package TC6 Version 3.6 (R2009a) Vehicle Network Toolbox Version 1.0 (R2009a) Video and Image Processing Blockset Version 2.7 (R2009a) Wavelet Toolbox Version 4.4 (R2009a) xPC Target Version 4.1 (R2009a) xPC Target Embedded Option Version 4.1 (R2009a) >>
What does it say when he does which tonndata? Whatever file it says, get that file from him and transfer it to your computer.

Sign in to comment.

Categories

Find more on Simulink in Help Center and File Exchange

Tags

Asked:

on 22 Dec 2013

Answered:

on 24 Dec 2013

Community Treasure Hunt

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

Start Hunting!