Feeds
문제를 풀었습니다
Sum of series VII
What is the sum of the following sequence: Σ(km^k)/(k+m)! for k=1...n for different n and m?
3년 초과 전
문제를 풀었습니다
Sum of series VI
What is the sum of the following sequence: Σk⋅k! for k=1...n for different n?
3년 초과 전
문제를 풀었습니다
Sum of series IV
What is the sum of the following sequence: Σ(-1)^(k+1) (2k-1)^2 for k=1...n for different n?
3년 초과 전
문제를 풀었습니다
Sum of series III
What is the sum of the following sequence: Σ(2k-1)^3 for k=1...n for different n?
3년 초과 전
문제를 풀었습니다
Sum of series I
What is the sum of the following sequence: Σ(2k-1) for k=1...n for different n?
3년 초과 전
문제를 풀었습니다
Sum of series II
What is the sum of the following sequence: Σ(2k-1)^2 for k=1...n for different n?
3년 초과 전
문제를 풀었습니다
Sum of series V
What is the sum of the following sequence: Σk(k+1) for k=1...n for different n?
3년 초과 전
문제를 풀었습니다
Output any real number that is neither positive nor negative
Output any real number that is neither positive nor negative
3년 초과 전
문제를 풀었습니다
Compute a dot product of two vectors x and y
x and y are input vectors, d is a number and contains their dot product
3년 초과 전
문제를 풀었습니다
Solve a System of Linear Equations
*Example*: If a system of linear equations in _x₁_ and _x₂_ is: 2 _x₁_ + _x₂_ = 2 _x₁...
3년 초과 전
문제를 풀었습니다
Indexed Probability Table
This question was inspired by a Stack Overflow question forwarded to me by Matt Simoneau. Given a vector x, make an indexed pro...
3년 초과 전
문제를 풀었습니다
Rescale Scores
Each column (except last) of matrix |X| contains students' scores in a course assignment or a test. The last column has a weight...
3년 초과 전
문제를 풀었습니다
Trimming Spaces
Given a string, remove all leading and trailing spaces (where space is defined as ASCII 32). Input a = ' singular value deco...
3년 초과 전
문제를 풀었습니다
Project Euler: Problem 1, Multiples of 3 and 5
If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23...
3년 초과 전
문제를 풀었습니다
Find the two most distant points
Given a collection of points, return the indices of the rows that contain the two points most distant from one another. The inpu...
3년 초과 전
문제를 풀었습니다
Replace Nonzero Numbers with 1
Given the matrix x, return the matrix y with non zero elements replaced with 1. Example: Input x = [ 1 2 0 0 0 ...
3년 초과 전
문제를 풀었습니다
subtract central cross
Given an n-by-n square matrix, where n is an odd number, return the matrix without the central row and the central column.
3년 초과 전
문제를 풀었습니다
MATLAB Basic: rounding
Do rounding near to zero Example: -8.8, answer -8 +8.1 answer 8
3년 초과 전
문제를 풀었습니다
Find the sum of the elements in the "second" diagonal
Find the sum of the elements in the diagonal that starts at the top-right corner and ends at the bottom-left corner.
3년 초과 전
문제를 풀었습니다
Create sequnce 1 4 9 16 25.........
Create sequnce 1 4 9 16 25......... upto entered input value using matlab scripting commands. Let y be output and x be input
3년 초과 전
문제를 풀었습니다
Find the largest value in the 3D matrix
Given a 3D matrix A, find the largest value. Example >> A = 1:9; >> A = reshape(A,[3 1 3]); >> islargest(A) a...
3년 초과 전
문제를 풀었습니다
Back to basics 21 - Matrix replicating
Covering some basic topics I haven't seen elsewhere on Cody. Given an input matrix, generate an output matrix that consists o...
3년 초과 전
문제를 풀었습니다
Back to basics 6 - Column Vector
Covering some basic topics I haven't seen elsewhere on Cody. Given an input vector, output true or false whether it is a colu...
3년 초과 전
문제를 풀었습니다
Add two numbers
Calculate the sum of two numbers. Example input = [2 3] output = 5
3년 초과 전
문제를 풀었습니다
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...
3년 초과 전
문제를 풀었습니다
07 - Common functions and indexing 2
Define _eMat_: <<http://samle.dk/STTBDP/Assignment1_3e.png>> Calculate eMean as the mean across the rows of _eMat_. The an...
3년 초과 전
문제를 풀었습니다
07 - Common functions and indexing 5
Create the vector _lin_: <<http://samle.dk/STTBDP/Assignment1_7e.png>> (the integers from 1 to 20) Make every other val...
3년 초과 전