Sie sind auf Seite 1von 1

%PAWANKUMAR L.

FAKATKAR
clc;
close all;
clear all
k = input('insert value of k \n');
w = input('insert value of x \n');
for t = 1:1:w;
y(t) = k * (t^2);
end
j = y(w);
for t = w:1:(w*2)
y(t) = (w^2)*k;
end
stem(y)
axis([0 ((w*2)+2) -1 j+(j/10)])
%-----------------------------------%command prompt:
%insert value of k
%2
%insert value of x
%50
%------------------------------------

Das könnte Ihnen auch gefallen