Display what I have selected.

1 次查看(过去 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))

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Financial Toolbox 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by