Highlights
Task:
Pass Borderline Task 1 Topics:
• Creating scalar and array variables
• Mathematical operations with scalar and array
• Getting help Resources:
• Read week-1 lecture note
• Practice the examples in the note before attempting this task Recommended completion:
• Complete in week 1 Solve the problems from 1 to 4 in the MATLAB command window. Show the commands and results for the problems.
1. Scalar variable. Create the following variables 1) a =16 2) b = 2.4×1025 3) c = 3 + 6i, where i is the imaginary number.
2. Scalar equations. Using the variables created in 1 to calculate x, y, z and w. 1) ???????? = 2 1+????????(−(????????−10)/5) , where e is Euler’s number (use exp) 2) ???????? = (√???????? + √???????? 3 )????????, recall that h 1/h b b = (use sqrt, pi, ^) 3) ???????? = ????????????????????????( ????????????????( ????????)) + ????????????????????????2 ? ???????? 5 ?, where Re indicates the real part of the complex number in brackets (use real, sin, tan) 4) 2.5 w a = − ln | 1202 |, where ln is the natural logarithm (use abs, log).
3. Vector variable. Create the following variables 1) Row vector: ???????????????????????????????? = [17 3.14 7 23] 2) Create a column vector bVec that has the elements: 2.51, 5, 28, and 170. 3) ???????????????????????????????? = [2 1.5 ? 0 − 0.5], all the numbers from 2 to -0.5 in increments of -0.5 (you must use the colon operator to define this variable)
4) Column vector: ???????????????????????????????? = ?100.01 ln(49) 975 √???????? ? ???????? , where a is the scalar variable created in 1, and T indicates transpose (a column vector can be created by the transpose of a row vector using the transpose operator ‘).
5) eVec = Hello Swinburne!, eVec is a string, which is a vector of characters.
4. Vector equations. Using the variables created in Problem 3 to solve the equations below element-wise and show the results (use the element-wise operators: .* , ./ , .^). The element-wise operation can be verified element-by-element. For example, in part 1), the first element of xVec is just the function evaluated at the value of the first element of ENG10004 Digital and Data Systems – Portfolio Tasks Description Page 5 of 34 cVec, that is, 2 1 /2.5 1 1 2 cVec xVec e π − = , and similarly for all the other elements, so that xVec and cVec have the same size. 1) 2 1 /2.5 2 cVec xVec e π − = 2) 2 2 ( ) T yVec aVec bVec = + , aVecT indicates the transpose of aVec.
3) 10 zVec dVec = log (1/ ) , remember log10 is the log base 10, so use log10. 5. Help and documentation 1) Type and run the following fprintf commands in the command window, and show their outputs, respectively.
2) Compare the outputs and explain the differences of the fprintf commands above. You may get help on the MATLAB function fprintf by (a) Typing >> help fprintf command or >> doc fprintf command in the command window, or (b) Using the Help Browser. Value = 123.4567e2; fprintf('Value = %e\n', Value); fprintf('Value = %f\n', Value); fprintf('Value = %g\n', Value); fprintf('Value = %12.4f\n', Value);
The above IT Assignment has been solved by our IT Assignment Experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our experts are well trained to follow all marking rubrics & referencing style.
Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire considered worthy of the highest distinction.
© Copyright 2026 My Uni Papers – Student Hustle Made Hassle Free. All rights reserved.