Community Profile

photo

Ethan Duckworth


Last seen: 7일 전 2021년부터 활동

Followers: 0   Following: 0

통계

All
  • Commenter
  • Solver
  • First Review
  • First Answer

배지 보기

Feeds

보기 기준

문제를 풀었습니다


Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
If p is the perimeter of a right angle triangle with integral length sides, { a, b, c }, there are exactly three solutions for p...

대략 2개월 전

문제를 풀었습니다


Find my daddy long leg (No 's')
Given the ratio of the two legs (longer / shorter), and the hypotenuse length, find the value of the bigger leg.

대략 2개월 전

문제를 풀었습니다


Is this triangle right-angled?
Given any three positive numbers a, b, c, return true if the triangle with sides a, b and c is right-angled. Otherwise, return f...

대략 2개월 전

문제를 풀었습니다


Side of an equilateral triangle
If an equilateral triangle has area A, then what is the length of each of its sides, x? <<https://i.imgur.com/jlZDHhq.png>> ...

대략 2개월 전

문제를 풀었습니다


Calculate the area of a triangle between three points
Calculate the area of a triangle between three points: P1(X1,Y1) P2(X2,Y2) P3(X3,Y3) these three points are the vertices of ...

대략 2개월 전

문제를 풀었습니다


Where the Four Corners Am I?
The "Four Corners" region of the US is where Colorado, Utah, Arizona, and New Mexico all meet - the only place where four states...

대략 2개월 전

문제를 풀었습니다


Return the 3n+1 sequence for n
A Collatz sequence is the sequence where, for a given number n, the next number in the sequence is either n/2 if the number is e...

대략 2개월 전

문제를 풀었습니다


Find common elements in matrix rows
Given a matrix, find all elements that exist in every row. For example, given A = 1 2 3 5 9 2 5 9 3 2 5 9 ...

대략 2개월 전

문제를 풀었습니다


De-dupe
Remove all the redundant elements in a vector, but keep the first occurrence of each value in its original location. So if a =...

대략 2개월 전

문제를 풀었습니다


Add two numbers
Given a and b, return the sum a+b in c.

대략 2개월 전

문제를 풀었습니다


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

대략 2개월 전

문제를 풀었습니다


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

대략 2개월 전

문제를 풀었습니다


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the numbers. Otherwise return false. Example...

대략 2개월 전

문제를 풀었습니다


Get all corner elements from a matrix where dimension of matrix is always equal to or greater than 2.
if a given matrix a = [1 2 3;4 5 6]; so answer is going to be [1 3;4 6]

대략 2개월 전

문제를 풀었습니다


Calculating Student Grades
The matrix grades contains raw grades for 7 students who took your course. Each row represents a different student. The first 7 ...

대략 2개월 전

문제를 풀었습니다


Find Closest Constant
Given a number x, return the value that is closest to x from this list of constants: 0, 1, , e, , (also known as ). For exampl...

대략 2개월 전

문제를 풀었습니다


Matrix Quadrants
Write a function that takes N as the input, and outputs a matrix whose upper-left (NxN) quadrant contains all ones, the lower-ri...

대략 2개월 전

문제를 풀었습니다


Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for: A = [ 1 5 8 ] then B = [ 1 1 5 ...

대략 2개월 전

문제를 풀었습니다


Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

대략 2개월 전

문제를 풀었습니다


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

대략 2개월 전

문제를 풀었습니다


Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

대략 2개월 전

문제를 풀었습니다


Euclidean inter-point distance matrix
The Euclidean distance between two points in a p-dimensional space is a really common thing to compute in the field of computati...

대략 2개월 전

답변 있음
How can you use symbolic functions as inputs and outputs of regular matlab functions
If I understand what you want to do, I think it can be done by querying the input to get the variable, then using whatever syms ...

거의 2년 전 | 0

질문


How can I speed up gfmul for large fields?
I would like to do some arithmetic, like find inverses and do multiplication in the Galois field GF(29^4). The commands gfmul w...

대략 2년 전 | 답변 수: 1 | 0

1

답변

답변 있음
Is there a way to 'fold up' sections of code - like when you close up a for loop
FYI code folding does not work for Live Scripts https://www.mathworks.com/help/matlab/matlab_prog/improve-code-readability.html...

대략 3년 전 | 3