plot matrix with variables

3 ビュー (過去 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 Center および File ExchangeCalendar についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by