-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathrecommendations_fn.m
More file actions
executable file
·42 lines (23 loc) · 1.06 KB
/
recommendations_fn.m
File metadata and controls
executable file
·42 lines (23 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
function[N_students,txt,txt3,roll_and_CGPA,Roll_nos_GUI,Projnames_GUI] = ...
recommendations_fn(Roll_nos_GUI,Projnames_GUI,txt3,...
txt,N_students,roll_and_CGPA)
%Projnames_GUI = Projnames_GUI(cellfun(@(s)isempty(regexp(s,'Select a project')),Projnames_GUI));
%Roll_nos_GUI = Roll_nos_GUI(cellfun(@(s)isempty(regexp(s,'Select a roll number')),Roll_nos_GUI));
for i = 1 : length(Projnames_GUI)
if isequal(Projnames_GUI(i),{'Select a project'}) == 0
a = find(strcmpi(Projnames_GUI(i),txt3(:,1))==1);
proj_code_name = txt3(a,2);
txt3(a,2) = {'Assigned'};
txt = removingproj (proj_code_name,txt,N_students);
end
end
clear i
for i = 1: length(Roll_nos_GUI)
Roll_nos_GUI(find(strcmpi(Roll_nos_GUI(i),{'Select a roll number'}))) = [];
if isequal(Roll_nos_GUI(i),{'Select a roll number'}) == 0
k = getindex(str2double(Roll_nos_GUI(i)),roll_and_CGPA(:,1));
roll_and_CGPA(k,:) = [];
txt(k,:) = [];
N_students = N_students - 1;
end
end