tejasvee - please format your code so that it is readable. Better yet (given the number of lines) just attach it the m-file to this question.
Also, please show how you are calling your code and copy and past the full error message (in to this question) so that we don't have to guess what the error is or which line it corresponds to.
Your function signature looks a little bizarre
function [TrainingTime, TestingTime, TrainingAccuracy, TestingAccuracy] = ...
ELM(sinc_train.txt,sinc_test.txt,0,1,radios);
The input parameters appear to be defined as actual values rather than named ones. The function signature should remain as
function [TrainingTime, TestingTime, TrainingAccuracy, TestingAccuracy] = ...
ELM(TrainingData_File, TestingData_File, Elm_Type, NumberofHiddenNeurons, ActivationFunction)
and you would call your function (from the command line or from within another script) as
>> [TrainingTime, TestingTime, TrainingAccuracy, TestingAccuracy] = ...
ELM(sinc_train.txt,sinc_test.txt,0,1,radios);
Note how one line of code defines the signature for the function and the other shows how you would call it.
Best Answer