Plotting Space-Time Function in MATLAB?
17 views (last 30 days)
Show older comments
How can I plot a function (x,y,t) like the following:
(max(ceil(max(0.8535533905932737,(0.5*(sin((5)*atan2(y,x)+2*PI*915.0e6*t+(3.141592653589793/2))+1)))-0.8535533905932737), 0))
in MATLAB and visualize how this function would change in time?
2 Comments
Accepted Answer
Geoff Hayes
on 4 May 2019
Andong - I'm not sure if the below is exactly what you are looking for...when I tried it, it wasn't entirely obvious the changes over time (perhaps there aren't many?).
[X,Y] = meshgrid(-100:100,-100:100);
figure;
for t = 0:100
Z = (max(ceil(max(0.8535533905932737,(0.5*(sin((5)*atan2(Y,X)+2*pi*915.0e6*t+(3.141592653589793/2))+1)))-0.8535533905932737), 0));
plot3(X,Y,Z);
%view([-90 90]);
pause(0.05);
end
More Answers (0)
See Also
Categories
Find more on 2-D and 3-D Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!