Zhaoxu Liu / slandarer - MATLAB Central
photo
Programming Languages:
MATLAB
Spoken Languages:
English

Statistica

All
File ExchangeCodyMATLAB AnswersZoom OutFrom 07/20 to 03/25Use left and right arrows to move selectionFrom 07/20Use left and right arrows to move left selectionTo 03/25Use left and right arrows to move right selectionUse TAB to select grip buttons or left and right arrows to change selection100%

RANK
665 of 20.433

REPUTAZIONE
2.739

VALUTAZIONE MEDIA
4.90

CONTRIBUTI
47 File

DOWNLOAD
973

ALL TIME DOWNLOAD
21015

  • MATLAB Shorts Mini Hack Participant
  • MATLAB Flipbook Mini Hack Participant
  • First Answer
  • Community Group Solver
  • Solver
  • Top Downloads 2024
  • GitHub Submissions Level 1
  • Personal Best Downloads Level 5
  • MATLAB Flipbook Mini Hack 2nd place
  • 5-Star Galaxy Level 5
  • Explorer
  • First Review

Visualizza badge

Feeds

Visto da

Risolto


Vector creation
Create a vector using square brackets going from 1 to the given value x in steps on 1. Hint: use increment.

circa un mese fa

Risolto


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

circa un mese fa

Risolto


Create a vector
Create a vector from 0 to n by intervals of 2.

circa un mese fa

Risolto


Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not to use d...

circa un mese fa

Risolto


Whether the input is vector?
Given the input x, return 1 if x is vector or else 0.

circa un mese fa

Risolto


Find max
Find the maximum value of a given vector or matrix.

circa un mese fa

Risolto


Get the length of a given vector
Given a vector x, the output y should equal the length of x.

circa un mese fa

Risolto


Inner product of two vectors
Find the inner product of two vectors.

circa un mese fa

Risolto


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

circa un mese fa

Risolto


Sum of series VIII

circa un mese fa

Risolto


Sum of series IX
What is the sum of the following sequence: Σ 1/k! for k=1...n for different n?

circa un mese fa

Risolto


Approximation of Pi
Pi (divided by 4) can be approximated by the following infinite series: pi/4 = 1 - 1/3 + 1/5 - 1/7 + ... For a given number of...

circa un mese fa

Risolto


Volume Pillar
Calculate the volume of a pillar with radius l and heigth ar.

circa un mese fa

Risolto


Sums with Excluded Digits
Add all the integers from 1 to n in which the digit m does not appear. m will always be a single digit integer from 0 to 9. no...

oltre 2 anni fa

Risolto


Remove all the consonants
Remove all the consonants in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill'; Output s2 is 'a ...

oltre 2 anni fa

Risolto


It dseon't mettar waht oedrr the lrettes in a wrod are.
An internet meme from 2003 (read more here) asserted that readers are relatively insensitive to letter order in words, so long a...

oltre 2 anni fa

Risolto


Interpolator
You have a two vectors, a and b. They are monotonic and the same length. Given a value, va, where va is between a(1) and a(end),...

oltre 2 anni fa

Risolto


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

oltre 2 anni fa

Risolto


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

oltre 2 anni fa

Risolto


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

oltre 2 anni fa

Risolto


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

oltre 2 anni fa

Risolto


Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

oltre 2 anni fa

Risolto


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

oltre 2 anni fa

Risolto


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

oltre 2 anni fa

Risolto


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

oltre 2 anni fa

Risolto


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

oltre 2 anni fa

Go to top of page