解決済み


Negative matrix
Change the sign of all elements in given matrix.

2ヶ月 前

解決済み


Matlab Basics - Pick out parts of a vector
Consider x a vector of length >= 7 (there are at least 7 elements in the vector, write a script that extracts the 2nd element, a...

2ヶ月 前

解決済み


Matlab Basics II - Determine if an array has a 3rd dimension
For an array A, determine whether it has 3 dimensions, return 0 if x is only 2D, and 1 if x is 3D

2ヶ月 前

解決済み


Finding an element in a vector
x is a vector of unknown length your function should return the index of the first element in the vector that is greater than...

2ヶ月 前

解決済み


Matlab Basics - Logical Tests I
Write a script to test whether a year number is for a leap year or not. eg. x = 1884 output = 1 eg. x = 3 output = 0

2ヶ月 前

解決済み


Matlab Basics II - Log and natural log
Write a function that calculates the difference between the log and natural log of a vector, to two decimal places example: ...

2ヶ月 前

解決済み


Matlab Basics II - Minimum
Write a function that returns the minimum of each ROW of a matrix x example: x = [1 2 3; 4 5 6]; output [1;4];

2ヶ月 前

解決済み


Matlab Basics II - Extract last 3 elements of a vector
Let x be a vector of unknown length, we are always interested in the last 3 numbers in the vector, write a function that gives t...

2ヶ月 前

解決済み


Matlab Basics - Absolute Value
Write a script that returns the absolute value of the elements in x e.g. x = [-1 -2 -3 -4] --> y = [1 2 3 4]

2ヶ月 前

解決済み


Replace every 3rd element in a vector with 4
x is a vector of undetermined length You are to replace every 3rd element with the number 4, example: x = [11 23 34 43 2 3...

2ヶ月 前

解決済み


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

2ヶ月 前

解決済み


Matlab Basics - Assigning Variables
Assign different types of data to variables: integer, double, and strings Example: A is a double, for example 2.34 B is a...

2ヶ月 前

解決済み


ASCii Code
Using Matlab get the ASCii for '?'

2ヶ月 前

解決済み


Complex number
For complex number c=a+bi, write code that will add a and b together.

2ヶ月 前

解決済み


Counting down
Create a vector that counts from 450 to 200 in increments of 10.

2ヶ月 前

解決済み


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

2ヶ月 前

解決済み


Program an exclusive OR operation with logical operators
Program an exclusive or operation *without* using the MATLAB function xor. Use logical operators like |, &, ~, ... instead. ...

2ヶ月 前

解決済み


Create a Standard Size Vector
Given an input x, create a row vector y from 1 to x with 5 elements.

2ヶ月 前

解決済み


Square a Number
Given an input x, return y, which is equal to the square of x.

2ヶ月 前

解決済み


Create a Matrix of Zeros
Given an input x, create a square matrix y of zeros with x rows and x columns.

2ヶ月 前

解決済み


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

2ヶ月 前

解決済み


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

2ヶ月 前

解決済み


All your base are belong to us
Find the base _b_ logarithm of the input decimal number _x_. Express the output as a decimal number. The first argument is the n...

2ヶ月 前

解決済み


Add a row of zeros on top of a matrix
Given a matrix, insert a row of zeros as the top row.

2ヶ月 前

解決済み


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

2ヶ月 前

解決済み


Summation of array
Given an array, Find the sum of all of the elements in it Examples: Input x = [1 2 3 5; 4 5 6 7]; Output y is 33

2ヶ月 前

解決済み


Rotate a Matrix by 90 degrees
Rotate a Matrix by 90 degrees Example: If the input is: X = 1 2 3 4 5 6 7 8 9 ...

2ヶ月 前

解決済み


Unit Matrix
Given n, you should return an n-by-n unit matrix. Example: If input is n=2 then A = [ 1 0 0 1 ] If input ...

2ヶ月 前

解決済み


What's Your BMI?
Find the body mass index. For reference, please refer to Wikipedia here: <http://en.wikipedia.org/wiki/Body_mass_index body ...

2ヶ月 前

解決済み


Array of Ones
Create a 100 X 100 array of ones.

2ヶ月 前

もっと読み込む