Girly_girl
Full Member level 2
Hello
I have a problem in matlab where i have first modulated the signal and now want to get back to the original square wave form..
I try to use if statements but its not working and it only gives one constant horizontal line.
I have attached the graphs..
What i want it to do is to >>
If we have 0 in figure 12 (M8 ), then the output (M9 ) should be 1, and if do not have 0, then the output should be 1.. hence producing a square waves..
if M8 == 0
M9 = xor(1,M8 )*;
else
M9 = 0*;
end;
I have a problem in matlab where i have first modulated the signal and now want to get back to the original square wave form..
I try to use if statements but its not working and it only gives one constant horizontal line.
I have attached the graphs..
What i want it to do is to >>
If we have 0 in figure 12 (M8 ), then the output (M9 ) should be 1, and if do not have 0, then the output should be 1.. hence producing a square waves..
if M8 == 0
M9 = xor(1,M8 )*;
else
M9 = 0*;
end;
Last edited: