Gelöst


Number Puzzles - 020

9 Monate vor

Gelöst


Convert row and column subscripts to linear indices
Convert 2D row and column subscripts to linear indices WITHOUT sub2ind Example: row = [1 2 3 1]; col = [2 2 2 3]; sz = [3 3]...

9 Monate vor

Gelöst


Surface Fit z(x,y)
Given three vectors x,y,z. Find four coefficients c = [cxx cxy cyy c00], such that z = cxx*x.^2+cxy*x.*y+cyy*y.^2+c00. For e...

9 Monate vor

Gelöst


01-01: 正弦波の生成
「MATLABで学ぶ実践画像・音声処理入門」のプログラム1-1 と同じ正弦波を、サンプリング周波数 10kHz で生成し、返却する関数を作成せよ。

9 Monate vor

Gelöst


Is the number of 1s in a binary integer odd or even?
Your function should turn the input integers into binary form and count the number of 1s in the binary. If the number is odd, re...

9 Monate vor

Gelöst


How many ways?
Create a program to determine in how many ways can a regular n-gon be divided into n-2 triangles?

9 Monate vor

Gelöst


Tribonacci Sequence
Generate the tribonacci sequence upto n

9 Monate vor

Gelöst


Repeat string n times
You will be provided a string (s = 'string1_') a starting point (num1 = 6) (always bigger than or equal to zero) and n (n = 3)...

9 Monate vor

Gelöst


Invert a 3D rotation matrix
Given a 3D rotation matrix, belonging to the matrix group SO(3), compute its inverse without using the functions inv() or pinv()...

9 Monate vor

Gelöst


Say type of roots in quadratic equation
Given the coefficients of a quadratic equation, write a function that gives the output y='RealDifferent' if the roots are real a...

9 Monate vor

Gelöst


Just another sum (JAS)
*Task:* Write a function that takes a vector X and returns the alternating sum of X: X(1)-X(2)+X(3)-X(4)+... *Example...

9 Monate vor

Gelöst


Basic Monte Carlo Simulation
Input is a matrix including service time and probability of service time. Another input is a random number. Function should tran...

9 Monate vor

Gelöst


Polybius Square
Given a string, calculate the coordinates. Input will be always in lowercase. If string is a sentence then use 0 (zero) to indic...

9 Monate vor

Gelöst


findPositiveEvenNumbers
Write a MATLAB function findPositiveEvenNumbers that takes an array of integers as input and returns a new array containing only...

9 Monate vor

Gelöst


free points
function y = your_fcn_name(x) y = x(1)+x(2); end

9 Monate vor

Gelöst


Sum of Squares
Given a vector v of length n, write a MATLAB function to calculate the sum of the squares of its elements.

9 Monate vor

Gelöst


Function(3)
Use this function to earn some points on your cody journey! function y = your_fcn_name(x) y = x^2 - 12; end

9 Monate vor

Gelöst


Determine if input is greater than 100
Evaluate if given number is greater than 100. If greater, return true; else, return false.

9 Monate vor

Gelöst


Easy Function(2)
Hit the submit button for some cody points! function y = your_fcn_name(x) y = x^2 + 20; end

9 Monate vor

Gelöst


Find collatz series next number
For given x, if x is even, output is (x/2) if x is odd, output is (3x+1)

9 Monate vor

Gelöst


How many offices does MathWorks have in the UK
Please write a function that returns the number of offices MathWorks has in the UK.

9 Monate vor

Gelöst


Google Drive: MATLAB mat file download
Matlab 'mat' files are notoriously hard to email and download as they are binary files. To make a 'mat' file downloadable from ...

9 Monate vor

Gelöst


Google Drive file download
This Challenge is to download a file from GoogleDrive given its "copylink" provided URL and a file name. GoogleDrive links fail...

9 Monate vor

Gelöst


Remove NaNs and numbers adjacent to NaNs
The aim is to remove the elements before and after NaN occurrences inside a vector. For example: x = [6 10 5 8 9 NaN 23 1...

9 Monate vor

Gelöst


Easy Function(4)
Use the submit button to earn points function y = your_fcn_name(x) y = x^2 + 40; end

9 Monate vor

Gelöst


Calculate the square root
Given an input integer x, calculate the square root without using the sqrt function.

9 Monate vor

Gelöst


Easy Function(1)
Use this function to earn some cody points! function y = your_fcn_name(x) y = x^2 - 1; end

9 Monate vor

Gelöst


Find The area of the square
Given that the length of the side of a square is x, find the area.

9 Monate vor

Gelöst


Calculate the Distance to Source of Lightning
Lightning discharge heats air rapidly with lightning channels reaching temperatures of up to 50,000 degrees Fahrenheit (which is...

9 Monate vor

Gelöst


Calculate BMI
Given weight in kgs and height in metres, calculate body mass index

9 Monate vor

Mehr laden