James Baker

Last seen: 6 mois il y a Actif depuis 2021

Followers: 0   Following: 0

All

Feeds

Afficher par

A résolu

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

6 mois il y a

A résolu

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

6 mois il y a

A résolu

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

6 mois il y a

A résolu

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

6 mois il y a

A résolu

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

6 mois il y a

A résolu

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

6 mois il y a

A résolu

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

6 mois il y a

A résolu

Convert from Fahrenheit to Celsius
Given an input vector F containing temperature values in Fahrenheit, return an output vector C that contains the values in Celsi...

6 mois il y a

A résolu

Calculate Amount of Cake Frosting
Given two input variables r and h, which stand for the radius and height of a cake, calculate the surface area of the cake you n...

6 mois il y a

A résolu

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

6 mois il y a

Question

Vector counting syntax help?
if i have a vector A = [1 1 1 1 2 3 3 5 5 5 5 6 6 7]... its alreay been sortecand only increases.. i want to create a 2nd vec...

environ 3 ans il y a | 1 réponse | 0

1

réponse

Question

Counting distinct elements in a vector?
ok lets say i have a vector A = (1 1 2 2 3 4 4 4 4 5 7 7 7) the original A vector was related to actual time, hence why its in...

environ 3 ans il y a | 1 réponse | 0

1

réponse

Question

Histogram graph help?
i have a vector called r = zeros(1000, 1); i use this vector to trap counts in some for and while loops... the for and while l...

environ 3 ans il y a | 1 réponse | 0

réponse