quiver plot

조회 수: 5 (최근 30일)
iceuday
iceuday 2011년 12월 20일
Hello,
I have a quiver plot,
hQ = quiver(x,y,unode',vnode',.4,'k-');
and i am trying to extract the data from this quiver plot by using this code,
a = get(hQ,'unode');
fid = fopen('test1.txt','w');
fprintf(fid,' %5.3f \n' ,unode)
status = fclose(fid);
But i get an error message every-time, the error message is,
??? There is no 'unode' property in the 'quivergroup' class.
Error in ==> test1 at 126 a = get(hQ,'unode');
Anybody could explain to me how to overcome this error i am getting.
Thank You.

채택된 답변

Sean de Wolski
Sean de Wolski 2011년 12월 20일
'unode' is not a defined quiver group property, it's a vector of u-velocities that you're feeding into quiver. quiver properties are available here:
docsearch quivergroup properties
From that document it appears you want 'udata'
a = get(hQ,'udata');

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Vector Fields에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by