已解决


Matlab Basics - Rounding II
Write a script to round a variable x to 3 decimal places: e.g. x = 2.3456 --> y = 2.346

11 years 前

已解决


Matlab Basics - Sum a vector
Write a script to add up all the elements in a vector e.g. x = [1 2 3 4] --> output = 10

11 years 前

已解决


Binary
Given a positive, integer n, create a function that returns the respective binary number in the form of a vector. Example: ...

11 years 前

已解决


Check if equal
Return true if all the elements of an nD array are equal, false otherwise.

11 years 前

已解决


Comments
* Fix the syntax errors.

11 years 前

已解决


Matlab Basics - Create a row vector
Write a Matlab script to create a row vector of 10 consecutive numbers x = [1 2 3 4 5 6 7 8 9 10]

11 years 前

已解决


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

11 years 前

已解决


Compare two input matrices
Check which input matrix has more elements. Return "1" if matrix A has more elements than matrix B. Otherwise return "0". Exa...

11 years 前

已解决


Reverse a matrix
Its simple. You have to reverse a given matrix.

11 years 前

已解决


Arithmetic array operations
* Add x to each element of array temperatureReadings.

11 years 前

已解决


Compute total cost
A soda costs 2 dollars. A taco costs 3 dollars. Write a statement that assigns totalCost with the total meal cost given the numb...

11 years 前

已解决


convert matrix to single column
given any matrix, convert it to single column

11 years 前

已解决


Max of a Vector
Write a function to return the max of a vector

11 years 前

已解决


Find number of days
The input is two date in string format (dd-mm-yyyy) find out the number of days between these two dates. Example: input: ...

11 years 前

已解决


Find the logic
There exists one logic in between input and output. Find it (easy math). Example 1: x=13 then y=339; Example 2: x=26...

11 years 前

已解决


Write an expression
Assigns finalResult with firstSample plus secondSample, squared, then divided by 3. Ex: If firstSample is 18 and secondSample is...

11 years 前

已解决


ASCii Code
Using Matlab get the ASCii for '?'

11 years 前

已解决


Determine the square root
Determine the square root of the value the user has entered, n.

11 years 前

已解决


Population growth
Assign finalPopulation with the population size given an initial population, population growth rate, and number of years. The fi...

11 years 前

已解决


matlab indian players
answer is one of the indian matlab player(just for fun dont take serious)

11 years 前

已解决


Building matrices
If you have matrix A, create matrix B using matrix A as an "element" A = [1 2 3 4; 5 6 7 8...

11 years 前

已解决


Find the dimensions of a matrix
Just find the number of columns of the given matrix. Example x = [1 2 3 4 5 6] y = 2

11 years 前

已解决


05 - Vector Equations 3
Define the vector _dVec_: <<http://samle.dk/STTBDP/Assignment1_2d.png>> (Logarithmically spaced numbers between 1 and 10) ...

11 years 前

已解决


Circle area using pi
Write a statement that assigns circleArea with the circle's area given circleRadius. Use the built-in mathematical constant pi. ...

11 years 前

已解决


07 - Common functions and indexing 6
Create a variable _m_ as a magic square with the size 6 x 6 Magic squares are defined as square matrices, where the sum of a...

11 years 前

已解决


Vectors counting by 2
Create a vector numbers from 7 to 15 in increments of 2

11 years 前

已解决


Deleting an element in a matrix
For vector Grades=[98 56 78 34 100 88 87], delete the number 78 to get the following matrix Grades=[98 56 34 100 88 87] **re...

11 years 前

已解决


Find the nearest integer
Given a vector of integers and a real number find the closest integer. EX: >> a = [2 4 5 6 8 10]; >> b = 4.6; >> nea...

11 years 前

已解决


Squaring Matrix
Square the following matrix using matlab % A = 1 2 3 4 5 6 7 8 So new matrix should display...

11 years 前

已解决


Who has power to do everything in this world?
There is only one person who is older than this universe. He is Indian version of Chuck Norris.

11 years 前

加载更多