Return unique values without sorting
If the input vector A is [42 1 1],
the output value B must be the unique values [42 1]
The *values of B are in the s...
9年弱 前
解決済み
Maximum value in a matrix
Find the maximum value in the given matrix.
For example, if
A = [1 2 3; 4 7 8; 0 9 1];
then the answer is 9.
Back to basics 12 - Input Arguments
Covering some basic topics I haven't seen elsewhere on Cody.
Return a value equal to the number of input arguments to the fun...
9年弱 前
解決済み
Convert a vector into a number
This is a sub problem related to this problem:
<http://www.mathworks.com/matlabcentral/cody/problems/621-cryptomath-addition>...
9年弱 前
解決済み
Free passes for everyone!
THIS PROBLEM IS TEMPORALLY DECOMMISSIONED WHILE IT IS UPDATED. PLEASE WAIT
_Simply return the name of the coolest numerical c...
Min of a Matrix
Return the minimum value in the given matrix.
9年弱 前
解決済み
Find max
Find the maximum value of a given vector or matrix.
9年弱 前
解決済み
only input
Return the output without writing any code into the function.
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年弱 前
解決済み
Add offset to a signal
Produce the following signal:
<<http://blogs.mathworks.com/images/seth/cody/add-offset-eqn.png>>
You should see a downward...
9年弱 前
解決済み
Produce a sine wave
Produce a sine wave with amplitude 3:
<<http://blogs.mathworks.com/images/seth/cody/sine-eqn.png>>
9年弱 前
解決済み
Connect blocks in a model
Connect the blocks in the model to produce the following signal:
<<http://blogs.mathworks.com/images/seth/cody/connect-blocks...
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...
Back to basics 6 - Column Vector
Covering some basic topics I haven't seen elsewhere on Cody.
Given an input vector, output true or false whether it is a colu...