문제를 풀었습니다


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....

5년 초과 전

문제를 풀었습니다


Maximum value in a matrix
Find the maximum value in the given matrix. For example, if A = [1 2 3; 4 7 8; 0 9 1]; then the answer is 9.

5년 초과 전

문제를 풀었습니다


Min of a Matrix
Return the minimum value in the given matrix.

5년 초과 전

문제를 풀었습니다


Swap two numbers
Example Input: a = 10 b = 20 Output a = 20 b = 10

5년 초과 전

문제를 풀었습니다


Matlab Basics - Absolute Value
Write a script that returns the absolute value of the elements in x e.g. x = [-1 -2 -3 -4] --> y = [1 2 3 4]

5년 초과 전

문제를 풀었습니다


Matlab Basics II - Free Fall
An object freely falling from rest under gravity covers a distance x given by: x = 1/2 gt^2 write a function that calculat...

5년 초과 전

문제를 풀었습니다


Specific Element Count
Given a vector _v_ and a element _e_, return the number of occurrences of _e_ in _v_. Note: NaNs are equal and there may be n...

5년 초과 전

문제를 풀었습니다


Matlab Basics II - Count rows in a matrix
Write a function that returns that number of rows in a vector or matrix x example: x = [1; 2; 3] output = 3

5년 초과 전

문제를 풀었습니다


Calculate roots of polynomial given as vector array.
Calculate roots of polynomial given as vector array. Example x=[1 2 0 5 0 3] result=[-2.7267 ; ...

5년 초과 전

문제를 풀었습니다


Matrix Generation from Vector Multiplication
Output the matrix generated from multiplying two vectors together

5년 초과 전

문제를 풀었습니다


Check if inputted variable is a string or a number
Check if a inputted variable is a number or a string, given a string input (i.e. '1' is 1 and thus a number, 'a' is a string).

5년 초과 전

문제를 풀었습니다


determine if
determine if the elements of a matrix is a nan and return true

5년 초과 전

문제를 풀었습니다


Matrix Max Finder
Output the maximum value in a matrix

5년 초과 전

문제를 풀었습니다


Get 1-4-3-4-4
Get the value of the indices in the title and assign it to an array

5년 초과 전

문제를 풀었습니다


Pointwise multiplication of vectors.
Pointwise multiplication of vectors x and y. Example x= [1 3 5 7 9 11 13 15 17 19] y=[ 1 4...

5년 초과 전

문제를 풀었습니다


Matlab Basics - Convert a row vector to a column vector
Write a script to convert a row (e.g. x = [1 2 3]) to a column (e.g. y = [1;2;3]), your script should be able to do this for any...

5년 초과 전

문제를 풀었습니다


Matlab Basics II - Extract last 3 elements of a vector
Let x be a vector of unknown length, we are always interested in the last 3 numbers in the vector, write a function that gives t...

5년 초과 전

문제를 풀었습니다


Matlab Basics - Assigning Variables
Assign different types of data to variables: integer, double, and strings Example: A is a double, for example 2.34 B is a...

5년 초과 전

문제를 풀었습니다


Removing vibration!
There are [y] that vary with [x] but y including small useless vibration. x=1:10 y=[1.71 2.03 3.28 4.05 5.10 6.82 7.69 8.3...

5년 초과 전

문제를 풀었습니다


Find NaNs in the matrix
Return 1s wherever there is a NaN in the input matrix

5년 초과 전

문제를 풀었습니다


Calculate square and cube of number
Calculate square and cube of number x

5년 초과 전

문제를 풀었습니다


Double the length of the vector

5년 초과 전

문제를 풀었습니다


Find Euclidean norm of given vector u.
Find Euclidean norm of given vector u. https://en.wikipedia.org/wiki/Euclidean_distance Example x=[1 1] result=sqrt(1^2+1^2...

5년 초과 전

문제를 풀었습니다


Electric Flux
Calculate the flux passing through a surface. E is electric field, A is area.

5년 초과 전

문제를 풀었습니다


subtraction of two nos
given a and b, subtract and give the answer

5년 초과 전

문제를 풀었습니다


Radians to Degrees
Convert radians to degrees.

5년 초과 전

문제를 풀었습니다


Sum the rows
Sum the rows of the given matrix. Example x = [ 1 2 3 4 ] y = [ 3 7 ]

5년 초과 전

문제를 풀었습니다


Degrees to Radian
Convert degrees to radians

5년 초과 전

문제를 풀었습니다


Is it prime?
Given a number, check whether it is prime or not. If prime output is true, otherwise false.

5년 초과 전

문제를 풀었습니다


Matlab Basics II - Determine if an array has a 3rd dimension
For an array A, determine whether it has 3 dimensions, return 0 if x is only 2D, and 1 if x is 3D

5년 초과 전

더 보기