Sign in

username:

password:



Not a member?

Search matlab



Search tips

Subscribe to matlab



matlab by Keywords

Atanh | Autocorrelation | Bandpass Filter | C++ | Conv | Database | Deconv | Excel | FFT | Filter | Filtering | FIR | Fourier Transfrom | FSK | Gaussian Noise | Haykin | IFFT | Image | Java | LFSR | LMS | LPC | MEX | OFDM | QPSK | Radix | Random | Sampling | Segmentation | Simulink | Visual Basic | Waveform | Wavelet

Ads

Discussion Groups

Discussion Groups | Matlab DSP | create a sine wave where frequency is an external parameter

Technical discussion about Matlab and issues related to Digital Signal Processing.

  

Post a new Thread

create a sine wave where frequency is an external parameter - Carlos Silva - May 27 6:30:45 2008



hi there

i would like to know if it's possible to generate a sine wave where the
frequency value is not inserted on block parameters, but
inserted as a output of my previously calcule.
I have a result of a multiplication that is the frequency that i wanted and
i want generate a sine wave with that value that is always being
updated. how can i do it?

thank you!!!



(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )

Re: create a sine wave where frequency is an external parameter - Pilar Gonzalez-Blanco - May 28 15:30:09 2008

Hi,

you can create this inserting a function in another file:

e.g. let's call 'f' to the frequency that is the output of the 
previous calcule.
In the same matlab file you put:

x=create_sine(f);

In another matlab file called create_sine.m you write:

function x=create_sine(f)

x=sin(f) % Or whatever time or scale parameters you want to write
That's all!

Regards,

Pilar
--- In m...@yahoogroups.com, "Carlos Silva" <carloseesilva@...> 
wrote:
>
> hi there
> 
> i would like to know if it's possible to generate a sine wave 
where the
> frequency value is not inserted on block parameters, but
> inserted as a output of my previously calcule.
> I have a result of a multiplication that is the frequency that i 
wanted and
> i want generate a sine wave with that value that is always being
> updated. how can i do it?
> 
> thank you!!!
>



(You need to be a member of matlab -- send a blank email to matlab-subscribe@yahoogroups.com )