Home Forums SYSTEM matlab co simulation Reply To: matlab co simulation

#33051
Profile Photo
love kumar
Participant

hi all… thanks for your suggestions.. what i have analysis the problem i mention was in code .. i resolved that problem .. but to interfece that code with matlab component i have to define phase of sine genrator in radian… is there any option .. the change is n=code is explaed with a example

matlab we take as
a= rand(1,1000);
x= -pi:0.01:pi;
sin(x)*a
getting error with this code

but

we have to take it as

a= rand(1,1000);
x= -0.0034:0.01:0.0034;
sin(x)*a

we have to set vale of x in sine generator… how cud we do it

Categories