MATLAB: Using embedded function in Simulink

graph

I have used Embedded matlab function in Simulink ,three have written code for a sinewave,when i use scope i do not get sine wave i just get many straight lines ,please help

Best Answer

Pat, that's what I was expecting, the size of y is [1 303], that means your output will be a vector of 303 elements which will be displayed in your scope. Why are 'nt you using a sine wave block ? what do you to get exactly?
Related Question