필터 지우기
필터 지우기

plot matrix with variables

조회 수: 1 (최근 30일)
Firas Kareem
Firas Kareem 2020년 8월 12일
답변: KSSV 2020년 8월 12일
Hello , i am trying to plot the following matrix :
Y= [ sin(2*pi*t) sin(2*pi*t) sin(2*pi*t) ]
[ sin(2*pi*t) sin(2*pi*t) sin(2*pi*t) ]
[ sin(2*pi*t) sin(2*pi*t) sin(2*pi*t) ]
for a given value of t , i ve used plot function but i ve got this error :
(Data must be numeric, datetime, duration or an array convertible to double.)
Appreciate your support .

답변 (1개)

KSSV
KSSV 2020년 8월 12일
N = 100 ;
t = linspace(0,2*pi,N) ;
y = sin(2*pi*t)
plot(t,y)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by