implement a program over a range of variable to get outputs

Status
Not open for further replies.

shegmite

Member level 1
Joined
Apr 8, 2012
Messages
33
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,496
Please can anybody help with codes in matlab that I can use to make a program get outputs over a range of a variable say frequency from say 1 MHz to 1000 MHz at 10MHz at a single click than me repeating it manually for each interval to be computed.
Thanks for your help
 

In order to do that you need to define a row vector that contains the frequency component from 1 MHz to 1000 MHz.You can define the steps as you wish but increasing the resolution means more time to process.
Code:
%defining the frequency vector 
f=[1*10^6:10*10^6:1000*10^6];           %Note that the default step size is 1 and the step size in this vector f is 10*10^6

Hope this helps.
 
Last edited:

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…