日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 人工智能 > 循环神经网络 >内容正文

循环神经网络

matlab colorbar采用对数,matlab colorbar的使用 | 學步園

發(fā)布時(shí)間:2023/12/10 循环神经网络 38 豆豆
生活随笔 收集整理的這篇文章主要介紹了 matlab colorbar采用对数,matlab colorbar的使用 | 學步園 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

1:請(qǐng)問(wèn)matlab中畫多張圖如何使用同一範(fàn)圍的colorbar?

例如生成了圖1,2,3

生成圖1時(shí),使用

temp1=caxis;

將圖1的z值的取值範(fàn)圍(即colorbar的取值範(fàn)圍)取出。

生成圖2,3時(shí)

使用

caxis(temp1)

命令將圖2,3的z值的取值範(fàn)圍設(shè)為同1相同。

然後對(duì)各個(gè)同使用colorbar命令便可以了。

解釋:matlab將z值映射到colormap,colorbar通過(guò)z值和colormap的映射關(guān)係生成的,所以需要

將不同的figure,z值映射相同的colormap索引。

命令:

caxis

caxis([cmin cmax])

caxis controls the mapping of data values to the

colormap.

2:colorbar的刻度經(jīng)常達(dá)不到極值,可以使用下面的方法達(dá)到極值

figure

[x,y,z]=peaks(20);

subplot(2,1,1),contourf(x,y,z),colorbar

subplot(2,1,2),contourf(x,y,z)

t1=caxis;

t1=linspace(t1(1),t1(2),6);

my_handle=colorbar('ytick',t1);

再比如:

load topo

subplot('position',[0 0.5 1 0.45 ])

axesm robinson

meshm(topo,topolegend)

demcmap(caxis)

h=colorbar('northoutside');

t=get(h,'xtick');

subplot('position',[0 0.05 1 0.45 ])

axesm robinson

meshm(topo,topolegend)

a=caxis;

demcmap(caxis)

colorbar('northoutside','xtick',[a(1),t,a(2)])

其結(jié)果如下:

下面程序給出地形和大地水煮麵的結(jié)果:

load topo

load geoid

load coast

subplot('position',[0 0.5 1 0.45 ])

axesm robinson

meshm(topo,topolegend)

plotm(lat,long)

a=caxis;

demcmap(caxis)

colorbar('northoutside','xtick',[a(1),-6000:2000:4000,a(2)])

subplot('position',[0 0.05 1 0.45 ])

axesm robinson

meshm(geoid,geoidlegend)

plotm(lat,long)

demcmap(caxis)

a=caxis;

h=colorbar('northoutside','xtick',[ceil(a(1)),-80:20:60,floor(a(2))]);

1:請(qǐng)問(wèn)matlab中畫多張圖如何使用同一範(fàn)圍的colorbar?

例如生成了圖1,2,3

生成圖1時(shí),使用

temp1=caxis;

將圖1的z值的取值範(fàn)圍(即colorbar的取值範(fàn)圍)取出。

生成圖2,3時(shí)

使用

caxis(temp1)

命令將圖2,3的z值的取值範(fàn)圍設(shè)為同1相同。

然後對(duì)各個(gè)同使用colorbar命令便可以了。

解釋:matlab將z值映射到colormap,colorbar通過(guò)z值和colormap的映射關(guān)係生成的,所以需要

將不同的figure,z值映射相同的colormap索引。

命令:

caxis

caxis([cmin cmax])

caxis controls the mapping of data values to the

colormap.

2:colorbar的刻度經(jīng)常達(dá)不到極值,可以使用下面的方法達(dá)到極值

figure

[x,y,z]=peaks(20);

subplot(2,1,1),contourf(x,y,z),colorbar

subplot(2,1,2),contourf(x,y,z)

t1=caxis;

t1=linspace(t1(1),t1(2),6);

my_handle=colorbar('ytick',t1);

再比如:

load topo

subplot('position',[0 0.5 1 0.45 ])

axesm robinson

meshm(topo,topolegend)

demcmap(caxis)

h=colorbar('northoutside');

t=get(h,'xtick');

subplot('position',[0 0.05 1 0.45 ])

axesm robinson

meshm(topo,topolegend)

a=caxis;

demcmap(caxis)

colorbar('northoutside','xtick',[a(1),t,a(2)])

其結(jié)果如下:

下面程序給出地形和大地水煮麵的結(jié)果:

load topo

load geoid

load coast

subplot('position',[0 0.5 1 0.45 ])

axesm robinson

meshm(topo,topolegend)

plotm(lat,long)

a=caxis;

demcmap(caxis)

colorbar('northoutside','xtick',[a(1),-6000:2000:4000,a(2)])

subplot('position',[0 0.05 1 0.45 ])

axesm robinson

meshm(geoid,geoidlegend)

plotm(lat,long)

demcmap(caxis)

a=caxis;

h=colorbar('northoutside','xtick',[ceil(a(1)),-80:20:60,floor(a(2))]);

創(chuàng)作挑戰(zhàn)賽新人創(chuàng)作獎(jiǎng)勵(lì)來(lái)咯,堅(jiān)持創(chuàng)作打卡瓜分現(xiàn)金大獎(jiǎng)

總結(jié)

以上是生活随笔為你收集整理的matlab colorbar采用对数,matlab colorbar的使用 | 學步園的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。