purpose of a period in a var set/equation ?

4 views (last 30 days)
Issac
Issac on 15 Sep 2011
from
+++++++++++++++++++++++++++
fsamp = 11025;
dt = 1/fsamp;
dur = 1.8;
tt = 0 : dt : dur;
psi = 2*pi*(100 + 200*tt + 500*tt.*tt);
xx = real( 7.7*exp(j*psi) );
soundsc( xx, fsamp )
++++++++++++++++++++++++++++++
what is the purpose of the period in "psi = 2*pi*(100 + 200*tt + 500*tt.*tt)" ?

Answers (1)

Andrew Newell
Andrew Newell on 15 Sep 2011
With the dot, it indicates element-by-element multiplication instead of matrix multiplication. See Matrix and array arithmetic.

Categories

Find more on Performance and Memory in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!