MATLAB**
I'm not sure what I'm doing wrong writing out my equation. I keep getting an error. It has something to do with the line with the function written out. Here's what I have:
%3.2
clc
clear
close all
%plot ?(?,?)=?(1+sin?), as a 3D plot on the domain ?∈[−8,8],
?∈[−8,8].
x=[-8:8];
y=[-8,8];
z=x(sin(y)+1);
plot3(x,y,z)
title('Plot 3.2')
code:
output :
raw_code :
clc
clear all
close all
%creating x and y in given domain
x = -8:8;
y = -8:8;
z = x.*(1+sin(y)); %given function
%plotting in 3d
plot3(x,y,z)
title('Plot 3.2')
***do comment for queries and rate me up****
Get Answers For Free
Most questions answered within 1 hours.