Click here to Skip to main content
15,893,381 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
for example if i have : vin= 0.75 between(-taw/4)and (taw/4)
vin=-0.25 between(taw/4) and (3*taw/4)

how can i write this in matlab ? i need this in a code that i am writing but i am stuck at this !!

What I have tried:

*** i need ideas but as for now i can't think of a way to do it ***
Posted
Updated 25-Dec-16 20:18pm

1 solution

And you forbidden to use a search engine?
LMGTFY[^]
 
Share this answer
 
Comments
jena7 26-Dec-16 3:58am    
obviously i searched for hours and hours before i ask here but i didn't find what i was looking for !! if you don't want to help it is fine but don't try to act like you are smarter thsn me .
Kornfeld Eliyahu Peter 26-Dec-16 4:18am    
Obviously you were far too lazy to read any of the millions of findings you had in hours! I was of course fortunate to hit the answer with the first finding of the first search...
Oh... so it is not EXACT answer, but only describes the idea of square-wave in MATLAB, and you have to do the work from there... how pity...
jena7 27-Dec-16 16:12pm    
hi kornfeld , i asked a question where i basicly wanted a little help , i didn't ask you to help me ! i don't know you and i don't want to. so plz don't comment or reply to me cause simply i don't care chaw

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900