Aaron
Followers: 0 Following: 0
Feeds
문제를 풀었습니다
Matlab Basics - Rounding II
Write a script to round a variable x to 3 decimal places: e.g. x = 2.3456 --> y = 2.346
1년 초과 전
문제를 풀었습니다
Matlab Basics II - squares
Write a function that takes matrix A, and squares each element in the matrix example: A = [1 2 3] output = [1 4 9]
1년 초과 전
문제를 풀었습니다
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>> ...
1년 초과 전
문제를 풀었습니다
Matlab Basics - Rounding I
Write a script to round x DOWN to the next lowest integer: e.g. x = 2.3 --> x = 2 also: x = 2.7 --> x = 2
1년 초과 전
문제를 풀었습니다
Matlab Basics - y as a function of x
Write a function to calculate y as a function of x, such that y = 6x^2 + 5x - 2
1년 초과 전
문제를 풀었습니다
Back to basics 15 - classes
Covering some basic topics I haven't seen elsewhere on Cody. Return the class of the input variable.
1년 초과 전
문제를 풀었습니다
The great 82-year-old
Let's answer the question below; 'I am *x* years old and I have never written programs. If I study from now, will I be able ...
1년 초과 전
문제를 풀었습니다
Find the area of a triangle
Given a triangle with a base b and height h, return the triangle area.
1년 초과 전
문제를 풀었습니다
Rotate matrix by -90 degrees
Rotate a Matrix by -90 degrees Example: X = 1 2 3 4 5 6 7 8 9 output = 7 4 ...
1년 초과 전
문제를 풀었습니다
Simple Vector Addition
Take two incoming vectors and output the sum of the two vectors
1년 초과 전
문제를 풀었습니다
Change string to number
Change given string to number. (hint: there is already function) Changing from ['1234'] to [1234] is one of example
1년 초과 전
문제를 풀었습니다
Matlab Basics - Convert a row vector to a column vector
Write a script to convert a row (e.g. x = [1 2 3]) to a column (e.g. y = [1;2;3]), your script should be able to do this for any...
1년 초과 전
문제를 풀었습니다
Determine the square root
Determine the square root of the value the user has entered, n.
1년 초과 전
문제를 풀었습니다
GPA
Math's credit is 5 and you got x | Physics's credit 7 and you got y what is your GPA
1년 초과 전
문제를 풀었습니다
Find the slope of a line that passes through two vectors
Given two vectors p1 and p2, return the slope of a line that passes through p1 and p2. Examples: Input [p1,p2] = deal([0,1],[...
1년 초과 전
문제를 풀었습니다
Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...
1년 초과 전
문제를 풀었습니다
Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.
1년 초과 전
문제를 풀었습니다
Calculate the average value of the elements in the array
Calculate the average value of the elements in the array
1년 초과 전
문제를 풀었습니다
the average value of the elements
Calculate the average value of the elements in the array
1년 초과 전
문제를 풀었습니다
Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...
1년 초과 전
문제를 풀었습니다
Height of a right-angled triangle
Given numbers a, b and c, find the height of the right angled triangle with sides a and b and hypotenuse c, for the base c. If a...
1년 초과 전