Gelöst


Complex number
For complex number c=a+bi, write code that will add a and b together.

fast 12 Jahre vor

Gelöst


Squaring Matrix
Square the following matrix using matlab % A = 1 2 3 4 5 6 7 8 So new matrix should display...

fast 12 Jahre vor

Gelöst


Vectors counting by 2
Create a vector numbers from 7 to 15 in increments of 2

fast 12 Jahre vor

Gelöst


length of a vector
Find twice the length of a given vector.

fast 12 Jahre vor

Gelöst


Flipping
Write code that can reverse the vector without using any sort of loop. Example Given the input vector A = [ 1 2 3 4 5...

fast 12 Jahre vor

Gelöst


Remainder
Make 'y' equal to the remainder of 27 divided by 5. When x=27 and t=5

fast 12 Jahre vor

Gelöst


Rounding
Round 10.67 and make 'y' equal to that number.

fast 12 Jahre vor

Gelöst


Must be in the front row...
You are given a matrix followed by a single number. Your object is to write a script that will shift the matrix around so that ...

fast 12 Jahre vor

Problem


Must be in the front row...
You are given a matrix followed by a single number. Your object is to write a script that will shift the matrix around so that ...

fast 12 Jahre vor | 4 | 161 Lösungsvorschläge

Gelöst


birthday on same day of week
Say, Mr. X's birthday is on 20th July, 2014. It was Sunday. Determine the closest year when his birthday will again be on Sunday...

fast 12 Jahre vor

Gelöst


Product of elements in row
Product of matrix such that a=[3 3 1] b=9

fast 12 Jahre vor

Gelöst


Power Times (of the day)
Many times throughout the day can represent mathematical equations. In this problem, we focus on times that represent powers. Fo...

fast 12 Jahre vor

Gelöst


Find the relation
Take x as input and y as output. If x=1 y=3 If x=2 y=14 If x=3 y=39 If x=4 y=84 Based on this relation find giv...

fast 12 Jahre vor

Gelöst


Latest Question On Cody
Get the problem number of the latest submitted Problem on Cody. Copying the test suite code might not help.

fast 12 Jahre vor

Gelöst


Square Diagonal
If n is the given number, then make a diagonal matrix of size 2*2 with the square of that number.

fast 12 Jahre vor

Gelöst


Let's see how peculiar we can get
The task is to multiply two numbers. But do it in the most peculiar possible way.

fast 12 Jahre vor

Gelöst


Temperature Conversion Utility
There are a few problems on Cody regarding temperature conversion (C to K, C to F, F to C), but none include Rankine. Furthermor...

fast 12 Jahre vor

Gelöst


Kepler's Equation
Solve <http://en.wikipedia.org/wiki/Kepler's_equation Kepler's Equation>. Note that the solution is rounded down to 5 decima...

fast 12 Jahre vor

Gelöst


Integer to boolean
Write a general function that will create the following conversation; Input is a column vector with integers Output is a b...

fast 12 Jahre vor

Gelöst


The Number of Ways
Find all the possible ways to reach the end of a matrix. So given [a b c d] the possible ways [a c],[a d],[b c],[b ...

fast 12 Jahre vor

Gelöst


Largest Prime Number
Given a matrix X, find the largest prime number in X.

fast 12 Jahre vor

Gelöst


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

fast 12 Jahre vor

Gelöst


Determine the length of a string of characters
Determine the length of a string of characters

fast 12 Jahre vor

Gelöst


Find the biggest digit in a matrix
Write a function to find the biggest digit in a matrix; input -> a matrix output -> a digit For example; [12; 47;...

etwa 12 Jahre vor

Gelöst


Reshape a Vector
Write a function that accept three inputs. The first one is a row vector S. The second and third arguments are m and n which de...

etwa 12 Jahre vor

Gelöst


Best Square-Shaped Grid for Subplot
If you have x number of plots, find the optimum 'm' number of rows and 'n' number of columns for subplotting where the overall f...

etwa 12 Jahre vor

Gelöst


Area of a Square
Inside a square is a circle with radius r. What is the area of the square?

etwa 12 Jahre vor

Gelöst


Leap Year
According to Gregorian Calender(which is in use now, in many countries),decide whether a given year is a leap year or not. Give...

etwa 12 Jahre vor

Gelöst


last n digit of a power function
Calculate the power of a given a base, exponent. Return the last n digit number. Example 1: base = 3; expo = 8; n = 3; ...

etwa 12 Jahre vor

Gelöst


Permutation
How many different words can be formed using all the letters(together) from a given input word? Input is a string.

etwa 12 Jahre vor

Mehr laden