필터 지우기
필터 지우기

What is the most efficient method to create a vector field plot using a non rectangular dataset?

조회 수: 1 (최근 30일)
I have several arrays each named x,y,u,v where each are 1 dimensional lists, x,y are the coordinate of the base of a vector. u,v is not related to its coordinate but represent the vector itself. The complete dataset is NOT rectangular. For example 1,2,1,2 represents a vector which has a base at a grid coordinate x,y = 1,2 and it moves 1 unit to the right and 2 units up however there may not be a dataset where x,y = 1,1.
I've tried using subplot and multiple quivers but it seems subsequent plots overwrite the previous and do not overlay on-top of the preceding quiver plot.

채택된 답변

Star Strider
Star Strider 2017년 11월 10일
You didn’t post your code, so I don’t know what you’ve done.
If you’ve not already been introduced to the hold (link) function, it may be what you want.
  댓글 수: 3

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

David Johnson
David Johnson 2017년 11월 13일
Quite sorry I did not post example data last week.
In the example data sets attached (one is xls, the other a csv - however identical data). The resulting map should have the base of each vector forming something that looks a bit like a triangle with vectors within it.

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by