07 - Common functions and indexing 1
Define _cMat_:
<<http://samle.dk/STTBDP/Assignment1_3c.png>>
( _cMat_ = 10x10 matrix where the numbers from 1 to 100 runs ...
8ヶ月 前
解決済み
06 - Matrix Equations 1
Define the vectors _aVec_ and _bVec_ and the matrix _aMat_:
<<http://samle.dk/STTBDP/Assignment1_2a.png>>
and
<<http:/...
Back to basics 9 - Indexed References
Covering some basic topics I haven't seen elsewhere on Cody.
Given an input matrix and row and column, output the index of th...
8ヶ月 前
解決済み
Replace multiples of 5 with NaN
It is required to replace all values in a vector that are multiples of 5 with NaN.
Example:
input: x = [1 2 5 12 10 7]
...
8ヶ月 前
解決済み
07 - Common functions and indexing 6
Create a variable _m_ as a magic square with the size 6 x 6
Magic squares are defined as square matrices, where the sum of a...
8ヶ月 前
解決済み
Back to basics 14 - Keywords
Covering some basic topics I haven't seen elsewhere on Cody.
Return a cell array of all MATLAB keywords
Counting down
Create a vector that counts from 450 to 200 in increments of 10.
8ヶ月 前
解決済み
Deleting an element in a matrix
For vector Grades=[98 56 78 34 100 88 87], delete the number 78 to get the following matrix
Grades=[98 56 34 100 88 87]
**re...
8ヶ月 前
解決済み
05 - Vector Equations 1
Define the vector _cVec_:
<<http://samle.dk/STTBDP/Assignment1_2c.png>>
(all the numbers from 5 to -5 in increments of -0....
8ヶ月 前
解決済み
Convert Fahrenheit to Celsius
Calculate the Celsius temperature C given the Fahrenheit temperature F.
Examples:
Input F = 90
Output C is 32.22
I...
Matlab Basics - Rounding I
Write a script to round x DOWN to the next lowest integer:
e.g. x = 2.3 --> x = 2 also: x = 2.7 --> x = 2
8ヶ月 前
解決済み
Create a square matrix of multiples
Given an input, N, output a matrix N x N with each row containing multiples of the first element of each row.
This also applies...
8ヶ月 前
解決済み
pressure to dB?
given x ratio of pressure, find corresponding y dB