I'm trying to creat a multiplication table for the following
f=[5:.332:55]; omegahz=(2*pi)*f; amp=0:0.01:1.5;
My attempt was
f=[5:.332:55];omegahz=(2*pi)*f;amp=0:0.01:1.5;for n=1:151 omegan =omegahz(1,n) ampn= amp(1,n)g(ampn,omegan)=ampn*omegan end
so I think I have to call on the location not the value so I tried this
f=[5:.332:55];omegahz=(2*pi)*f;amp=0:0.01:1.5;for n=1:151 omegan =omegahz ampn= ampg(ampn,omegan)=ampn.*omegan end
and get this
??? Subscript indices must either be real positive integers or logicals.Error in ==> Untitled3 at 10g(ampn,omegan)=ampn.*omegan
I'm Not sure how to proceed on this one, Your help Is appreciated. Thanks
Best Answer