Solved

arithmetic progression
I've written a program to generate the first few terms of <https://en.wikipedia.org/wiki/Arithmetic_progression arithmetic progr...

17 días ago

Solved

Largest Geometric Series
Extension of Ned Gulley's wonderful <http://www.mathworks.com/matlabcentral/cody/problems/317 Problem 317>. In a geometric se...

17 días ago

Solved

geometric progression
I've modified my <http://uk.mathworks.com/matlabcentral/cody/problems/2800-arithmetic-progression previous program> so that it n...

17 días ago

Solved

Damping of Servomotors with Tachometer Feedback
In Control Engineering, servomotors with tachometer feedback can be modeled by the second order system K / [J*s^2 + (B + K*K...

17 días ago

Generate random binary matrix (Matlab)
Brute force might work for you. Obviously, some combinations of N,M,n,m will not work. N=10;M=5;%matrix size n=6;%number of on...

17 días ago | 0

| accepted

3D matrix with equation
Should be something like this if I understood you correctly. [m,n]=size(Y); N=zeros(n); for j=1:n for l=1:n N(j,l)...

17 días ago | 0

Any one can help me on this?
x=[1;1];%initial guess for k=1:10%you did not specify how many iterations or a tolerance f=[4*x(1)^2+x(1)*x(2)+4*x(2)^2-12;...

17 días ago | 0

Solved

ASCII Birthday Cake
Given an age and a name, give draw an ASCII birthday cake. For example, given the name "CODY" and the age 5, return a string wit...

17 días ago

Solved

The glass half full
Identical glasses are placed in a triangular tower structure, such that the top level (L = 1) comprises one glass, the next leve...

17 días ago

Solved

Calculate the average value of the elements in the array
Calculate the average value of the elements in the array

17 días ago

Solved

Find the number of days in a given year
Given a year number (eg. 2000) as input, find how many days are there in the given year.

17 días ago

Solved

GJam 2013 Veterans: Ocean View (Small)
This Challenge is derived from <http://code.google.com/codejam/contest/2334486/dashboard#s=p2 GJam 2013 Veterans Ocean View>. Th...

18 días ago

Generate list of random permutations by column
for k=1:50 p(:,k)=randperm(32)'; end

18 días ago | 0

Solved

Key Generation for Solitaire Cipher
The Solitaire Cipher by Bruce Schneier was introduced to Cody in two problems by Doug Hull: http://www.mathworks.com/matlabcent...

18 días ago

for l=1:5 A{l}=readmatrix(['File_' num2str(l) '.txt']);%not sure if all your data is the same size end

18 días ago | 0

| accepted

Solved

Code breaker, Part I: Operation Phoenix
You have been tasked with decoding a set of coded messages that have been intercepted. Based on previous intelligence that ...

20 días ago

Solved

Eliminate redundant numbers in text
Occasionally someone might write text such as Briefly explain one (1) common problem that can result from the constant use of ...

21 días ago

Solved

Write out numbers in words
Write out numbers in words ( range [0-9999] ) with British spelling rules. For example; * 1 > one * 56 > fifty-six * 100 >...

21 días ago

Will the program run
No loops needed. I assume your j is imaginary and that you only want to plot the real part of f. e=8.854*10^(-12); l=1:5; z=...

21 días ago | 0

How can i create a char of a character vector as a result of this routine?
Stotal=[0.38 0.007 0.09 0.18 0.34;0.18 0.19 0.17 0.03 0.46;0.19 0.0162 0.68 0.09 0.02;0.08 0.45 0.11 0.045 0.30;0.39 0.09 0.34 0...

21 días ago | 1

| accepted

Solved

Find the sum of the following series
A(n)=(n*(n-1)!)/(n-2)!

22 días ago

How to generate 0 and 1 matrix in specific condition.
Brute force a=randi(2,4,5)-1; while any(sum(a)<2) a=randi(2,4,5)-1; end

22 días ago | 0

Solving a complex equation with all real answers
syms R C; eqn=1/(1i+(-50-25000*R*C*1i)/R)==-.1; r=solve(eqn,R); c=solve(eqn,C);

23 días ago | 0

Solved

Count unique orderings of vertices of a polygon
Cody Problem 2671 asks us to determine whether four points can be the corners of a rectangle. The points are not necessarily inp...

23 días ago

Solved

Solve an ODE: equation C
Write a function to solve the following ordinary differential equation: with and . The parameter is a constant. The functi...

25 días ago

Solved

Find all vampire fangs
A <http://en.wikipedia.org/wiki/Vampire_number vampire number> is a number v that is the product of two numbers x and y such th...

25 días ago

Solved

Pandiagonal Prime Magic Square Verification
Verify if an NxN matrix is a Pandiagonal Prime Magic Square. Required properties: 1) N^2 prime values ( No repeats, 1 ...

26 días ago

Solved

is the number happy?
test is a given integer number is Happy of not? answer 1 if yes or 0 is no

26 días ago

How to use the result of mn matrix at each loop step to do the calculation of amn?
format long E=209e+3; q=1; h=15; D=6.459478e+07; a=600;b=2400; % Control the value of mn c=2; for f=1:c k=[3:2:...

26 días ago | 1

| accepted