MATLAB: Hi I’m new to Matlab and was trying to plot a graph of 2^n but havn’t been able to. graphplot . Best Answer For example for the range [-5,5]x = linspace (-5,5,101);y = 2 .^ x;plot (x,y); Related SolutionsMATLAB: How to Plot a graph with restriction Mustahsan, what do you mean by restrict? Setting the plotting limits? Something like: xlim([pi, 2*pi]) MATLAB: How to interpolate the NaNs in the middle part of a curve e.g.a = 1:20;b = rand(1,20);b(4:7) = NaN;newB = interp1( a( ~isnan(b) ), b( ~isnan(b) ), a );also includes an extrapolation argument that you can read about on the help page:doc interp1 Related QuestionNeed help with this code – linear regression/least squaresCan’t I plot a graphUsing for loop with if
Best Answer