문제를 풀었습니다


Is the input divisible by 3?
Return true if the input is divisible by 3 and false if not.

12년 초과 전

답변 있음
Undefined function or variable 'm'
It could help if you could format your code using the {}Code button in the question edit window. the Problem is m is not defined...

12년 초과 전 | 0

| 수락됨

문제를 풀었습니다


only input
Return the output without writing any code into the function.

12년 초과 전

문제를 풀었습니다


Celcius to Kelvin
Convert Celsius degrees to Kelvin temperature.

12년 초과 전

문제를 풀었습니다


Who invented zero?
We know the importance zero in computer science, mathematics... but who invented zero? Clue: He was the first in the line ...

12년 초과 전

문제를 풀었습니다


Celsius to Fahrenheit converter
Convert Celsius to Fahrenheit degrees.

12년 초과 전

문제를 풀었습니다


Will there be a new leader?
Simply answer the title.

12년 초과 전

문제를 풀었습니다


Try 1.5.4: Celsius to Fahrenheit
Write a program to convert an input given in Celsius to Fahrenheit. Examples: Input celsiusValue = 100 Output fahrValu...

12년 초과 전

문제를 풀었습니다


What's Your BMI?
Find the body mass index. For reference, please refer to Wikipedia here: <http://en.wikipedia.org/wiki/Body_mass_index body ...

12년 초과 전

문제를 풀었습니다


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

12년 초과 전

문제를 풀었습니다


Sum the numbers on the main diagonal
Sum the numbers on the main diagonal of an n-by-n matrix. For input: A = [1 2 4 3 6 2 2 4 7]...

12년 초과 전

문제를 풀었습니다


High school cafeteria
Given an input vector of positive integers, return a row vector with the primes first (in increasing order) and the composites n...

12년 초과 전

문제를 풀었습니다


Return 'on' or 'off'
When the input is true, return 'on', otherwise, return 'off'.

12년 초과 전

문제를 풀었습니다


kmph to mps
convert kilometer per hour to meter per second

12년 초과 전

문제를 풀었습니다


Given a 4x4 matrix, swap the two middle columns
If a = [1 2 3 4; 1 2 3 4; 1 2 3 4; 1 2 3 4]; then the result is ans = 1 3 2 4 1 3 2...

12년 초과 전

문제를 풀었습니다


Output any real number that is neither positive nor negative
Output any real number that is neither positive nor negative

12년 초과 전

문제를 풀었습니다


Reverse the elements of an array
Reverse the order of elements in an array: eg: input X = [ 1 2 3 ; 4 5 6 ; 7 8 9 ] o...

12년 초과 전

문제를 풀었습니다


Sorting
Assume that x is an n-by-2 matrix. The aim is to return the first column of x, but sorted according to the second column. Exa...

12년 초과 전

문제를 풀었습니다


2 b | ~ 2 b
Given a string input, output true if there are 2 b's in it, false if otherwise Examples: 'Macbeth' -> false 'Publius Cor...

12년 초과 전

문제를 풀었습니다


The Answer to Life, the Universe, and Everything
A variation of a previous Hitchhiker's Guide to the Galaxy problem. *Inputs:* Life, the Universe, and Everything *Output:*...

12년 초과 전

문제를 풀었습니다


Say something funny
Say something funny, or not. Your solution will be (fully automatically and objectively) scored based on how clever or funny ...

12년 초과 전

문제를 풀었습니다


Is A the inverse of B?
Given a matrix A and a matrix B, is A the inverse of B? >>A=[2,4;3,5]; >>B=[-2.5,2;1.5,-1]; >>isInverse...

12년 초과 전

문제를 풀었습니다


Back to basics 4 - Search Path
Covering some basic topics I haven't seen elsewhere on Cody. Return a string that is the user's portion of the current search...

12년 초과 전

문제를 풀었습니다


Who is the smartest MATLAB programmer?
Who is the smartest MATLAB programmer? Examples: Input x = 'Is it Obama?' Output = 'Me!' Input x = 'Who ?' Ou...

12년 초과 전

문제를 풀었습니다


So many choices
For inputs _n_ and _k_ (in that order), output the number of ways that k objects can be chosen from amongst n distinct objects. ...

12년 초과 전

문제를 풀었습니다


Circle area using pi
Given a circle's radius, compute the circle's area. Use the built-in mathematical constant pi.

12년 초과 전

문제를 풀었습니다


Multiply a column by a row
* Given a column vector C and and a row vector R. * Output a matrix M. * Every column of M equals to C multiplied by correspon...

12년 초과 전

문제를 풀었습니다


Arrange vector in ascending order
Arrange a given vector in ascending order. input = [4 5 1 2 9]; output = [1 2 4 5 9];

12년 초과 전

답변 있음
how to do it using matlab.
I think I understand your question. trapz is a numerical integration method to which you supply a set of discontinued numbers. t...

12년 초과 전 | 0

| 수락됨

답변 있음
how to do it using matlab.
doesn't trapz(A) solve your case?

12년 초과 전 | 0

더 보기