Create colored vector field with unit vectors that are colored by magnitude.

조회 수: 4 (최근 30일)
Nikolay Rodionov
Nikolay Rodionov 2015년 1월 20일
답변: Chad Greene 2015년 1월 20일
Hi, is anyone aware of a simple way to create a 2D vector field where all the vectors are the same size (restricted to unit vectors due to the large magnitude range) and where each vector is colored according to its magnitude?
example picture: (<http://www.mathworks.com/matlabcentral/fileexchange/screenshots/5116/original.jpg>)
I've found one method using the ncquiverref() function on the exchange, but it requires the mapping toolkit, which I don't have.
Does anyone know of any alternative methods?
Best Regards, Nikolay Rodionov

답변 (1개)

Chad Greene
Chad Greene 2015년 1월 20일
I suspect ncquiverref can be modified somewhat easily to remove Mapping Toolbox dependency. That function is well documented, so identifying map-related lines of code should not be difficult. Give hacking ncquiverref a try.

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by