full width, half max
Show older comments
I am trying to get full width half max from a plot. I have attcahed the plot and codes. I found an error "Index exceeds the number of array elements. Index must not exceed 1". How can I solve it? Please help.
1 Comment
From the error message it is clear that x has only one element. From the code it is clear that you expect x to have at least as many elements as y1 has (which is evidently more than 1, given the error).
The first step to solving this problem would be for you to investigate why x doesn't have as many elements as you thought.
Accepted Answer
More Answers (0)
Categories
Find more on Specialized Power Systems in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!