Solved


Back to basics 24 - Symbolic variables
Covering some basic topics I haven't seen elsewhere on Cody. Given a string algebraic expression, return the symbolic variabl...

6 years ago

Solved


Mean number of letters per word (Easy)
Given a character array, s, representing a sentence, return a, the arithmetic mean of the number of letters per word in the give...

6 years ago

Solved


Yoonir - 03
Find the area of a seven-pointed star inscribed in a circle of radius r.

6 years ago

Solved


Yoonir - 02
Find the area of a six-pointed star inscribed in a circle of radius r.

6 years ago

Answered
How to plot from matrix
How are you storing the matrix during each iteration? Did you create a thrid dimension? for k=1:100 A(:,:,k)=[a b c; d e f...

6 years ago | 0

Answered
Help in method for solving simultaneous equations
F=5;%whatever you want A=[0 0 0 0 1/4.5 -1/4.5 0;0 0 0 -1 1/4.5 0 -1/4.5;-1 0 0 0 0 1/15 0;0 -1 0 0 0 0 1/11;0 0 -1 0 0 0 1/18...

6 years ago | 0

| accepted

Answered
Replace values in a matrix
a=A==1; b=A==2; A(A==3)=1; A(A==4)=2; A(A==5)=3; A(b)=4; A(a)=5;

6 years ago | 0

Solved


Procrustean bed
Given a vector x and an integer n, convert x to a vector of length n by (1) chopping off the end if it is too long, or (2) addin...

6 years ago

Solved


Equal temperament - musical notes and frequency
Starting from 440Hz note (musical note A above middle C), create 13 notes, using twelve-tone equal temperament, in Herz units. ...

6 years ago

Solved


"Power matrix" of two vectors
Given two row vectors x,y of lengths m and n (respectively), create an m x n matrix whose i,j entry is x(i)^y(j).

6 years ago

Solved


~(*|/)
Return three quarters of n without using addition, subtraction, multiplication or division.

6 years ago

Solved


Print the date for a given number using Indian calendar reference
Print date for a given number in date reference is INDIAN calendar, not Christ's Birth The Vikram Samvat is said to have been...

6 years ago

Solved


Reverse the input
Given an input (n), produce an output in the reverse order with out using string variables or string function. Example x ...

6 years ago

Solved


Small Riddle
Mr. Smith has two children. If the older child is a boy, what are the odds that the other child is also a boy?

6 years ago

Solved


Rearrange string
Input is a given string. Output is the number of ways to rearrange the string.

6 years ago

Solved


Simple spirometer - find your lung capacity from the number and size of soap bubbles in one breath
Assumed that each bubble has practically the same diameter d. Given total number n of bubbles. Find volume v of breath.

6 years ago

Solved


row removal
Consider a matrix and remove the first row of the matrix.

6 years ago

Solved


multiply by 7

6 years ago

Solved


Find Sine Function

6 years ago

Solved


How to Concatenate two strings?
How to Concatenate two strings?

6 years ago

Solved


Round to nearest integer

6 years ago

Solved


Counting candies
In a classroom of |'n'| children, every even numbered child gets one big candy and every odd numbered child gets two small candi...

6 years ago

Solved


Multiply by 14

6 years ago

Solved


Find the next square number
Given one or more integers n, find the next integer that is a square, for each of them. Example 1: n = 1; out = 4; ...

6 years ago

Solved


Get the array of sum for three consecutive numbers in an array
Get the array of sum, for three consecutive numbers in an array. if Input 'x' does not have at-least 3 elements then 'y' shou...

6 years ago

Load more