Resuelto


Sum of the Matrix Elements
Add up all the elements in a NxM matrix where N signifies the number of the rows and M signifies the number of the columns. E...

alrededor de 2 meses hace

Resuelto


OR
If a greater than zero or c less than 10, b = true, else, b = false.

alrededor de 2 meses hace

Resuelto


Count ones
Write a program to count number of ones (1s) in an integer variable input. For example: Input x=2200112231 output y=3 I...

alrededor de 2 meses hace

Resuelto


Binary Coder
Take an input number and print the binary value of this number.

alrededor de 2 meses hace

Resuelto


MATLAB 101: Conditional Product or Sum Calculator
Write a MATLAB function that accepts two integer numbers. If the product of the two numbers is less than or equal to 1000, retur...

alrededor de 2 meses hace

Resuelto


Find the Oldest Person in a Room
Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...

alrededor de 2 meses hace

Resuelto


AND
If a greater than 0 and n less than 10, b = true, else, b = false. (Checking a should be in one line by AND special sign in MAT...

alrededor de 2 meses hace

Resuelto


Side of an equilateral triangle
If an equilateral triangle has area A, then what is the length of each of its sides, x? Image courtesy of Wikipedia.

alrededor de 2 meses hace

Resuelto


Prime or No
If the number is prime, make theCase = "YES", else, make it "NO".

alrededor de 2 meses hace

Resuelto


Draw 'O' !
Given n as input, generate a n-by-n matrix 'O' using 0 and 1 . example: n=4 ans= [1 1 1 1 1 0 0 1 ...

alrededor de 2 meses hace

Resuelto


Draw 'H'
Draw a x-by-x matrix 'H' using 1 and 0. (x is odd and bigger than 2) Example: x=5 ans= [1 0 0 0 1 1 0 0 0 1 ...

alrededor de 2 meses hace

Resuelto


Sum of series VI
What is the sum of the following sequence: Σk⋅k! for k=1...n for different n?

alrededor de 2 meses hace

Resuelto


Rhombus
Get the area of the Rhombus using it's Diagonals.

alrededor de 2 meses hace

Resuelto


ASCii Code
Using Matlab get the ASCii for '?'

alrededor de 2 meses hace

Resuelto


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

alrededor de 2 meses hace

Resuelto


Draw 'I'
Given n as input, draw a n-by-n matrix 'I' using 0 and 1. example: n=3 ans= [0 1 0 0 1 0 0 1 0] n=...

alrededor de 2 meses hace

Resuelto


Draw 'C'.
Given x as input, generate a x-by-x matrix 'C' using 0 and 1. example: x=4 ans= [0 1 1 1 1 0 0 0 ...

alrededor de 2 meses hace

Resuelto


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

alrededor de 2 meses hace

Resuelto


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

alrededor de 2 meses hace

Resuelto


Weighted average
Given two lists of numbers, determine the weighted average as follows Example [1 2 3] and [10 15 20] should result in 33.3...

alrededor de 2 meses hace

Resuelto


The sum of the numbers in the vector
eg. [1,2,3]---->SUM=6

alrededor de 2 meses hace

Resuelto


Resistance of a light bulb
The current through two identical light bulbs connected in series is C Amperes. The total voltage across both bulbs is V Volts....

alrededor de 2 meses hace

Resuelto


All capital?
Are all the letters in the input string capital letters? Examples: 'MNOP' -> 1 'MN0P' -> 0

alrededor de 2 meses hace

Resuelto


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

alrededor de 2 meses hace

Resuelto


MATLAB 101: Replace Negatives with Zero
Write a MATLAB function that takes a numeric array (vector or matrix) of numbers and replaces all negative numbers with zero. Po...

alrededor de 2 meses hace

Resuelto


matlab indian players
answer is one of the indian matlab player(just for fun dont take serious)

alrededor de 2 meses hace

Resuelto


Square root of a number
Write a code that will output the square root of x.

alrededor de 2 meses hace

Resuelto


Draw '\'
Can you draw the sign '\' by zeros and ones? NOTICE: Be x-by-x matrix.

alrededor de 2 meses hace

Resuelto


Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
The given function returns the index of the maximum value in a given matrix. such as X=[4,3,4,5,9,12,0,5] Ans= 6 if maxim...

alrededor de 2 meses hace

Resuelto


Trimming Spaces
Given a string, remove all leading and trailing spaces (where space is defined as ASCII 32). Input a = ' singular value deco...

alrededor de 2 meses hace

Cargar más