필터 지우기
필터 지우기

Why I can't plot x = years , y = GDP

조회 수: 1 (최근 30일)
Ghazi
Ghazi 2024년 6월 11일
댓글: Ghazi 2024년 6월 12일

채택된 답변

Walter Roberson
Walter Roberson 2024년 6월 11일
GDP.("YEARS")
retrieves the field Years from the GDP object, and displays the result (because you have no semi-colon on the line)
x=("YEARS")
assigns the string "YEARS" to x. This has nothing to do with GDP.("YEARS")
Perhaps you want
x = GDP.("YEARS");
y = GDP.("GDP");
plot(x, y)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

태그

제품


릴리스

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by