Community Profile

# stozaki

2019 年からアクティブ

DISCLAIMER: Any advice or opinions posted here are my own, and in no way reflect that of MathWorks.

Programming Languages:
MATLAB
Spoken Languages:
Japanese

All

バッジを表示

#### Content Feed

Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

10ヶ月 前

Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the numbers. Otherwise return false. Example...

10ヶ月 前

Generate a vector like 1,2,2,3,3,3,4,4,4,4
Generate a vector like 1,2,2,3,3,3,4,4,4,4 So if n = 3, then return [1 2 2 3 3 3] And if n = 5, then return [1 2 2...

10ヶ月 前

The Piggy Bank Problem
Given a cylindrical piggy bank with radius g and height y, return the bank's volume. [ g is first input argument.] Bonus though...

1年以上 前

Get the length of a given vector
Given a vector x, the output y should equal the length of x.

3年弱 前

Find max
Find the maximum value of a given vector or matrix.

3年弱 前

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...

3年弱 前

Back to basics 3 - Temp Directory
Covering some basic topics I haven't seen elsewhere on Cody. Return a string that is the path to the system's current temp di...

3年弱 前

Back to basics 15 - Benchmark
Covering some basic topics I haven't seen elsewhere on Cody. Return an array of the benchmark values for MATLAB.

3年弱 前

Number of toolboxes?
Return a number equal to the number of toolboxes available to the Cody solvers.

3年弱 前

Return area of square
Side of square=input=a Area=output=b

3年弱 前

Select every other element of a vector
Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

3年弱 前

3年弱 前

Area of a triangle
A triangle is given with base *'b'* ,vertical hight *'h'* . then find it's area.

3年弱 前

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:...

3年弱 前

Find the index of elements in a string vector
In the vector of v, find the index of elements specified by a. v = ["Lion","Koara","Elephant","Snake","Dog","Cat","Camel"]; ...

3年弱 前

Arrange Vector in descending order
If x=[0,3,4,2,1] then y=[4,3,2,1,0]

3年弱 前

Find the index of elements in a string vector
In the vector of v, find the index of elements specified by a. v = ["Lion","Koara","Elephant","Snake","Dog","Cat","Camel"]; ...

3年弱 前 | 1 | 30 個のソルバー

Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...

3年弱 前

Bit Reversal
Given an unsigned integer _x_, convert it to binary with _n_ bits, reverse the order of the bits, and convert it back to an inte...

3年弱 前

Create a vector
Create a vector from 0 to n by intervals of 2.

サイコロを作ろう
1から6までの独立かつランダムな数値を返すような関数を作成しましょう。 例： >> [x1,x2] = rollDice(); と入力すると x1 = 5 x2 = 2 のような解を返します。

NaN (欠損値) が含まれている行を削除しよう

ベクトル b にあるスカラ値 a が含まれていれば出力として 1 を返し、含まれていなければ 0 を返すような関数を作成しましょう。 例: a = 3; b = [1,2,4]; スカラ値 3 はベクトル b に含まれていない...

ゼロでない要素が一番多い行を探そう

2倍してみよう - ここからスタート！