Feeds
문제를 풀었습니다
Distance walked 1D
Suppose you go from position 7 to 10 to 6 to 4. Then you have walked 9 units of distance, since 7 to 10 is 3 units, 10 to 6 is 4...
3일 전
문제를 풀었습니다
Is My Wife Wrong?
Answer the question. (see also <http://www.mathworks.com/matlabcentral/cody/problems/149-is-my-wife-right Problem 149: Is my ...
3일 전
문제를 풀었습니다
Matlab Basics II - squares
Write a function that takes matrix A, and squares each element in the matrix example: A = [1 2 3] output = [1 4 9]
3일 전
문제를 풀었습니다
Matlab Basics - Rounding III
Write a script to round a large number to the nearest 10,000 e.g. x = 12,358,466,243 --> y = 12,358,470,000
3일 전
문제를 풀었습니다
Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2 3 3 3 4...
3일 전
문제를 풀었습니다
Find out sum of all elements of given Matrix
Find out sum of all elements of given Matrix A=[1 2 3;4 5 6 ;7 8 9]; Answer must be: 45 *If you like this problem, pl...
3일 전
문제를 풀었습니다
Find the hypotenuse
Given a and b (the two sides of a right-triangle), find c, the hypotenuse.
3일 전
문제를 풀었습니다
Transpose
Write a MATLAB script in order to convert a random length row vector (v) into a column vector.
3일 전
문제를 풀었습니다
Matlab Basics - Pick out parts of a vector
Consider x a vector of length >= 7 (there are at least 7 elements in the vector, write a script that extracts the 2nd element, a...
3일 전
문제를 풀었습니다
Area of a triangle
A triangle is given with base *'b'* ,vertical hight *'h'* . then find it's area.
3일 전
문제를 풀었습니다
Area of a Square
Inside a square is a circle with radius r. What is the area of the square?
3일 전
문제를 풀었습니다
Matlab Basics II - Minimum
Write a function that returns the minimum of each ROW of a matrix x example: x = [1 2 3; 4 5 6]; output [1;4];
3일 전
문제를 풀었습니다
Find the Nth Root of a Given Number
Find the Nth root of a given number x. Examples x = 4096 n = 4 y = 8 x = 625 n = 5 y = 3.6239
3일 전
문제를 풀었습니다
06 - Matrix Equations 3
Define the matrices _aMat_, _bMat_, and _cMat_: <<http://samle.dk/STTBDP/Assignment1_3a.png>> ( _aMat_ = 9x9 matrix full o...
3일 전
문제를 풀었습니다
04 - Scalar Equations 3
Define the variables a, b, and c: <<http://samle.dk/STTBDP/Assignment1_4-a.png>> <<http://samle.dk/STTBDP/Assignment1_4-b....
3일 전
문제를 풀었습니다
Is the input divisible by 3?
Return true if the input is divisible by 3 and false if not.
3일 전
문제를 풀었습니다
Count ones
Write a program to count number of ones (1s) in an integer variable input. For example: Input x=2200112231 output y=3 I...
3일 전
문제를 풀었습니다
Roots
Find out the roots of a given polynomial equation.Given are the coefficients of the equation.
3일 전
문제를 풀었습니다
Determine the mean of matrix
Determine the mean of matrix without using mean function Hint: use simple algorithm
3일 전
문제를 풀었습니다
Kinetic Energy
Given the mass m and velocity v of an object, determine its <http://en.wikipedia.org/wiki/Kinetic_energy kinetic energy>.
3일 전
문제를 풀었습니다
Create a Matrix of Zeros
Given an input x, create a square matrix y of zeros with x rows and x columns.
3일 전
문제를 풀었습니다
Insert zeros into vector
Insert zeros after each elements in the vector. Number of zeros is specified as the input parameter. For example: x = [1 2 3 ...
3일 전
문제를 풀었습니다
Balanced number
Given a positive integer find whether it is a balanced number. For a balanced number the sum of first half of digits is equal to...
3일 전
문제를 풀었습니다
Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...
3일 전
