문제를 풀었습니다


Close MATLAB with keyboard
Close MATLAB with keyboard without using mouse

3년 초과 전

문제를 풀었습니다


Counting down
Create a vector that counts from 450 to 200 in increments of 10.

3년 초과 전

문제를 풀었습니다


Vectors counting by 2
Create a vector numbers from 7 to 15 in increments of 2

3년 초과 전

문제를 풀었습니다


Test of Quiz
Answer the questions and write in vector. Only one answer is correct. The founder of fuzzy logic is 1a) D. Golberg 1b)...

3년 초과 전

문제를 풀었습니다


Write a code that will follow the equation y = x * (x + x) * x.
If x = 5, y = 5 * (5+5) * 5 = 250

3년 초과 전

문제를 풀었습니다


Is My Wife Wrong?
Answer the question. (see also <http://www.mathworks.com/matlabcentral/cody/problems/149-is-my-wife-right Problem 149: Is my ...

3년 초과 전

문제를 풀었습니다


Finding perimeter of a rectangle
A rectangle has a length of x centimeters and a width of w centimeters. Find the perimeter.

3년 초과 전

문제를 풀었습니다


Create a Matrix of Zeros
Given an input x, create a square matrix y of zeros with x rows and x columns.

3년 초과 전

문제를 풀었습니다


Test
Answer the question and the correct answer write in vector. Only one answer is correct. 1a Yes 1b No 1c No 1d No ...

3년 초과 전

문제를 풀었습니다


Remove the positive integers.
Given array,x, remove all the positive numbers and display ouput as y. Example x=[1 -2 3 -4] , output is y=[-2 -4].

3년 초과 전

문제를 풀었습니다


Complex number
For complex number c=a+bi, write code that will add a and b together.

3년 초과 전

문제를 풀었습니다


Squaring Matrix
Square the following matrix using matlab % A = 1 2 3 4 5 6 7 8 So new matrix should display...

3년 초과 전

문제를 풀었습니다


Flipping
Write code that can reverse the vector without using any sort of loop. Example Given the input vector A = [ 1 2 3 4 5...

3년 초과 전

문제를 풀었습니다


most frequent character
Obtain the most frequent character. For example, s='balaram'; output='a'; If there is a tie between letters, return t...

3년 초과 전

문제를 풀었습니다


reverse string
input='rama' output='amar'

3년 초과 전

문제를 풀었습니다


Skip by a multiple
Given an integer create an array of its multiples. Array must have a length of 15

3년 초과 전

문제를 풀었습니다


Area of a Square
Given the length x of the side of a regular square, find the area of the square, A.

3년 초과 전

문제를 풀었습니다


Print true if
all elements are larger than 5 a=[1 3 5 8 6]; b=[6 6 6 6 6]; function(a) should be false, and function(b) will be tru...

3년 초과 전

문제를 풀었습니다


Sum the rows
Sum the rows of the given matrix. Example x = [ 1 2 3 4 ] y = [ 3 7 ]

3년 초과 전

문제를 풀었습니다


raise 1/3
Raise a number to 1/3 power.

3년 초과 전

문제를 풀었습니다


true or false
if the matrix has a zero, return true. else, return false

3년 초과 전

문제를 풀었습니다


Let's get back to school, and create multiplication tables
For a given range, create multiplication tables. (start is always < endno) Example start = 17 endno = 19 Then, ...

3년 초과 전

문제를 풀었습니다


Matrix FUN
Given a Matrix M, find out the number of elements of matrix that are divisible by 3. M = [1 2 3;4 5 6;7 8 9]; ou...

3년 초과 전

문제를 풀었습니다


Change string to number
Change given string to number. (hint: there is already function) Changing from ['1234'] to [1234] is one of example

3년 초과 전

문제를 풀었습니다


Calculate some equation
Using given inputs x and z, make two outputs that are y1 = (xz)/(x/z)^2 + 14x^2 - 0.8z^2 y2 = x^z - z^x + (x/z)^2 - (z/x...

3년 초과 전

문제를 풀었습니다


How to calculate log?
There is a log that have base 5. How to calculate? log5(x)?

3년 초과 전

문제를 풀었습니다


二つのベクトルの要素ごとの積の平均を計算しよう
二つの同じ長さのベクトルが与えられたとき、二つのベクトルの要素ごとの積の平均を求めましょう。 例: 二つのベクトル [1 2 3] と [10 15 20] が与えられたとき、 それぞれの要素ごとの積の平均を取ると、 解は 33.33...

3년 초과 전

문제를 풀었습니다


二乗になっている数を見つけよう
ある数のベクトルが与えられた場合、そのベクトルの要素の一つが他の要素の二乗であれば true を返し、それ以外の場合は false を返すようなコードを書いてみましょう。 例: 入力が a = [2 3 4] のとき、 出力 b は t...

3년 초과 전

문제를 풀었습니다


ベクトルの値が増加しているかを調べよう
ベクトルの値が増加している場合 (ベクトルの各要素が前の要素よりも大きい場合) には true を、そうでない場合には false を返すようなコードを書いてみましょう。 例: 入力が x = [-3 0 7] のとき、 関数の...

3년 초과 전

문제를 풀었습니다


チェッカーボードを作ろう
整数 n が与えられた時、以下の様な1と0を含むn×nの行列を作成しましょう。a(1,1) は1にする必要があります。 例: 入力 n = 5 出力 a が [1 0 1 0 1 0 1 0 1 0 ...

3년 초과 전

더 보기