Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Hey!!!plz help...i am unable to pass each vector from matrix to function using a for loop....plz tell where lies the fault

1 Ansicht (letzte 30 Tage)
clc
base= {1000 1000 551 1449}
slope= {0 0 2 -2}
season= {0 200 200 200}
noise= {100 100 100 100}
choice= input('enter your choice')
switch choice
case 1
disp ('simple moving average')
for i=1:1:4
simpmovaverage(base(i),slope(i),season(i),noise(i));
end
case 2
disp('finish')
end

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by