A résolu


Vector Element Multiplication
Take two incoming vectors, and output the element wise multiplication of the vectors.

plus de 3 ans il y a

A résolu


Calculate the number of elements in a matrix.
Calculate the number of elements in a matrix.

plus de 3 ans il y a

A résolu


Make an identity matrix whose diagonal elements are 1:n
For a given input n, make an n by n identity matrix that contains the elements 1:n along its diagonal. For example, if input=5: ...

plus de 3 ans il y a

A résolu


Check if inputted variable is a string or a number
Check if a inputted variable is a number or a string, given a string input (i.e. '1' is 1 and thus a number, 'a' is a string).

plus de 3 ans il y a

A résolu


Initialize a Natural Number matrix.
Given length of matrix initialize a matrix consisting of natural numbers from 1 to n: n = 10; x = [ 1 2 3 4 5 6 7 8 9 10]; ...

plus de 3 ans il y a

A résolu


Convert array of decimal numbers into hexadecimal numbers array.
Convert array of decimal numbers into hexadecimal numbers array. Example x =[ 32 33 34 35 36 37 38 ...

plus de 3 ans il y a

A résolu


Calculate the values of a polynomial.
Calculate the values of a polynomial.Input parameter p - vector of polynomial coefficients, x - matrix of the argument values. ...

plus de 3 ans il y a

A résolu


Resizing Matrices
Take an 4x3 matrix, and resize it to a 2x6 matrix

plus de 3 ans il y a

A résolu


Saving MATLAB session to a file
How to save MATLAB session to a file?

plus de 3 ans il y a

A résolu


Calculate the average value of the elements in the array
Calculate the average value of the elements in the array

plus de 3 ans il y a

A résolu


Draw a '0' in a one matrix!

plus de 3 ans il y a

A résolu


Converts numbers into characters
Converts numbers into characters

plus de 3 ans il y a

A résolu


Find the max element of the array
Find the max element of the array

plus de 3 ans il y a

A résolu


Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.

plus de 3 ans il y a

A résolu


to the 2 all elements
to the 2 all elements

plus de 3 ans il y a

A résolu


the average value of the elements
Calculate the average value of the elements in the array

plus de 3 ans il y a

A résolu


Double all elements in the array
Duplicate all elements in the array

plus de 3 ans il y a

A résolu


calculate the length of matrix
input 1 array, calculate the length

plus de 3 ans il y a

A résolu


Total resistance of a network of resistors in series and parallel
What is the total resistance of a network of resistors in series and in parallel? A matrix R contains the resistances (in Ohm) ...

plus de 3 ans il y a

A résolu


Function 1 (★)
Compute the value of <<https://i.imgur.com/AxKWLmE.gif>> for any given positive x.

plus de 3 ans il y a

A résolu


Variance computation (★)
Given a vector x with several values, compute the variance, whose formula is given by: <<https://i.imgur.com/Wg95KBE.gif>> ...

plus de 3 ans il y a

A résolu


Create a vector of the first n odd numbers (★)
If n = 10, your program should return a vector y, where y = [1 3 5 7 9 11 13 15 17 19].

plus de 3 ans il y a

A résolu


Sum of terms in a series 2 (★★★)

plus de 3 ans il y a

A résolu


Create a vector of n alternating ones and zeros (★★)
Given n, your output should be a vector y of numbers such that the first number is 1 and the numbers following it alternate betw...

plus de 3 ans il y a

A résolu


Swap the first and last columns (★★)
(copy of Prob 19) Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becom...

plus de 3 ans il y a

A résolu


find the value

plus de 3 ans il y a

A résolu


area of a sphere

plus de 3 ans il y a

A résolu


Surface area of a cone

plus de 3 ans il y a

A résolu


calculate Compound Intrest
Calculate Compound Intrest for given data

plus de 3 ans il y a

A résolu


Rotate a matrix for 180 degree
Rotate a matrix for 180 degree for eg: x=[1 2 3 4] y=[4 3 2 1]

plus de 3 ans il y a

Charger plus