Custom Triangle with up/down slopes , help
Afficher commentaires plus anciens
Hello i want to make a coustom triangle without using the existing function of matlab, which will start lets say at 300 and will end at 518 , reaching his peak at 408 and max amplitude 1. Note that i want each slope (up-slope and down-slope) should be vectors of 256 elements.So my first thought is to compute a vector va of 256 elements, ok i done it with linspace but then i don't know how to continue. Note that it should be 2 vectors one for up-slope(256 elements) and the other down-slope(256 elements) and it should look like this

any advice appreciated and thanks in advance.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Resizing and Reshaping Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!