Can u please help me here, how to draw this type type of graph

Réponses (1)

Hi Parveiz, try these codes below please, good luck.
clc; clear; close all;
[X,Y,Z] = meshgrid(-2:.2:2);
V = X.*exp(-X.^2-Y.^2-Z.^2);
xslice = [-1.2,0.8,2];
yslice = [];
zslice = [];
slice(X,Y,Z,V,xslice,yslice,zslice)

3 commentaires

Thanku, it works good
But how can i apply it on an image
I never experienced this before.
ok, thanku alot

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by