문제를 풀었습니다


Moving average (variable kernel length)
Find the moving average in a vector. The kernel length is a variable. For example x = 1:10 kernel_length = 2 would r...

거의 5년 전

문제를 풀었습니다


Combinations without using nchoosek
You have to generate a matrix with all possible combinations of n elements *taken 2* at a time, *without using nchoosek(1:n,2)* ...

거의 5년 전

문제를 풀었습니다


Back to basics 14 - Keywords
Covering some basic topics I haven't seen elsewhere on Cody. Return a cell array of all MATLAB keywords

거의 5년 전

문제를 풀었습니다


Find the absolute value of of the array

거의 5년 전

문제를 풀었습니다


Sums of Multiple Pairs of Triangular Numbers
This is a follow-up to <https://www.mathworks.com/matlabcentral/cody/problems/44289 Problem 44289> - Find two triangular numbers...

거의 5년 전

문제를 풀었습니다


Is this matrix orthogonal?
Given a square matrix, a, determine whether it is orthogonal. INPUT: a, a n x n matrix OUTPUT: true or false

거의 5년 전

문제를 풀었습니다


Find the value of Y

거의 5년 전

문제를 풀었습니다


Get the side length by using the law of cosines.

거의 5년 전

문제를 풀었습니다


Area of a triangle given its sides

거의 5년 전

문제를 풀었습니다


Distance Travelled by Vehicle

거의 5년 전

문제를 풀었습니다


Red Cross ❌

거의 5년 전

문제를 풀었습니다


Find the second biggist number in a vector or a matrix

거의 5년 전

문제를 풀었습니다


Simple sum 1

거의 5년 전

문제를 풀었습니다


Vector creation using linspace
Create a vector y containing n uniformly spaced values between a and b, with a < b. Use linspace.

거의 5년 전

문제를 풀었습니다


Vector creation using colon operator
Create a vector y containing n uniformly spaced values between a and b, with a < b. Use the colon (:) operator.

거의 5년 전

문제를 풀었습니다


Logarithmically spaced vector creation using logspace
Create a vector y containing n logarithmically spaced values between a and b, with a < b. Use the logspace operator.

거의 5년 전

문제를 풀었습니다


Stacking vectors into a matrix
Given a 4x1 vector a, and a 2x2 matrix b, create a matrix M in which the first 2 rows are each identical to a and the last two r...

거의 5년 전

문제를 풀었습니다


Area of a pentagon
Given the side of a regular pentagon and its apothem return the area of pentagon. Remember the area of pentagon is calculate ...

거의 5년 전

문제를 풀었습니다


Distance Between Points
Being n the number of points (If n = 3 there would be 3 points: A, B and C). The distance between each pair of points increases...

거의 5년 전

문제를 풀었습니다


Find the area of ​​the square
There are *n²* circles inscribed in the square ABCD. The perimeter of each circle is *aπ* <<http://imgfz.com/i/3wzCeAT.png>> ...

거의 5년 전

문제를 풀었습니다


Get the area of ​​the square.
Four circles are inscribed in the square ABCD. The perimeter of each circle is *aπ*. <<http://imgfz.com/i/UzgCJut.png>> Gi...

거의 5년 전

문제를 풀었습니다


An n-sided regular polygon is drawn within a circle whose radius is 'r', what will be the area of the polygon?
area of a polygon is p*a/2. where, p is the perimeter and a is the apothem i.e. the normal distance from center to any of the ...

거의 5년 전

문제를 풀었습니다


The length of the equal sides of an isoceles triangle is 'a'.For all the possible (integer) values of the remaining side,find the associated angles between the two equal sides.
the remaining side may have many possible values.only assume integer ones for simplicity.

거의 5년 전

문제를 풀었습니다


Matrix diagonalization
You will be given Two matrices A and B. Return 1 if B is the diagonal matrix of A, 0 otherwise

거의 5년 전

문제를 풀었습니다


Double the next!
Given two numbers, m and n, find a matrix m x n where each element value is twice the value of the previous element. Starting fr...

거의 5년 전

문제를 풀었습니다


Find the average of a random sequance
Write a function that generates random integers within a loop, and calculates the mean of the positive numbers only. At each ...

거의 5년 전

문제를 풀었습니다


Find the largest number
Find the largest number |x| among 4 numbers given as variables |a|, |b|, |c|, and |d|. Example: Input: a = 4; b = 7; c ...

거의 5년 전

문제를 풀었습니다


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

거의 5년 전

문제를 풀었습니다


Yoonir - 01
Find the area of a five-pointed star inscribed in a circle of radius r.

거의 5년 전

문제를 풀었습니다


Saving MATLAB session to a file
How to save MATLAB session to a file?

거의 5년 전

더 보기