# gradient arrows plot in matlab

8 visualizzazioni (ultimi 30 giorni)
fima v il 22 Mag 2023
Commentato: fima v il 24 Mag 2023
Hello, the code bellow creates a shape as shown bellow.How ever i would like to convert this plot into gradient arrows shape as shown bellow.
is it possible in matlab?
Thanks.
a=0.819*10^(-3);
b=2.73*10^(-3);
Vo=15;
rho=linspace(a,b,100);
%Updated t
t=linspace(0,2*pi,360);
[rr,tt]=meshgrid(rho,t);
func_grid=Vo*(b/a)*(1./rr);
%Modify the inputs to surf to obtain a polar plot
surf(rr.*sin(tt),rr.*cos(tt),func_grid)
colorbar
%change view as per requirement
view(2)
##### 0 CommentiMostra -2 commenti meno recentiNascondi -2 commenti meno recenti

Accedi per commentare.

### Risposta accettata

KSSV il 22 Mag 2023
a=0.819*10^(-3);
b=2.73*10^(-3);
Vo=15;
rho=linspace(a,b,100);
%Updated t
t=linspace(0,2*pi,360);
[rr,tt]=meshgrid(rho,t);
func_grid=Vo*(b/a)*(1./rr);
%Modify the inputs to surf to obtain a polar plot
pcolor(rr.*sin(tt),rr.*cos(tt),func_grid)
colorbar
hold on
quiver(rr.*sin(tt),rr.*cos(tt),v,u,'k')
##### 1 CommentoMostra -1 commenti meno recentiNascondi -1 commenti meno recenti
fima v il 24 Mag 2023
Hello, How can i make the arrow density less and array size larger.

Accedi per commentare.

### Categorie

Scopri di più su Polar Plots in Help Center e File Exchange

### Community Treasure Hunt

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

Start Hunting!

Translated by