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...
5年以上 前
解決済み
Sum of the Multiplication of Vectors
Given the vectors x and y as input, multiply the vectors and return the summation of its elements.
Example:
x = [1 2 ...
5年以上 前
解決済み
06 - Matrix Equations 1
Define the vectors _aVec_ and _bVec_ and the matrix _aMat_:
<<http://samle.dk/STTBDP/Assignment1_2a.png>>
and
<<http:/...
Times 3 problem
When you enter the number, it should return the number multiplied by 3
5年以上 前
解決済み
Create matrix of replicated elements
Given an input element x, and the dimensions, (m, n) return a matrix of size m x n filled with element x.
Example:
Input: ...
5年以上 前
解決済み
06 - Matrix Equations 2
Define the vectors _aVec_ and _bVec_:
<<http://samle.dk/STTBDP/Assignment1_2a.png>>
and
<<http://samle.dk/STTBDP/Assig...
5年以上 前
解決済み
vectorization in N
For a given integer n (n>1), compute the sum f (i) (1 <= i <= n) where f (i) = 1 if n is odd and 2 otherwise.
5年以上 前
解決済み
Average of square wave
given positive and negative peak , calculate dc level, 50% duty cycle
5年以上 前
解決済み
Create incrementing array
Given a and b generate an output matrix as shown in following examples:
a=2
b=5
output=[2 20 200 2000 20000]
a=4
b...
5年以上 前
解決済み
Area of a disk
Find the area of a disk or circle.
x= radius of the disk.
5年以上 前
解決済み
Square Diagonal
If n is the given number, then make a diagonal matrix of size 2*2 with the square of that number.
5年以上 前
解決済み
Beginner's Problem - Squaring
Try out this test problem first.
Given the variable x as your input, square it by two and put the result in y.
Examples:
...