how two use winopen command with path assigned in a Variable?

winopen 'C:\My Folder'
the above works fine, but i have path saved in a variable MyPath and want to use winopen command with path but gives error that folder doesnot exist.
MyPath = 'C:\My Folder'
winopen MyPath

More Answers (0)

Categories

Find more on Environment and Settings in Help Center and File Exchange

Products

Release

R2019a

Asked:

on 13 Oct 2023

Answered:

on 13 Oct 2023

Community Treasure Hunt

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

Start Hunting!