MATLAB: Plot z = x^2 + y^2 over the interval -4 <= x <= +4, -4 <= y <= +4. homeworkintervalplotting I'm not sure how to plot above equation. Can anyone help me? Best Answer N = 100 ;x = linspace(-4,4,N) ;y = linspace(-4,4,N) ;[X,Y] = meshgrid(x,y) ;Z = X.^2+Y.^2 ;surf(X,Y,Z) Related SolutionsMATLAB: How to plot y=(x/6)^3 in matlab >> x = 0:0.1:3; >> y = (x/6).^3; >> plot(x,y) MATLAB: Z-Transform of difference Equation Use the subs (link) function:X = subs(X, {ztrans(y(n), n, z), y(-1), y(-2)}, {Y(z), 4, 10})producing:X =Y(z) - (3*Y(z))/(2*z) + Y(z)/(2*z^2) - 1/(4*z - 1) + 2/z - 3/2 Related QuestionHow to implement the 3*3 matrix in a for loopDuplicate plot in 4Generate random matrix ‘r’ of size 3 by 4 with number varying between -4 and 6
Best Answer