MATLAB: How do you graph this function function How do I graph (x,y) for the following information: x[1]=10 x[2]=20 x[3]=30 x[4]=40 x[5]=50 x[6]=60 and so on and y[n]=(x[n]+x[n-1])*1/2 y[1]=(10+0)*1/2=5 y[2]=(20+10)*1/2=15 Best Answer solution:n=10;x=10:n:60;y=(x+(x-n))*1/2;figure;plot(x,y,'r*-') Related SolutionsMATLAB: How to create a histogram plot, y axis = number of objects, x = spot intensity and analyse it using a mixed gaussian distribution. I know that the data presented does not have much skew but I am just learing MATLAB Use histogram function in Matlabhttps://it.mathworks.com/help/matlab/ref/histogram.html MATLAB: How to calculate the impulse response f=100;% frequanecyfs=1000;n=[1:1000]*f/fs;u=ones(n,1)x(n)=2*cos(0.5*pi*n).u(n);% ~ (check indexes im not sure ..)y(n)=x(n(3:1000))+x(n(2:999))+x((1:998)) Related QuestionHow to display the terms of a binomial expansion (x+y)^nHow to show the maximum in the graphsI have a graph for which X axes has Raw number till 10000000, I want to ask how can I change to time frame of 60msHow to defined this (cell) arrayHow to plot different figures from the same matrix
Best Answer