Community Profile

photo

Yucheng Fu


Last seen: 10 months ago Active since 2015

Followers: 0   Following: 0

Message

Mechanical Enginneering

Statistics

All
  • Explorer
  • Thankful Level 1
  • Scavenger Finisher
  • Solver

View badges

Feeds

View by

Solved


The 5th Root
Write a function to find the 5th root of a number. It sounds easy, but the typical functions are not allowed (see the test su...

6 years ago

Question


How to use a class instance implicitly
In my problem, if define a class with many property items as classdef classname properties ProName1 ...

7 years ago | 0 answers | 0

0

answers

Solved


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

7 years ago

Solved


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

7 years ago

Solved


Most nonzero elements in row
Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

7 years ago

Solved


Back and Forth Rows
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...

7 years ago

Solved


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...

7 years ago

Solved


Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

7 years ago

Solved


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 ...

7 years ago

Solved


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

7 years ago

Solved


Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

7 years ago

Solved


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...

7 years ago

Solved


Is my wife right?
Regardless of input, output the string 'yes'.

7 years ago

Solved


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

7 years ago

Solved


Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

7 years ago

Solved


Divide by 4
Given the variable x as your input, divide it by four and put the result in y.

7 years ago

Solved


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

7 years ago

Question


how the function typecast works when convert double to uint8
I test the function typecast as follows: z=double(1); z1=typecast(z,'uint8'); and the results shows the z1 = 0...

8 years ago | 1 answer | 0

1

answer