Display what I have selected.

조회 수: 23 (최근 30일)
Nathan Formby
Nathan Formby 2019년 10월 8일
댓글: Rik 2019년 10월 8일
I am trying to get what I selected from menu's which form a column and a row to show what is where they both meet.
clear
clc
load ('MA2_data.mat');
dayIdx = menu('Please select a day',string(Days));
locIdx = menu('Please select a loaction',LocationID);
fprintf('On Day %d, at loacation %s, the ice thickness was %0.3f\n[m]',Days(dayIdx),LocationID(locIdx),Ice(dayIdx,locIdx))
  댓글 수: 1
Rik
Rik 2019년 10월 8일
It looks like this works, what is your question?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by