Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top