[2019] ENG 1002 Programming (Matlab and C) - Semester 1 - Primary Examination - Q8 Data Structures: Arrays, Matrices and Strings
This question has been solved
Question 8
Data Structures - arrays, matrices and strings
CourseNana.COM
(a) Write a MATLAB script that will copy all of the negative values in a matrix, M, to a new vector, N. [7 marks]
CourseNana.COM
(b) Write a MATLAB script that reads in two strings from the user and compares them, printing ’same’ if they are the same or the indexes of the characters which differ if they are different. For example, if the user typed in ’car’ and ’cat’, the script would print ’the words differ in characters: 3’. For this question, you can assume the two strings entered are of the same length. [6 marks]
CourseNana.COM
CourseNana.COM
[Total for Question 8: 13 marks]
CourseNana.COM
The University of Adelaide代写,ENG 1002代写,Programming (Matlab and C)代写,C代写,Matlab代写,The University of Adelaide代编,ENG 1002代编,Programming (Matlab and C)代编,C代编,Matlab代编,The University of Adelaide代考,ENG 1002代考,Programming (Matlab and C)代考,C代考,Matlab代考,The University of Adelaidehelp,ENG 1002help,Programming (Matlab and C)help,Chelp,Matlabhelp,The University of Adelaide作业代写,ENG 1002作业代写,Programming (Matlab and C)作业代写,C作业代写,Matlab作业代写,The University of Adelaide编程代写,ENG 1002编程代写,Programming (Matlab and C)编程代写,C编程代写,Matlab编程代写,The University of Adelaideprogramming help,ENG 1002programming help,Programming (Matlab and C)programming help,Cprogramming help,Matlabprogramming help,The University of Adelaideassignment help,ENG 1002assignment help,Programming (Matlab and C)assignment help,Cassignment help,Matlabassignment help,The University of Adelaidesolution,ENG 1002solution,Programming (Matlab and C)solution,Csolution,Matlabsolution,