Duplicate a character
Duplicate a character 'n' times.
Example 1: str='a' n=5
output='aaaaa'
Example 2: str='*' n=3
output='***'
約9年 前
解決済み
Derivative of polynomial
Compute the derivative of a given polynomial. The input is an <http://www.mathworks.com/help/matlab/math/representing-polynomial...
約9年 前
解決済み
Convert yards to feet
The goal of this script is to convert a value given in yards to feet.
Matrix to column conversion
Given a matrix of any size, convert it into a column vector.
e.g A=[10 20 30;
40 50 60]
then,
B = [10;
40;
...
約9年 前
解決済み
Matlab Basics - Rounding II
Write a script to round a variable x to 3 decimal places:
e.g. x = 2.3456 --> y = 2.346
約9年 前
解決済み
ASCii Code
Using matlab, give the symbol that is associated with ASCii code 122
約9年 前
解決済み
CONVERT TAN TO SIN
In a right angle triangle ABC given the tan(A) then find sin(A)
For example tan(A)=3/4 then sin(A)=3/5
約9年 前
解決済み
Volume of a box
Given a box with a length a, width b, and height c. Solve the volume of the box.
約9年 前
解決済み
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...
約9年 前
解決済み
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
約9年 前
解決済み
07 - Common functions and indexing 1
Define _cMat_:
<<http://samle.dk/STTBDP/Assignment1_3c.png>>
( _cMat_ = 10x10 matrix where the numbers from 1 to 100 runs ...
約9年 前
解決済み
What percentage?
Calculate the output c as the percentage of a on b for given a and b.