Gelöst


Map all the indices of an Array Indices into a Vector giving Index vs Row and Column
Create an array of the row and column values for the indices of an array. This is typically performed using [r c]=ind2sub(siz...

fast 3 Jahre vor

Gelöst


False position (linear interpolation) method of finding a root.
Test the false position algorithm described in Chapter 5 of Steven C. Chapra's textbook, Applied Numerical Methods with MATLAB f...

fast 3 Jahre vor

Gelöst


Determine pressure altitude using field elevation and altimeter setting
Given an airfield's elevation in feet (ft) and the current altimeter setting in inches of mercury (inHg), calculate the pressure...

fast 3 Jahre vor

Gelöst


add 10 to x
add 10 to x

fast 3 Jahre vor

Gelöst


add 5 to x
add 5 to x

fast 3 Jahre vor

Gelöst


Add two to x
Add two to x

fast 3 Jahre vor

Gelöst


yo
yo

fast 3 Jahre vor

Gelöst


are you excited to code today????
simply answer yes or no

fast 3 Jahre vor

Gelöst


Determine ground distance from an aircraft to a DME station
In aviation, distance measuring equipment (DME) uses radio signals to determine slant distance from an aircraft to a ground stat...

fast 3 Jahre vor

Gelöst


Basic Matlab Operation Bonanza
Given a horizontal array of numbers, perform the following operations, in order: transpose, flip matrix horizontally, flip matri...

fast 3 Jahre vor

Gelöst


Create numeric palindromes and their square roots
Given a number n (1<=n<=9), return a left justified numeric matrix p with all the palindromes of the form 1 to n and back to 1. ...

fast 3 Jahre vor

Gelöst


dfgd
sfgdf

fast 3 Jahre vor

Gelöst


Compute the total length of lines between all vertices of a regular polygon
Write a function to compute the total length of between all vertices of a regular polygon inscribed in a unit circle. For exampl...

fast 3 Jahre vor

Problem


Compute the total length of lines between all vertices of a regular polygon
Write a function to compute the total length of between all vertices of a regular polygon inscribed in a unit circle. For exampl...

etwa 3 Jahre vor | 0 | 10 Lösungsvorschläge

Gelöst


Grid traversal
Given a line defined by (x1,y1) & (x2,y2),return the number of squares that the line crosses on the grid (a square is 1x1). ...

etwa 3 Jahre vor

Gelöst


Primitive Root Modulo n
Given a positive integer n > 2, return a vector, v, of positive integers smaller than n that are primitive roots modulo n. If no...

etwa 3 Jahre vor

Gelöst


nxn matrix with elements from 1:n^2
really simple once you see what the matrix is supposed to look like. i appreciate what seems to be a clever approach to solving ...

etwa 3 Jahre vor

Gelöst


Birthday cake
It's Cody's 5th birthday, and you've been tasked with putting the candles on the cake. Your goal is to maximize the distance bet...

etwa 3 Jahre vor

Problem


Construct numbers from antidiagonals of stacks of binary numbers
A sequence is constructed in the following way: Express the numbers 1, 2, 3, 4, 5,… in binary and stack them, right-justified. T...

etwa 3 Jahre vor | 1 | 8 Lösungsvorschläge

Gelöst


Roman to Integer Conversion
The idea behind this cody problem is to write a code that converts the Roman Numerals to Integers. A numeral system known as R...

etwa 3 Jahre vor

Gelöst


Convert Roman to Arabic Numerals
Based upon what I see on tv and at the movies, the use of Roman numerals indicates something is important or sophisticated (e.g....

etwa 3 Jahre vor

Problem


List lunar triangular numbers without duplication
Triangular numbers—which are the subject of Cody Problems 5, 291, 44289, 44732, 45833, 55680, 55695, and 55705—are the sums of c...

etwa 3 Jahre vor | 0 | 8 Lösungsvorschläge

Gelöst


ベクトルを作成する
0 から n までのベクトルを 2 間隔で作成します。

etwa 3 Jahre vor

Gelöst


Bullseye Matrix with Zeros
Inspired by Problem 18, create a bullseye matrix with the addition of padding equal to 0 between concentric rings. Matrices are ...

etwa 3 Jahre vor

Gelöst


Design a well field in an infinite aquifer
A well field provides water for a community. The design of a well field involves a goal to meet a specified service demand (i.e...

etwa 3 Jahre vor

Gelöst


Palindrome vector
Check if a given vector is Palindrome. Example, [1 2 54 32 45 5 33 456 45 456 33 5 45 32 54 2 1]

etwa 3 Jahre vor

Gelöst


Sum of squares
Given a number n, return the sum of squares of all integers from 1 to n.

etwa 3 Jahre vor

Gelöst


Determine if a number is a cool number
A number is considered cool if it is 3 digits, has a 5 in it, and is divisible by 4.

etwa 3 Jahre vor

Gelöst


Palindrome String
Determine if the inputted string is a palindrome. That is, the string is the same forwards as it is backwards. For example: ...

etwa 3 Jahre vor

Gelöst


Biggest Value in the (Neighbor)Hood
For this challenge you get two inputs: a matrix A and an integer value n. Your function should return a Matrix B of the same siz...

etwa 3 Jahre vor

Mehr laden