MATLAB: Not able to plot plot Hi all I have m=0:2.5:12 which is time axis in seconds and p=0:0.2:1 which is probability when i do plot(p,m) i get vectors must be of same length kindly guide me thanking in advance lincy Best Answer m and p should have the same number of element. To correct thism=0:2.5:12.5p=0:0.2:1 plot(m,p)You can check the size of each vectorsize(m)size(p) Related SolutionsMATLAB: Not able to plot x m=0:2.5:12.5 p=0:0.2:1x=p./m % it's a multiplication element by element, the operator is ./ instead of /plot(x,p) MATLAB: Not able to get plot Hello, You used the linespace function with wrong parameter. Here is instruction of linespace function: linspace(X1, X2, N) generates N points between X1 and X2. To get properly result, you change 0.01 by a proper number of intervals from 0 to 0.3. Related QuestionNot able to use plot functionNot able to plot output of covolutionOverriding “get”-able properties.
Best Answer