Solved


Equation Times (of the day)
Many times throughout the day can represent mathematical equations. In this problem, we focus on times that include the four bas...

4 years ago

Solved


Arrange the names in alphabetical order (2)
Arrange the list of names in alphabetical order, following the German standard <https://de.wikipedia.org/wiki/Alphabetische_Sort...

4 years ago

Solved


Gaussian elimination
Get the Gussian elimination of the Matrix Given You cannot use built-in Matlab functions triu :)

4 years ago

Solved


Measure a Special Distance
Given an n-by-2 matrix with positive and negative numbers, return an n-by-n matrix in the manner of the function template.

4 years ago

Solved


Spot the rectangle (Part 2)
This problem is related to the <http://bit-player.org/2009/the-17x17-challenge 17x17 challenge>. See also <http://www.mathworks....

4 years ago

Solved


Spot the rectangle
This problem is related to the 17x17 challenge. Given a matrix filled with ones and zeros, determine whether or not any rectangl...

4 years ago

Solved


Spiral In
Create an m by n matrix filled with sequential integers starting from 1 and arranged in a counterclockwise spiral that hugs the ...

4 years ago

Solved


Matrix Rotation
You are given a 2D matrix of dimension [m,n] and a positive integer r. You have to rotate the matrix r times and print the resul...

4 years ago

Answered
How to generate random variable theta for F(theta)=N(1 - (mu*B)/(k*T)*cos(theta)). For N=1 and mu*B/k*T=0.01
syms theta fplot(1-0.01*cosd(theta)) xlim([0 180]) ylim([0.99 1.015])

4 years ago | 1

Answered
finding the orthogonal vectors for a series of vectors
Another method will be - for i=1:size(vec,1) v=vec(i,:); %generate a random vector r=rand(1,3); %check it ...

4 years ago | 3

Solved


Decipher the message - same key for all digits
You will be given a input number (eg) x='gdkkn' you have to figure out the dechiper key and match it with given input and deci...

4 years ago

Answered
Plotting performance vs inlet temp for jet engine and measuring performance as dh as shown. What am I doing wrong?
The for loop indexing is incorrect close all clear all P1 = 101 ;%pressure in kpa T1 = 298;%temperature in kelvin n = 1.4; ...

4 years ago | 1

Solved


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 years ago

Solved


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 years ago

Solved


Josephus Survivor
The <http://en.wikipedia.org/wiki/Josephus_problem Josephus Challenge> is to find the position that is the last remaining when e...

4 years ago

Answered
To split class in a cell array
Looks like a simple variable assignment %random data y=num2cell(rand(10,30)) class_1 = y(:,1:15) class_2 = y(:,16:30) %if y...

4 years ago | 1

| accepted

Solved


Permute the unique values of a vector without sorting
Given a vector A, return the matrix B, wherein each row contains a permutation of the unique values in original vector while ret...

4 years ago

Solved


Determine whether one vector is a subset of another
While bumbling through a pair of problems in the Number Theory group, I wrote code to determine whether a vector is a subset of ...

4 years ago

Problem


Nuemann Polynomials
Return the coefficients of nth (n>=0) Nuemann polynomial, (a sequence in 1/t) as polynomials in alpha. The expected output is a...

4 years ago | 2 | 7 solvers

Solved


Draw a fancy '7' in a zero matrix!
Given a x-by-x matrix filled with zeros (x is odd and > 3). Use 7s to draw a number 7 into it! Like this: x = 5, y = 7 7 7 7 7...

4 years ago

Solved


Scorer's Function
Evaluate the Scorer's function for a given input. The expected output is Gi(x). Note - The precision will vary for test cases...

4 years ago

Solved


Absolute Value of the Product of Complex Numbers
Find the absolute value (modulus) of the product of two complex numbers given by a + bi and c + di.

4 years ago

Problem


Scorer's Function
Evaluate the Scorer's function for a given input. The expected output is Gi(x). Note - The precision will vary for test cases...

4 years ago | 2 | 7 solvers

Question


integral() not working properly?
I am trying to integrate a function, however integral() doesn't seem to give the correct value - f=@(t) sin(t.^3./3); y=integ...

4 years ago | 1 answer | 0

1

answer

Solved


Draw 'W'
For any given n, return a matrix of height n and width 4n-3 containing a W of ones. Example: n=2 ans= [1 0 1 0 1 0 1 0 1 0...

4 years ago

Answered
long integers in matlab
You can use Java. import java.math.* y=BigInteger('10').pow(100) z=BigInteger('10').pow(100).add(BigInteger('1')) sub=z.su...

4 years ago | 0

Answered
Changing elements of row after certain element
For a matrix run a loop through the rows x=[-1,-0.65,-0.45,0,0.3,0.8,1,0.4,0.2,-0.1] %Code edited according to the question x...

4 years ago | 1

Answered
identify respective ranks of two columns in matrix and match them
You can perform sorting without changing the original data. data = [1 0 0 0.0669378275070259 2 12.1056041717529 2 12.00264...

4 years ago | 1

| accepted

Solved


Rotate Matrix Both Direction (45 Degree)
*Matrix (3x3 only) rotation*: 3 inputs: *x* matrix, *n* times and *m* option. output: *y* matrix with *n x 45* degree ...

4 years ago

Solved


Make a logical diamond using GALLERY function
Inspired from <http://www.mathworks.com/matlabcentral/cody/problems/1078-make-a-diamond Problem 1078. Make a diamond> In thi...

4 years ago

Load more