필터 지우기
필터 지우기

plotting magnitude of vectors

조회 수: 8 (최근 30일)
Ede gerlderlands
Ede gerlderlands 2013년 6월 29일
I have two matrix of x= [1 250] and y= [1 250]. These are readings of signal which contains negative and positive values. I managed to plot the direction of the vectors using
quiver(n,s,x,y)
where n and s are the x and y locations.To plot the magnitude of the vectors. I used
plot(time, sqrt(x.^2+y.^2));
But this only gives the magnitude(positive). Can somebody show me while to plot the magnitude of the vector which shows both negative and positives(based on direction)?
Thank you.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Pulse and Transition Metrics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by