Mathematica中文论坛-非官方

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
查看: 7226|回复: 0
打印 上一主题 下一主题

豆粑粑 matlab contour画 line =0

[复制链接]

550

主题

629

帖子

3181

积分

论坛元老

Rank: 8Rank: 8

积分
3181
跳转到指定楼层
楼主
发表于 2016-10-19 09:48:04 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
别人的问题,一组数据,最小的是0.
画contour。line=0就是不显示。
于是,想了个办法。

  1. clear all
  2. clc
  3. clf



  4. u=[10,10,10,10,10,10,10,10,10,10,10;
  5.    8.99606561348849,8.99389637088129,8.99057948106787,8.98584287732298,8.97986082228896,8.97392720747352,8.97098219239949,8.97392897366789,8.97985985255500,8.98584027510225,8.99057823988660;
  6.    7.99294380453954,7.98894554559840,7.98257288117157,7.97293488630887,7.95967124916292,7.94486712890525,7.93607440648736,7.94486440685254,7.95966869400389,7.97292707767319,7.98257721227369;
  7.    6.99138466365188,6.98635596383771,6.97784746908140,6.96364223396134,6.94102927192917,6.90978676803151,6.88358456426392,6.90978990345101,6.94102749074648,6.96363570550978,6.97785000325731;
  8.    5.99189576115424,5.98725292071087,5.97881888066394,5.96275095288146,5.93101124836315,5.86967517482537,5.77868795890293,5.86967811269316,5.93100777260755,5.96274666659170,5.97881778778785;
  9.    4.99440014846082,4.99193904759952,4.98741606777255,4.97752857365162,4.95059120797531,4.85922221183168,4.49180307794196,4.85921777364972,4.95058708196892,4.97752679736053,4.98741291448127;
  10.    3.99788443738197,3.99869338587360,4.00136478511077,4.00935782806326,4.03461651474653,4.12481249416311,4.49180307794196,4.12480405066883,4.03460910877425,4.00936130384753,4.00136651837721;
  11.    3.00068140972844,3.00357922715507,3.00999710896708,3.02393100755620,3.05369893103040,3.11360567060916,3.20406189912716,3.11359571987514,3.05369502494701,3.02393204077182,3.00999798692285;
  12.    2.00183422436574,2.00495646658616,2.01111664173164,2.02266680544938,2.04264449846031,2.07184041750403,2.09724149591301,2.07183372319457,2.04264343299161,2.02266408258801,2.01111893104151;
  13.    1.00138425901580,1.00329767551344,1.00684686717249,1.01297115386539,1.02236995696817,1.03386145726732,1.04124097336366,1.03386127121626,1.02236822177668,1.01297032425588,1.00684882868046];

  14. % your version
  15. % u=[u;zeros(1,11)];
  16. % mm version
  17. u=[u;zeros(1,11);-0.5*ones(1,11)];


  18. contour(flipud(u),[0:11],'LineWidth',4,'Showtext','on')
  19. axis([0.5 11 0.5 13.5])

  20. colorbar
复制代码



fig_contour_line_0.png (93.81 KB, 下载次数: 1587)

fig_contour_line_0.png
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|Mathematica中文论坛-非官方 ( 辽ICP备16001491号-1

GMT+8, 2024-12-28 15:49 , Processed in 0.104988 second(s), 29 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表