# Tomohiko

### MathWorks

Last seen: 2日 前 2012 年からアクティブ

Followers: 0   Following: 0

All

バッジを表示

#### Feeds

importしたstlファイルのモデルの法線ベクトルを求める方法
stlreadと faceNormal が使えるかと思います。 ヘルプ、検索機能もご活用ください。

2年以上 前 | 1

1ベースの4進数を1から4^8-1まで並べるという考えで、次の方法はどうでしょうか？ double(dec2base(1:(4^8-1),4))-double('0')+1

| 採用済み

Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

4年弱 前

Longest run of consecutive numbers
Given a vector a, find the number(s) that is/are repeated consecutively most often. For example, if you have a = [1 2 2 2 1 ...

4年弱 前

Back and Forth Rows
Given a number n, create an n-by-n matrix in which the integers from 1 to n^2 wind back and forth along the rows as shown in the...

Find the numeric mean of the prime numbers in a matrix.
There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

Determine if input is odd
Given the input n, return true if n is odd or false if n is even.

Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Example...

Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

Times 2 - START HERE
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...