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...
10年弱 前
解決済み
Matlab Basics II - Intervals
Write a function that takes an interval from a to b, and divides it into 5 parts
example:
a = 1, b = 2
output = 1 1.25 ...
10年弱 前
解決済み
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];
10年弱 前
解決済み
Matlab Basics II - Free Fall
An object freely falling from rest under gravity covers a distance x given by:
x = 1/2 gt^2
write a function that calculat...
10年弱 前
解決済み
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...
10年弱 前
解決済み
ASCii Code
Using matlab, give the symbol that is associated with ASCii code 122
10年弱 前
解決済み
UICBioE240 2.2
Make a 3x4 matrix that contains all ones.
10年弱 前
解決済み
UICBioE240 2.10
Given a vector of numbers, give the difference between the maximum and minimum values.
Find maximum value of a curve
Two vectors shall be already defined:
- Input vector x (e.g. x = 0:1:10)
- Result vector y (e.g. y = sin(x))
Create a n...
Sum of the Multiplication of Vectors
Given the vectors x and y as input, multiply the vectors and return the summation of its elements.
Example:
x = [1 2 ...
10年弱 前
解決済み
Square the input
Given a scalar or vector x, return the square of each element.
Example
x = [7 2]
answer = [49 4]
10年弱 前
解決済み
BASICS - sum part of vector
Please make a function, where as input you get vector "x" and and vector "c", where in "c" vector you get indexes to sum.
Examp...