waveform=sin(3x)-y^3 where x and y vary from -2pi to 2pi.Should look similar to but different from sine wave

 채택된 답변

Ameer Hamza
Ameer Hamza 2018년 4월 26일

1 개 추천

This will generate a 3D surface plot
x = -5:0.1:5; % specify the range of x and y
y = -5:0.1:5;
[X, Y] = meshgrid(x, y);
wave = sin(3*X) - Y.^3;
surf(X, Y, wave);

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

질문:

2018년 4월 26일

답변:

2018년 4월 26일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by