Feeds
문제를 풀었습니다
Calculate the height of an object dropped from the sky
Assume that an object is dropped from 1000 meters above the surface of the earth at time t=0. The object is dropped such that t...
1년 초과 전
문제를 풀었습니다
Matlab Basics II - Create a vector with a repeated entry
Create a row vector of length n, filled with 4's, for example, if n = 3 output = [4 4 4] make sure to round UP when n is a...
1년 초과 전
문제를 풀었습니다
Find the index of n in magic(n)
If input n=5, then magic(n) is 17 24 1 8 15 23 5 7 14 16 4 6 13 20 22...
1년 초과 전
문제를 풀었습니다
Sum the squares of numbers from 1 to n
For a given value of n return the sum of square of numbers from 1 to n. Example For n = 2 then sum of squares = 5 (1^2 + ...
1년 초과 전
문제를 풀었습니다
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...
1년 초과 전
문제를 풀었습니다
Replace every 3rd element in a vector with 4
x is a vector of undetermined length You are to replace every 3rd element with the number 4, example: x = [11 23 34 43 2 3...
1년 초과 전
문제를 풀었습니다
Matlab Basics - Set unwanted parts of a vector to zero
Consider a vector x, of length >= 7, write a script to set elements 2, 5, and 6 to zero. Example x = [1 2 3 4 5 6 7] --> ...
1년 초과 전
문제를 풀었습니다
Test if two numbers have the same digits
Given two integers _x1_ and _x2_, return |true| if the numbers written with no leading zeros contain the same digits. That is, t...
1년 초과 전
문제를 풀었습니다
Find Out sum of principal diagonal element of given matrix
Find out sum of principal diagonal element of given matrix If A=[1 0 0; 0 1 0;0 0 1], then answer must be 3.
1년 초과 전
문제를 풀었습니다
Getting the absolute index from a matrix
This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to get the <http://www.ma...
1년 초과 전
문제를 풀었습니다
Add a row of zeros on top of a matrix
Given a matrix, insert a row of zeros as the top row.
1년 초과 전
문제를 풀었습니다
Create a cell array out of a struct
Create a cell array out of a (single) struct with the fieldname in the first column and the value in the second column: in: ...
1년 초과 전
문제를 풀었습니다
Průměr z výběrového souboru
Napište funkci, která vrátí průměr z hodnot vektoru data. Např data = [1, 2, 3, 4, 5, 6, 7, 8, 9] je prumer = 5.
1년 초과 전
문제를 풀었습니다
Column Removal (★★★)
(copy of prob 7) Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2...
1년 초과 전
문제를 풀었습니다
Remove entire row and column in the matrix containing the input values
Remove the entire row and column from the matrix containing specific values. The specified value can be a scalar or a vector. Fo...
1년 초과 전
문제를 풀었습니다
remove every row&col for every nan
for a given matrix, remove the row and column of every nan. Example x=[1 2 NaN 4 5 6 7 8 ...
1년 초과 전
문제를 풀었습니다
Remove all the columns contains only zero
Remove the column from the matrix which has only zeros . Refer the Example below a= 1 0 3 0 23 0 56 0 1 ...
1년 초과 전
문제를 풀었습니다
Find Rows with Specift Properities
Delete rows with specific properites as following: Find rows that have a negative value in any element of the row and delete it...
1년 초과 전
문제를 풀었습니다
Remove a specific column with min value
Remove the column that contain the min value in the matrix?
1년 초과 전
문제를 풀었습니다
Remove a specific column with max value
Remove the column that contain the max value in the matrix?
1년 초과 전
문제를 풀었습니다
Remove a specific row with min value
Remove the row that contain the min value in the matrix?
1년 초과 전
문제를 풀었습니다
Remove a specific row with max value
Remove the row that contain the max value in the matrix?
1년 초과 전
문제를 풀었습니다
Cannon Ball
Given g (acceleration due to gravity) and desired altitude x, find the minimum ground velocity of a cannon ball to reach x.
1년 초과 전
문제를 풀었습니다
Find the logic
There exists one logic in between input and output. Find it (easy math). Example 1: x=13 then y=339; Example 2: x=26...
1년 초과 전
문제를 풀었습니다
Wrapping the Tower of Pisa
The famous artist Christo Vladimirov Javacheff, who likes pizza, wants to wrap the well-known Italian tower in paper. It is a ci...
1년 초과 전






