문제를 풀었습니다


Matrix multiplication
Multiply two incoming matrices via matrix multiplication

7년 초과 전

문제를 풀었습니다


Calculate area of sector
A=function(r,seta) r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...

7년 초과 전

문제를 풀었습니다


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

7년 초과 전

문제를 풀었습니다


Add two numbers
Add two numbers (For beginners)

7년 초과 전

문제를 풀었습니다


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

7년 초과 전

문제를 풀었습니다


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

7년 초과 전

문제를 풀었습니다


Reshape a Vector
Write a function that accept three inputs. The first one is a row vector S. The second and third arguments are m and n which de...

7년 초과 전

문제를 풀었습니다


Generate vector according to sign of vector
Generate vector according to sign of vector Example: If A=[-2 0 5] then output must be[-1 0 1] meaning that for negative n...

7년 초과 전

문제를 풀었습니다


Sort the vector with the given index
Given x = [1 2 4 8 17] and t = [1 3 2 5 4] then y = [1 4 2 17 8].

7년 초과 전

문제를 풀었습니다


y equals x divided by 2
function y = x/2

7년 초과 전

문제를 풀었습니다


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

7년 초과 전

문제를 풀었습니다


Change matrix to vector2
From x = 4 3 5 1 5 1 To y = 4 3 5 1 ...

7년 초과 전

문제를 풀었습니다


Getting the row and column location from a matrix
This is a basic MATLAB operation. It is for instructional purposes. --- You may already know how to get <http://www.mathwo...

7년 초과 전

문제를 풀었습니다


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

7년 초과 전

문제를 풀었습니다


Y=X
Given an input variable x, output a variable y that is equal in value to x. Example: Input x = 1 Output y is 1 Inp...

7년 초과 전

문제를 풀었습니다


Multiply by 3
Given the variable x as your input, multiply it by three and put the result in y.

7년 초과 전

문제를 풀었습니다


Rotate matrix by -90 degrees
Rotate a Matrix by -90 degrees Example: X = 1 2 3 4 5 6 7 8 9 output = 7 4 ...

7년 초과 전

문제를 풀었습니다


Change matrix to vector
Vector is a matrix whose size is 1 x n or n x 1. Change matrix to vector. x = 4 3 5 1 ...

7년 초과 전

문제를 풀었습니다


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

7년 초과 전

답변 있음
Error in following code while converting cell to matrix
Hi, you can do it like this: V = {load('db1.mat'),load('db2.mat'),load('db3.mat'),load('db4.mat')}; n = cellfun(@field...

7년 초과 전 | 1

답변 있음
How to crop only selected part of an image automatically?
Hi It works. But you have used imresize and have changed the segments. Also your threshold for segments sizes (200) may be larg...

7년 초과 전 | 1

| 수락됨

답변 있음
matlab read only first letter from string
Hi, You should use a function to read your data like: M = csvread(filename) In your code formatspec = 'f%dK.csv';...

7년 초과 전 | 1

문제를 풀었습니다


the number of inputs
Find the number of the inputs of the function. example y = theinputnumber(x,k); function called theinputnumber has 2 in...

7년 초과 전

문제를 풀었습니다


Is it prime?
Given a number, check whether it is prime or not. If prime output is true, otherwise false.

7년 초과 전

문제를 풀었습니다


Get 1-4-3-4-4
Get the value of the indices in the title and assign it to an array

7년 초과 전

문제를 풀었습니다


The prisoner
"We want information, information, information." "Who are you?" Input can be a string or a number (array).

7년 초과 전

문제를 풀었습니다


Rotate array 90 degrees
Rotate the given matrix by 90 degrees. Example, A = [1 2 3 ; 4 5 6 ] B = rotated(A) = [ 3 6; 2 5; 1 4 ]

7년 초과 전

문제를 풀었습니다


Values in Array
How many values are in the array

7년 초과 전

문제를 풀었습니다


Sum the elements in either diagonal of a square matrix
Sum the elements of a square matrix that lie on either the major diagonal or anti-diagonal. (Include all elements that are part ...

7년 초과 전

문제를 풀었습니다


Matlab Basics II - Max & Index of Max
Write a function that takes a vector x, then returns both the max value in x and its location in the vector for example x ...

7년 초과 전

더 보기