Thanks for everyone tried to help me. I want to clarify it more I want to add this image
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/178685/image.png)
and I want when I run the program some results(results 1, 2 and 3 shown in the image like the second image
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/178686/image.png)
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!