MATLAB: How to plot d using Matlab plot I have this: d(:,:,i) = 0.005*sin(0.5*pi*t(i))*cos(0.5*pi*t(i))i=1:Ntt = linspace(0,100,Nt+1)Nt=1000 How do I plot d using Matlab? Best Answer UseNt = 1000t = linspace(0,100,Nt+1)d = 0.005*sin(0.5*pi*t).*cos(0.5*pi*t)plot(t,d)Any reason you are using a 3-dimensional array d ? Related SolutionsMATLAB: How to plot A=sin(pi*y/2)i – sin(pi*x/2)j using QUIVER x = -0.5:0.05:0.5;y = -0.5:0.05:0.5;[xx,yy] = meshgrid(x,y);Ai = sin(pi*yy/2);Aj = - sin(pi*xx/2);quiver(xx,yy,Ai,Aj) MATLAB: Plotting multi-component signals t = [1:0.1:7]; epoch1 = 0.5*cos(pi*t) + 1.5*cos(4*pi*t) + 4*cos(5*pi*t); epoch2 = 0.7*cos(pi*t) + 2.1*cos(4*pi*t) + 5.6*cos(5*pi*t); epoch3 = 1.5*cos(2*pi*t) + 4*cos(8*pi*t); epoch4 = 1.5*cos(pi*t) + 4*cos(4*pi*t); epoch5 = 0.5*cos(pi*t) + 1.7*cos(2*pi*t) + 3.7*cos(5*pi*t); epoch6 = 2.3*cos(3*pi*t) + 7.8*cos(8*pi*t); epoch7 = 0.8*cos(pi*t) + cos(3*pi*t) + 3*cos(5*pi*t); y=[epoch1 epoch2 epoch3 epoch4 epoch5 epoch6 epoch7]; figure; plot([1:length(y)]*0.1,y)Hope this solves your query. MATLABhelper.com Related QuestionHow to plot varying cos functionSymbolic integration produces incorrect resultHow do i plot this function- s(t)=sin0.​5sin(2*pi*​900*t+2*pi​/3) and i have to plot in the range of 0 to 10 for t(time)How do i plotHow to make a polar plot of the function r=2sin(3t)sin(t) for 0
Best Answer