matlab code for ramp
Mostrar comentarios más antiguos

hi..how to get the below mentioned matlab output,using ramp and some other functions?could u please post the code?
Respuestas (1)
Image Analyst
el 5 de Nov. de 2015
Try this
x = linspace(0,15,300)
y = [linspace(0,5,100), 5*ones(1,100), linspace(5, 0, 100)]
2 comentarios
saranya s
el 6 de Nov. de 2015
Image Analyst
el 6 de Nov. de 2015
What do you think linspace() and ones() are? They are functions. I don't think disallowing brackets and equal signs is reasonable. Why do you have this requirement anyway? I mean, you could also do it with the colon operator, but why would that also be disallowed? MATLAB certainly uses functions but it also requires other things like certain mathematical operators and symbols like = ] ( ) , & && | { } and ;
Sorry, but I'm afraid I can't help you.
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!