"real positive integers or logicals" error
Show older comments
A = 942;
f0 = 19;
w0_1 = 38*pi;
Q_1 = -0.9426;
Q_2 = -0.1678;
t = 0:0.1:5;
cosfn1 = A*cos(2*pi*f0*t + Q_1);
------------------------------
For a cod segment above, I get an error as "Subscript indices must either be real positive integers or logicals." And this points tthe cosfn1. Why do I get such an error? Thanks for your help
Accepted Answer
More Answers (1)
sefa
on 27 Feb 2012
0 votes
Categories
Find more on Sensor Models 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!