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

 Réponse acceptée

Ameer Hamza
Ameer Hamza le 26 Avr 2018

1 vote

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);

Plus de réponses (0)

Catégories

En savoir plus sur Numerical Integration and Differential Equations dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by