How to permute given 3d matrix?
A(:,:,1)=[1 3]
A(:,:,2)=[2 2]
A(:,:,3)=[4 3]
Change rows to columns and columns to rows, similar to transpose.
Resul...
6ヶ月 前
解決済み
cos for boss?
a programmer had too much coffee and his boss needs cos(alpha+beta) correctly, especially when alpha or beta are close to pi/2 a...
Create a square matrix of multiples
Given an input, N, output a matrix N x N with each row containing multiples of the first element of each row.
This also applies...
6ヶ月 前
解決済み
Interior angles
Find the sum of interior angles for polygon of x sides.
6ヶ月 前
解決済み
Case-insensitive Character Detection
Find the index of a particular character in a string ignoring case.
Example
Input: x = 'aAbhhfdf'
n = 'a'
...
6ヶ月 前
解決済み
Try and Catch Simple Example
Try and Catch Simple Example
<http://in.mathworks.com/help/matlab/ref/try.html Example>
Vector x=[1 4 6 8 10];
Create...
6ヶ月 前
解決済み
Convert to Binary Coded Decimal
Convert from decimal representation to <http://en.wikipedia.org/wiki/Binary-coded_decimal Binary Code Decimal> (or BCD) represen...
6ヶ月 前
解決済み
Vector Magnitude Calculator
'a' is a vector that starts at the origin and ends at (x, y). Find ||a||.
Hint: It is as simple as "ABC".
Find out Binomial coefficient
Find out the <http://en.wikipedia.org/wiki/Binomial_coefficient Binomial coefficient>.
There is a function available in MATL...
What number has this problem?
This problem is added because it is problem number *???* in the "Community" problems section.
<http://www.mathworks.de/matlab...