How to run selected matlab code?

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

 Accepted Answer

Cris LaPierre
Cris LaPierre on 13 May 2024
Edited: Cris LaPierre on 13 May 2024
Press F9 or right click on it and select Evaluate Selection

More Answers (0)

Asked:

on 13 May 2024

Edited:

on 13 May 2024

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!