Technical discussion about Matlab and issues related to Digital Signal Processing.
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!!!
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!!! >