解决问题打赏,mat​lab用images​c画图,画出来的图像​结果和实际明显不符,​想知道哪里出了问题。

18 ビュー (過去 30 日間)
frehsen
frehsen 2023 年 5 月 17 日
回答済み: mororus 2023 年 5 月 17 日
解决问题打赏[m,n]=meshgrid(0:0.01:20);
>> h=m+n;
>> imagesc(h)
用imagesc画图,画出来的图像结果和实际明显不符,在m=1,n=1处应该是h=2,画出来却是h=0,想知道哪里出了问题

採用された回答

mororus
mororus 2023 年 5 月 17 日
没有问题啊,你直接imagec,没有给定坐标啊,【X,Y】:【1,1】表示第一个点的值就是m=0,n=0的结果,所以是h=0;你要的m=1,n=1相当于X=201,Y=201,那个点h=2;你没给图像坐标兄弟。

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!