Multiply by 3
Given the variable x as your input, multiply it by three and put the result in y.
9년 초과 전
문제를 풀었습니다
Multiply a column by a row
* Given a column vector C and and a row vector R.
* Output a matrix M.
* Every column of M equals to C multiplied by correspon...
Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B.
So if
A = [1 2 3; 4 5 6];
and ...
9년 초과 전
문제를 풀었습니다
Circle area using pi
Given a circle's radius, compute the circle's area. Use the built-in mathematical constant pi.
9년 초과 전
문제를 풀었습니다
Add damping to a mass spring system
Model an ideal mass-spring-damper system shown below where the spring is initially stretched.
<<http://blogs.mathworks.com/im...
9년 초과 전
문제를 풀었습니다
Produce a cosine wave
Produce the following signal:
<<http://blogs.mathworks.com/images/seth/cody/cosine-eqn.png>>
9년 초과 전
문제를 풀었습니다
Produce a sine wave
Produce a sine wave with amplitude 3:
<<http://blogs.mathworks.com/images/seth/cody/sine-eqn.png>>
9년 초과 전
문제를 풀었습니다
Add a block to a model
Produce the following signal:
<<http://blogs.mathworks.com/images/seth/cody/add-block-eqn.png>>
In this case, the slope of...
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...