Display what I have selected.

24 vues (au cours des 30 derniers jours)
Nathan Formby
Nathan Formby le 8 Oct 2019
Commenté : Rik le 8 Oct 2019
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 commentaire
Rik
Rik le 8 Oct 2019
It looks like this works, what is your question?

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by