I have my data in an array u with variales t (time), r (radius), and θ (polar angle). How can I plot the function at different times?
For example, I want to plot for all , and and , .

답변 (1개)

Chunru
Chunru 2023년 12월 4일

0 개 추천

r = linspace(0,100, 101)';
theta = linspace(0, 360, 61);
t = 1; % single t point for simplicity here
u = 1./r.*cos(2*pi*.05*r) .* ones(size(theta)); % generate some data to plot
xx = r.*cosd(theta);
yy = r.*sind(theta);
p = pcolor(xx, yy, u);
p.EdgeColor = 'none';

카테고리

도움말 센터File Exchange에서 Polar Plots에 대해 자세히 알아보기

태그

질문:

2023년 12월 3일

답변:

2023년 12월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by