声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

12
返回列表 发新帖
楼主: 江树空

[绘图技巧] MATLAB能绘制这种图形么?

[复制链接]
发表于 2014-4-30 07:31 | 显示全部楼层
本帖最后由 米斯兰达 于 2014-4-30 07:35 编辑

这种图我画过,大致与楼主的图一个类型,用pcolor画的,因为中间有白条的原因,不能一次画出来,需要用循环,一次画一条。至于平滑过渡的问题,我使用的是shading interp。(如果回答错误,请忽略,嘿嘿)
1.jpg

点评

赞成: 5.0
赞成: 5
就是这个效果,哈哈!  发表于 2014-5-7 23:10
回复 支持 反对
分享到:

使用道具 举报

发表于 2014-5-1 10:55 | 显示全部楼层
好像为了分析振动如何传过来的。即传递路径之类的。分析不同位置频率分量功率值,确认震源吧!(还不了解传递路径分析原理,待案例学习)。或请楼主简要指点指点。
发表于 2014-5-6 14:55 | 显示全部楼层
试了试。有意思;
Combine_two_picture_in_Word.PNG
发表于 2014-5-6 14:57 | 显示全部楼层
  1. close all
  2. clc
  3. M=magic(10);

  4. subplot(5,1,1)
  5. image(M(1:2,:))
  6. axis off
  7. text(0,3,'发动机顶','Rotation',90)

  8. subplot(5,1,2)
  9. image(M(3:4,:))
  10. axis off
  11. text(0,3,'发动机侧','Rotation',90)


  12. subplot(5,1,3)
  13. image(M(5:6,:))
  14. axis off
  15. text(0,2,'悬下','Rotation',90)

  16. subplot(5,1,4)
  17. image(M(7:8,:))
  18. axis off
  19. text(0,2,'悬上','Rotation',90)

  20. subplot(5,1,5)
  21. image(M(9:10,:))
  22. axis off

  23. % box off
  24. text(0,3,'传动箱上','Rotation',90)
  25. text(1,3,'1 2 3 4 5 6 7 8 9 10')

  26. figure
  27. subplot(5,1,1)
  28. image(M(1,:))
  29. axis off
  30. text(0,1.5,'发动机顶','Rotation',90)

  31. subplot(5,1,2)
  32. image(M(2,:))
  33. axis off
  34. text(0,1.5,'发动机侧','Rotation',90)
  35. subplot(5,1,3)
  36. image(M(3,:))
  37. axis off
  38. text(0,1.25,'悬下','Rotation',90)
  39. subplot(5,1,4)
  40. image(M(4,:))
  41. axis off
  42. text(0,1.25,'悬上','Rotation',90)
  43. subplot(5,1,5)
  44. image(M(5,:))
  45. axis off
  46. text(0,1.5,'传动箱上','Rotation',90)

  47. text(1,1.75,'1 2 3 4 5 6 7 8 9 10')


  48. figure
  49. subplot(5,1,1)
  50. C=ones(2,1)*M(1,:);
  51. pcolor(C)
  52. shading interp
  53. axis off
  54. text(0,1,'发动机顶','Rotation',45)

  55. subplot(5,1,2)
  56. C=ones(2,1)*M(2,:);
  57. pcolor(C)
  58. shading interp
  59. axis off
  60. text(0,1,'发动机侧','Rotation',45)
  61. subplot(5,1,3)
  62. C=ones(2,1)*M(3,:);
  63. pcolor(C)
  64. shading interp
  65. axis off
  66. text(0,1.25,'悬下','Rotation',45)
  67. subplot(5,1,4)
  68. C=ones(2,1)*M(4,:);
  69. pcolor(C)
  70. shading interp
  71. axis off
  72. text(0,1,'悬上','Rotation',45)
  73. subplot(5,1,5)
  74. C=ones(2,1)*M(5,:);
  75. pcolor(C)
  76. shading interp
  77. axis off
  78. text(0,1,'传动箱上','Rotation',45)

  79. text(1,0.5,'1 2 3 4 5 6 7 8 9 10')
复制代码

评分

1

查看全部评分

您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-5-18 07:17 , Processed in 0.063200 second(s), 24 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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