Resuelto


Find the mean of two vectors
Take two vectors, and output the mean of them (bonus if you don't use the in-built mean function)

más de 2 años hace

Resuelto


Write a code that will follow the equation y = x * (x + x) * x.
If x = 5, y = 5 * (5+5) * 5 = 250

más de 2 años hace

Resuelto


modulus of a number
find the modulus of a given number

más de 2 años hace

Resuelto


Divide by 4
Given the variable x as your input, divide it by 4 and put the result in y.

más de 2 años hace

Resuelto


square of a number
find square of a given number

más de 2 años hace

Resuelto


Create a Matrix of Zeros
Given an input x, create a square matrix y of zeros with x rows and x columns.

más de 2 años hace

Resuelto


length of a vector
Find twice the length of a given vector.

más de 2 años hace

Resuelto


Is my wife right?
Regardless of input, output the string 'yes'.

más de 2 años hace

Resuelto


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

más de 2 años hace

Resuelto


Find the product of a Vector
How would you find the product of the vector [1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0] times 2?; x = [1 : 0.5 : 6]; y ...

más de 2 años hace

Resuelto


Compute a dot product of two vectors x and y
x and y are input vectors, d is a number and contains their dot product

más de 2 años hace

Resuelto


Given a matrix, swap the 2nd & 3rd 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...

más de 2 años hace

Resuelto


Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.

más de 2 años hace

Resuelto


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

más de 2 años hace

Resuelto


Unit Matrix
Given n, you should return an n-by-n unit matrix. Example: If input is n=2 then A = [ 1 0 0 1 ] If input ...

más de 2 años hace

Resuelto


Convert from Fahrenheit to Celsius
Given an input vector |F| containing temperature values in Fahrenheit, return an output vector |C| that contains the values in C...

más de 2 años hace

Resuelto


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

más de 2 años hace

Resuelto


Matlab Basics - Absolute Value
Write a script that returns the absolute value of the elements in x e.g. x = [-1 -2 -3 -4] --> y = [1 2 3 4]

más de 2 años hace

Resuelto


Add two numbers
Given a and b, return the sum a+b in c.

más de 2 años hace

Resuelto


Replicate elements in vectors
Replicate each element of a row vector (with NaN) a constant number of times. Examples n=2, A=[1 2 3] -> [1 1 2 2 3 3] ...

más de 2 años hace

Resuelto


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

más de 2 años hace

Resuelto


Rank of matrix
Find the rank of given matrix

más de 2 años hace

Resuelto


Find minimum and maximum elements of an array
For a given array find minimum and maximum elements of an array and store minimum value in first index of output and maximum in ...

más de 2 años 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...

más de 2 años hace

Resuelto


Add two numbers
Add two numbers (For beginners)

más de 2 años hace

Pregunta


running for loop gives error " Row index exceeds table dimentions "
i want to extraxt specific range of data from a table names as "Raw", and finally find mean of selected data assigned to variabl...

más de 2 años hace | 2 respuestas | 0

2

respuestas

Pregunta


how to add a number in a variable in a multiple?
i want to generate a data from zero to 180 degree for that i write A = 0:45:180; so i will get A = 0 45 90 135 180 now i wa...

más de 2 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How to reduce precision of data greator than zero only? (Matlab R2019a)
Hello... Lets suppose i have a data stored in a variable A = [1.23323 45.24343 0.1 0.001 455.34543 ...

alrededor de 3 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How to detect which type of data user selected 'text' or 'excel' file via "uigetfile" and then perform further code?
i have written a code that allows user to input data and give both options of "text" and "Excel"..that is [filename, pathname]...

alrededor de 3 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How to import all sheets of excel file with "UIgetfile" option?
i m writing a code that fetch a excell file including all sheets and store that data in a Variable etc. What I've managed to do ...

alrededor de 3 años hace | 1 respuesta | 0

1

respuesta

Cargar más