turn table to contour
    조회 수: 7 (최근 30일)
  
       이전 댓글 표시
    
hello, i have teble of data:
h=[100 100 200 200 300 300 400 400]';
v=[250 260 250 260 250 260 250 260]';
T=[25 26 35 32 35 38 38 25]';
table(h,v,T)
ans =
  8×3 table
     h      v     T 
    ___    ___    __
    100    250    25
    100    260    26
    200    250    35
    200    260    32
    300    250    35
    300    260    38
    400    250    38
    400    260    25
the valus from some experiment and i want to show them in plot. (eg - for hight of 100 m combined with 2 velocity i have to temprature 25 and 56)
i think to do contour but i dont now what i need to insert to "z" that i want to represent the temperature. 
my goal is somthing like that:

when every color represent temperature - 
green 25
black 38..........
댓글 수: 3
  Kundan
 2023년 1월 21일
				Hello dear, please guide me, how to get efficiency map of motor in simulink model. I am unable to find the effiecency in simulink. Plz guidd me
  DGM
      
      
 2023년 1월 21일
				If you're trying to get efficiency data from a Simulink model, why are you asking in old thread about using contour plots?  When you hide your questions where they don't belong, you can obviously expect that few people will ever see them.  
At the top of the page, where it says Ask, you can start a new question.  Include a description of your model as you've built it.  That way, people will see your question, and they'll have enough information to give a more helpful answer.
답변 (2개)
  Benjamin Thompson
      
 2022년 3월 9일
        If you type "doc contour" in MATLAB you will see many ways to use it:
You probably want something like contour(h, v, T) from your table, and then use the levels parameter if you want temperature contours for specific temperature values.  You should post your data to help the community provide better answers if you have more questions after trying this out.
댓글 수: 0
  Peter Perkins
    
 2022년 3월 9일
        I'm not sure contour is the function you want to make the plot you showed. contourf, maybe? But maybe image instead.
In any case, contour does not currently accept a table as input. There are lots of reasons to put data into a table, but to call contour, you'll need contour(t.h,t.v,t.T), where t is your table.
댓글 수: 0
참고 항목
카테고리
				Help Center 및 File Exchange에서 Contour Plots에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!




