Solved

Back to basics 22 - Rotate a matrix
Covering some basic topics I haven't seen elsewhere on Cody. Rotate the input matrix 90 degrees counterclockwise (e.g. [1 2; ...

presque 2 ans ago

Solved

Matlab Basics II - Count rows in a matrix
Write a function that returns that number of rows in a vector or matrix x example: x = [1; 2; 3] output = 3

presque 2 ans ago

Solved

Matlab Basics - Switching Assignments
Switch assignments for variables x and y, for example start with x = 1 and y = 3 end with y = 1 and x = 3 Do NOT simply r...

presque 2 ans ago

Solved

Array of Ones
Create a 100 X 100 array of ones.

presque 2 ans ago

Solved

Compare two input matrices
Check which input matrix has more elements. Return "1" if matrix A has more elements than matrix B. Otherwise return "0". Exa...

presque 2 ans ago

Solved

find the maximum element of the matrix
for e.g x = [1 2; 3 4] y = 4

presque 2 ans ago

Solved

Fahrenheit to Celsius converter
Convert Fahrenheit to Celsius degrees.

presque 2 ans ago

Solved

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

presque 2 ans ago

Solved

Close MATLAB with keyboard
Close MATLAB with keyboard without using mouse

presque 2 ans ago

Solved

Remove the vowels
Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...

presque 2 ans ago

Solved

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

presque 2 ans ago

Solved

Celsius to Kelvin
Convert Celsius degrees to Kelvin temperature.

presque 2 ans ago

Solved

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

presque 2 ans ago

Solved

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

presque 2 ans ago

Solved

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

presque 2 ans ago

Solved

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

presque 2 ans ago

Solved

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

presque 2 ans ago

Solved

Back to basics 8 - Matrix Diagonals
Covering some basic topics I haven't seen elsewhere on Cody. Given an input vector of numbers, output a square array with the...

presque 2 ans ago

Solved

Building matrices
If you have matrix A, create matrix B using matrix A as an "element" A = [1 2 3 4; 5 6 7 8...

presque 2 ans ago

Solved

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

presque 2 ans ago

Solved

Tricky timing
Write a function that takes between 0.5 seconds and 0.6 seconds to run.

presque 2 ans ago

Solved

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

presque 2 ans ago

Solved

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

presque 2 ans ago

Solved

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

presque 2 ans ago

Solved

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

presque 2 ans ago

Solved

kmph to mps
convert kilometer per hour to meter per second

presque 2 ans ago

Solved

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

presque 2 ans ago

Solved

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

presque 2 ans ago

Solved

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

presque 2 ans ago

Solved

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.

presque 2 ans ago