How can I mark a point with an (x,y) coordinate on this plot. I have attached my code. A user enters an academic class 2A 2B 3A 3B,, etc and then a gpa. I want it to find the entered gpa and mark a point on it on the graph.
Here is my code:
clear;
close all;
clc;
prompt = {'Academic Class','GPA'};
dlgtitle = 'GPA Probability Calculator';
dims = [1 35];
definput = {'Exp. 1B','Exp. 4.0'};
answer = inputdlg(prompt,dlgtitle,dims,definput)
grades = readtable('2016grades.xlsx');
celldisp(answer)
mask = strcmp(grades{:,1}, answer{1});
retrieved_class = grades{mask, 2};
[p,x] = hist(retrieved_class); plot(x,p/sum(p));
Here's is my output if I enter 3B for my academic class.