Error: Not enough input argument (line 6)

function L = QoS(Data,model,estR,estE)
load('HMMParam.mat');
S = xlsread('Dataset.xlsx');
model = model(1:size(Data,1));
model = model/max(model(:));
model = round(model);
R = logical(model);
T = Data(R,:);
G = zeros(sum(R),1);
for i = 1:sum(R)
Q = T(i,:);
Co = hmmdecode(Q,estR,estE);
Q = Q.*Co;
G(i) = sum(Q);
end
L = 1 - mean(G);
end

Answers (1)

Pass the inputs to the function Data,model,estR,estE.
  1. Save the function file in same directory
  2. Call the function from different m script
%Define all parameters
Data=
model=
estR=
estE=
y=QoS(Data,model,estR,estE)
Read about custom function call here
or if you want to run function from editor, look at here

This question is closed.

Asked:

on 19 Jul 2019

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!