Wind Chill Computation
On a windy day, a temperature of 15 degrees may feel colder, perhaps 7 degrees. The formula below calculates the "wind chill," i...
約9年 前
解決済み
Transpose
Write a MATLAB script in order to convert a random length row vector (v) into a column vector.
約9年 前
解決済み
Doubling elements in a vector
Given the vector A, return B in which all numbers in A are doubling. So for:
A = [ 1 5 8 ]
then
B = [ 1 1 5 ...
約9年 前
解決済み
Square the input
Given a scalar or vector x, return the square of each element.
Example
x = [7 2]
answer = [49 4]
約9年 前
解決済み
Area of a circle
Find the value for area of the circle if diameter is given
約9年 前
解決済み
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...
約9年 前
解決済み
row removal
Remove the nth row from input matrix M and return the resulting matrix in output N.
約9年 前
解決済み
Say something funny
Say something funny, or not.
Your solution will be (fully automatically and objectively) scored based on how clever or funny ...
約9年 前
解決済み
Returning a "greater than" vector
Given a vector, v, return a new vector , vNew, containing only values > n.
For example:
v=[1 2 3 4 5 6]
n=3
vNew =...
約9年 前
解決済み
Getting the indices from a vector
This is a basic MATLAB operation. It is for instructional purposes.
---
You may already know how to <http://www.mathworks....
約9年 前
解決済み
Back to basics 23 - Triangular matrix
Covering some basic topics I haven't seen elsewhere on Cody.
Given an input matrix, return a matrix with all elements above a...
約9年 前
解決済み
Reverse Run-Length Encoder
Given a "counting sequence" vector x, construct the original sequence y.
A counting sequence is formed by "counting" the entrie...
約9年 前
解決済み
03 - Matrix Variables 5
Make the following variable:
<<http://samle.dk/STTBDP/Assignment1_3e.png>>
約9年 前
解決済み
Test if two numbers have the same digits
Given two integers _x1_ and _x2_, return |true| if the numbers written with no leading zeros contain the same digits. That is, t...
約9年 前
解決済み
07 - Common functions and indexing 3
Define _eMat_:
<<http://samle.dk/STTBDP/Assignment1_3e.png>>
Create the variable _eMat2_, which is equal to _eMat_ with th...
約9年 前
解決済み
square root
Find the square root (y) of an input (x).