-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcondition2.m
More file actions
executable file
·22 lines (19 loc) · 1013 Bytes
/
condition2.m
File metadata and controls
executable file
·22 lines (19 loc) · 1013 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
function [Assigned_proj_roll_nos_fromCGPA,sorted_txt,stored_index,txt3]...
= condition2(index,sorted_txt,sorted_Roll_nos,N_students,total_choices,txt3)
delproj = @removingproj; % [sorted_txt] = removingproj(same_CGPA_project,sorted_txt,N_students)
assign = @assignment;
k = 2;
for j = 1: length(index)
choice(j) = sorted_txt(index(j),k);
same_CGPA_Roll_nos(j) = sorted_Roll_nos(index(j));
same_CGPA_project(j) = sorted_txt(index(j),2); % Lot of confusion, everytime name of the student
%is coming in the middle, better if we take out name column from
%txt matrix
end
for k = 1: 2
Assigned_proj_roll_nos(k,:) = string([same_CGPA_project(k) same_CGPA_Roll_nos(k)]);
sorted_txt = delproj(same_CGPA_project(k),sorted_txt,N_students);
stored_index = 0;
end
Assigned_proj_roll_nos_fromCGPA = Assigned_proj_roll_nos;
txt3 = assign(choice,total_choices,txt3);