Feeds
문제를 풀었습니다
Current through resistor
Three resistors (R2, R3, R4) are connected in parallel as shown in the figure. If this combination is connected in series with ...
대략 16시간 전
문제를 풀었습니다
Calculate Parallel Resistance
Three resistors connected in parallel have resistances R1, R 2, and R 3, respectively. Return the total resistance R total of ...
대략 16시간 전
문제를 풀었습니다
Resistance of a light bulb
The current through two identical light bulbs connected in series is C Amperes. The total voltage across both bulbs is V Volts....
대략 16시간 전
문제를 풀었습니다
Simple Decoder Ring
The stereotypical _decoder ring_ is remembered as a cereal box prize from the 1950s. Kids learned about cryptography by startin...
대략 16시간 전
문제를 풀었습니다
Is the paranthesis sequence balanced ?
Quantum mechanics and computer science are interested in bra-kets. Today however you, the player, will have to write a function ...
대략 16시간 전
문제를 풀었습니다
Alternately upper-lower case
Modify the string to alternate between upper and lower case. For example, s='achyuta' output='AcHyUtA' Update - Test case...
대략 16시간 전
문제를 풀었습니다
Eliminate Polysyllabics: Long live short words!
Given a string s1, return s2 in which all the words with more than one syllable have been removed. To make things simple, we ...
대략 16시간 전
문제를 풀었습니다
Toeplitz Matrix
For a given square matrix of order n-by-n check whether this is a Toeplitz matrix or not. Return true if it is.
2일 전
문제를 풀었습니다
arithmetic progression
I've written a program to generate the first few terms of <https://en.wikipedia.org/wiki/Arithmetic_progression arithmetic progr...
2일 전
문제를 풀었습니다
Generate Square Wave
Generate a square wave of desired length, number of complete cycles and duty cycle. Here, duty cycle is defined as the fraction ...
2일 전
문제를 풀었습니다
Approximation of Pi (vector inputs)
Pi (divided by 4) can be approximated by the following infinite series: pi/4 = 1 - 1/3 + 1/5 - 1/7 + ... For a given numbe...
2일 전
문제를 풀었습니다
Sum of series VI
What is the sum of the following sequence: Σk⋅k! for k=1...n for different n?
2일 전
문제를 풀었습니다
Sum of series V
What is the sum of the following sequence: Σk(k+1) for k=1...n for different n?
2일 전
문제를 풀었습니다
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?
2일 전
문제를 풀었습니다
Sum of series III
What is the sum of the following sequence: Σ(2k-1)^3 for k=1...n for different n?
2일 전
문제를 풀었습니다
Sum of series II
What is the sum of the following sequence: Σ(2k-1)^2 for k=1...n for different n?
2일 전
문제를 풀었습니다
Approximation of Pi
Pi (divided by 4) can be approximated by the following infinite series: pi/4 = 1 - 1/3 + 1/5 - 1/7 + ... For a given number of...
2일 전
문제를 풀었습니다
Sum of series I
What is the sum of the following sequence: Σ(2k-1) for k=1...n for different n?
4일 전
문제를 풀었습니다
Finding peaks
Find the peak values in the signal. The peak value is defined as the local maxima. For example, x= [1 12 3 2 7 0 3 1 19 7]; ...
4일 전
문제를 풀었습니다
Max index of 3D array
Given a three dimensional array M(m,n,p) write a code that finds the three coordinates x,y,z of the Maximum value. Example ...
4일 전
문제를 풀었습니다
Determine the number of odd integers in a vector
Determine the number of unique odd integers in a vector. Examples: Input x = [2 5 8 3 7 1]; Output y = 4; Inp...
4일 전
문제를 풀었습니다
Decimation
When dealing to the Roman Army, the term decimate meant that the entire unit would be broken up into groups of ten soldiers, and...
4일 전
문제를 풀었습니다
Change the sign of even index entries of the reversed vector
change the signs of the even index entries of the reversed vector example 1 vec = [4 -1 -2 9] ans = [9 2 -1 -4] example2...
4일 전
문제를 풀었습니다
Create a vector whose elements depend on the previous element
The idea is to create a vector A whose elements depend on the previous element : *A(i+1) = 2*A(i)+1* *2 Inputs*: - A : The...
4일 전
문제를 풀었습니다
Implement a bubble sort technique and output the number of swaps required
A bubble sort technique compares adjacent items and swaps them if they are in the wrong order. This is done recursively until al...
4일 전
문제를 풀었습니다
Create an n-by-n null matrix and fill with ones certain positions
The positions will be indicated by a z-by-2 matrix. Each row in this z-by-2 matrix will have the row and column in which a 1 has...
4일 전
문제를 풀었습니다
Unique values without using UNIQUE function
You must return unique values in a vector in *stable* mode without using the unique function. About stable order flag: ...
4일 전
문제를 풀었습니다
Decimation - Optimized for speed
This problem is similar to http://www.mathworks.com/matlabcentral/cody/problems/1092-decimation, only this time the score will b...
4일 전
문제를 풀었습니다
Find nth maximum
Find nth maximum in a vector of integer numbers. Return NaN if no such number exists. x = [2 6 4 9 -10 3 1 5 -10]; So ...
4일 전
문제를 풀었습니다
Create an index-powered vector
Given a input vector x, return y as index-powered vector as shown below. Example x = [2 3 6 9] then y should be [...
4일 전



