How to make rectangular meshgrid

3 Ansichten (letzte 30 Tage)
Kaushal Kishore
Kaushal Kishore am 29 Aug. 2018
Beantwortet: Walter Roberson am 29 Aug. 2018
Hi i wanted to how can we create and plot a rectangular meshgrid. Thanks in advance

Antworten (1)

Walter Roberson
Walter Roberson am 29 Aug. 2018
Example:
[X, Y] = meshgrid( linspace(-2,2), linspace(-pi, pi) );
Z = X/10 + X .* sin(Y);
surf(X, Y, Z, 'edgecolor', 'none');

Kategorien

Mehr zu MATLAB Coder finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by