![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1693456/image.png)
How to run selected matlab code?
7 views (last 30 days)
Show older comments
Hi,
How can I execute highlighted code?
I do not want to run code of a particular sector but the code that I just highilght. That is, particular lines
MatlabR2022a.
Best
0 Comments
Accepted Answer
Cris LaPierre
on 13 May 2024
Edited: Cris LaPierre
on 13 May 2024
Press F9 or right click on it and select Evaluate Selection
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1693456/image.png)
0 Comments
More Answers (0)
See Also
Categories
Find more on Get Started with MATLAB 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!