2023 1 Exercises for Octave Matlab a If A is a matrix created by command A rand 10 10 | Assignment Collections
Computer Science 2023 Octave And Matlab
2023 1 Exercises for Octave Matlab a If A is a matrix created by command A rand 10 10 | Assignment Collections
1) Exercises for Octave / Matlab:
(a) If A is a matrix created by command A=rand(10,10);, what is a command to get the sub-matrix of elements whose both coordinates are odd?
(b) Write an expression for the sum of the integers from 1 to 100.
(c) Write an expression for the sum of the powers of 0.5 to the numbers from 1 to 10.
2) Download and decompress (stock prices: date, open, high, low, close, volume) (18MB) stckPrcs.tar.bz2
(a) in Octave, ‘load’ BDXA (in B/BDXA.us.txt and Octave needs to be in directory where BDXA.us.txt is):
BDXA=load(‘BDXA.us.txt’);
(b) at which data the BDXA had the highest price (need to use functions below for date as solution):
m = max(BDXA(:,2))
i = find(BDXA(:,2) == m)
date = BDXA(i, 1)
For the submission
1) send in the plain text the commands you used in part 1) (a,b,c) : there should be 3 lines.
2) send in the plain text the ‘date’ variable you found in part 2) b) : there should be one number.
We give our students 100% satisfaction with their assignments, which is one of the most important reasons students prefer us to other helpers. Our professional group and planners have more than ten years of rich experience. The only reason is that we have successfully helped more than 100000 students with their assignments on our inception days. Our expert group has more than 2200 professionals in different topics, and that is not all; we get more than 300 jobs every day more than 90% of the assignment get the conversion for payment.