MATLAB: Plotting a graph using matlab plot I have the value of a time varying variable for every 5 seconds. How to plot a graph with it. Best Answer Try something like:t = 0:5:100;x = sin(t);plot(t,x,'*')xlabel('time in s')ylabel('my y axis')title('my title')where x would represent your data. Make sure that the length of your time vector equals the length of your data vector. Related SolutionsMATLAB: (input given as ?[?] = {1, 2,3} impulse given as ℎ[?] = {4,5,6} for 0 ≤ ? ≤ 2.) there is an error in the output..in sketching of y[n], we required a discrete in time signal but the output signal is continuous as seen clearly in screenshot below stem(y); MATLAB: How to insert xyz label and title in 3D plotting Usetitle('My title')xlabel('My x label')and similarly for y and z axes. Related QuestionUsing FigureWhat am i doing wrong in this codeWhen i try to run ”N =length(EEGsig);” i am getting this ”Undefined function or variable ‘EEGsig’.” error… please help me how to solve this problem
Best Answer