Effacer les filtres
Effacer les filtres

plot matrix with variables

1 vue (au cours des 30 derniers jours)
Firas Kareem
Firas Kareem le 12 Août 2020
Réponse apportée : KSSV le 12 Août 2020
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 .

Réponses (1)

KSSV
KSSV le 12 Août 2020
N = 100 ;
t = linspace(0,2*pi,N) ;
y = sin(2*pi*t)
plot(t,y)

Catégories

En savoir plus sur Calendar dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by