Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How to Use?: New "Name=Value" Syntax for 2021a

조회 수: 1 (최근 30일)
Nate Fulbright
Nate Fulbright 2020년 12월 29일
마감: Walter Roberson 2020년 12월 29일
The release notes for 2021a specify a new language/programming feature called "Name=Value" syntax. The description is:
"Name=Value Syntax: Use name=value syntax for passing name-value arguments"
I'm curious how exactly this will work. For example, would a current command like:
plot(XData,YData,'LineStyle','-','MarkerSize',5)
now be able to be written as:
plot(XData,YData,'LineStyle'='-','MarkerSize'=5)
This is mostly a question out of curiousity. I think the feature could make deciphering long name-value pair lists a little easier.

답변 (1개)

Ameer Hamza
Ameer Hamza 2020년 12월 29일
I don't have access to R2021a, but I guess it is supposed to be something like this
plot(XData,YData,'LineStyle=-','MarkerSize=5')

이 질문은 마감되었습니다.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by