解決済み


Set the array elements whose value is 13 to 0
Input A either an array or a vector (which can be empty) Output B will be the same size as A . All elements of A equal to 13...

約1ヶ月 前

解決済み


Count up then down
Create a function that produces counting up from 0 up to n then down to 0 n=2 --> 0 1 2 1 0 n=3 --> ...

約1ヶ月 前

解決済み


Replace Vector Elements
Replace all elements in a vector which are equal to or smaller than zero with 0.1. Example: A = [1 2 3 -1 0 2 -3 -80]; ...

約1ヶ月 前

解決済み


Determine the length of a string of characters
Determine the length of a string of characters

約1ヶ月 前

解決済み


Volume of a box
Given a box with a length a, width b, and height c. Solve the volume of the box.

約1ヶ月 前

解決済み


Mass Conversion 1

約1ヶ月 前

解決済み


Sum of series I
What is the sum of the following sequence: Σ(2k-1) for k=1...n for different n?

約1ヶ月 前

解決済み


Create a two dimensional zero matrix
You have to create a zero matrix of size (mxn) whose inputs are m and n and the elements of your matrix should be zeros. Exam...

約1ヶ月 前

解決済み


Find the hypotenuse
Given a and b (the two sides of a right-triangle), find c, the hypotenuse.

約1ヶ月 前

解決済み


Back to basics 26 - Keywords
Covering some basic topics I haven't seen elsewhere on Cody. Return a cell array of strings of all MATLAB keywords.

約1ヶ月 前

解決済み


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

約1ヶ月 前

解決済み


Converts numbers into characters
Converts numbers into characters

約1ヶ月 前

解決済み


Circle Perimeter
Get the perimeter of the Circle by PI.

約1ヶ月 前

解決済み


Create a square matrix of multiples
Given an input, N, output a matrix N x N with each row containing multiples of the first element of each row. This also applies...

約2ヶ月 前

解決済み


Swap two numbers
Example Input: a = 10 b = 20 Output a = 20 b = 10

約2ヶ月 前

解決済み


Speed of car
Calculate the Speed of car given its Distance travelled and time taken in x and y respectively

約2ヶ月 前

解決済み


Determine Whether an array is empty
Input a matrix x, output y is TRUE if x is empty, otherwise FALSE.

約2ヶ月 前

解決済み


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

約2ヶ月 前

解決済み


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

約2ヶ月 前

解決済み


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

約2ヶ月 前

解決済み


Square a Number
Given an input x, return y, which is equal to the square of x.

約2ヶ月 前

解決済み


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

約2ヶ月 前

解決済み


Celsius to Kelvin
Convert Celsius degrees to Kelvin temperature.

約2ヶ月 前

解決済み


Back to basics 1 - Saving
Covering some basic topics I haven't seen elsewhere on Cody. Given an input variable 'x', save it to disk in a file named 'co...

約2ヶ月 前

解決済み


Number of 1s in a binary string
Find the number of 1s in the given binary string. Example. If the input string is '1100101', the output is 4. If the input stri...

約2ヶ月 前

解決済み


Get The Square Root Of Number Power (^) Three
Get the Square Root of number Power (^) Three.

約2ヶ月 前

解決済み


Scrabble Scores
Given a word, determine its score in <http://en.wikipedia.org/wiki/Scrabble Scrabble>. The input string will always be provi...

約2ヶ月 前

解決済み


Temperature conversion
Convert temperature in degrees Celsius (C) to temperature in degrees Kelvin (K). Assume your answer is rounded to the nearest Ke...

約2ヶ月 前

解決済み


Sum of diagonal of a square matrix
If x = [1 2 4; 3 4 5; 5 6 7] then y should be the sum of the diagonals of the matrix y = 1 + 4 + 7 = 12

約2ヶ月 前

解決済み


Matlab Basics - Convert a row vector to a column vector
Write a script to convert a row (e.g. x = [1 2 3]) to a column (e.g. y = [1;2;3]), your script should be able to do this for any...

約2ヶ月 前

さらに読み込む