Author Topic: I made a BOD E drawing. How do I draw straight lines in this on this graph?  (Read 959 times)

Offline killingfield1975

  • Newbie
  • *
  • Posts: 4
  • Matlab Forum
    • View Profile
Hi sorry I am a TOTAL NOOB. I have never ever used matlab before and I have absolutely no idea what the heck im doing. on my matlab graph i have a Hdb vs. w(omega) log. i created my plot fine but I would like to add in some additional lines to draw a 2D rectangular box on my graph.


here are the 4 corners I want to connect to make a rectangle keep in mind my graph is HdB vs Log


semilogx(w,Hdb)


top left corner (0,0)
top right corner (200,0)
bottom left corner (0,-10)
bottom right corner (200,-10)





i tried to search everywhere on the internet for clues and i found out how to draw lines but i dont know how to integrate these lines into my log graph. it seems like i cant have two plots going on at the same time. id unno please help me.

Offline killingfield1975

  • Newbie
  • *
  • Posts: 4
  • Matlab Forum
    • View Profile
Ok i drew out the picture in photoshop. this is what i want to do.

Offline killingfield1975

  • Newbie
  • *
  • Posts: 4
  • Matlab Forum
    • View Profile

Offline killingfield1975

  • Newbie
  • *
  • Posts: 4
  • Matlab Forum
    • View Profile
i want to draw those red lines but in matlab using those coordinates.

Matlab and SimuLink Development Forum