A résolu


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]

environ 3 heures il y a

A résolu


print 'Hello W0rld'

environ 3 heures il y a

A résolu


Square
square root of x

environ 3 heures il y a

A résolu


Cody Matlab Version
What is the current Cody Matlab Release? *Output:* string *Examples:* '(R2012a)' or 'R2012a' Hint: We have mo...

environ 3 heures il y a

A résolu


Matlab Basics - Pick out parts of a vector
Consider x a vector of length >= 7 (there are at least 7 elements in the vector, write a script that extracts the 2nd element, a...

environ 3 heures il y a

A résolu


Kelvin to Fahrenheit
You can find a doc about it in here => https://www.rapidtables.com/convert/temperature/how-kelvin-to-fahrenheit.html x is kelvi...

environ 3 heures il y a

A résolu


Matlab Basics II - Operations and Matrix Dimensions
Write a function that takes two inputs, a & b, and outputs the sum and product of the two matrices. The matrices have OPPOSITE d...

environ 3 heures il y a

A résolu


Power Numbers
Find the n-th power of m.

environ 3 heures il y a

A résolu


Remove Duplicates
Remove duplicates from the vector of integers and display in sorted order

environ 3 heures il y a

A résolu


Find sum of alternate numbers in a vector
Find sum of alternate numbers in a vector starting from index 1

environ 3 heures il y a

A résolu


Cannon Ball
Given g (acceleration due to gravity) and desired altitude x, find the minimum ground velocity of a cannon ball to reach x.

environ 3 heures il y a

A résolu


raise 1/3
Raise a number to 1/3 power.

environ 3 heures il y a

A résolu


area

environ 3 heures il y a

A résolu


multiply by three
Given the variable x as your input, multiply it by 3 and put the result equal to y. Examples: Input x = 2 Output y is ...

environ 3 heures il y a

A résolu


Which one is More bigger?
we have two input like (x,y) our output (z) must wich one is bigger input.

environ 3 heures il y a

A résolu


Remove white space from the string
Remove the white spaces (trailing and leading) from the input variable

environ 3 heures il y a

A résolu


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

environ 3 heures il y a

A résolu


Simple String Concatenation
This is a simple problem involving taking two incoming strings, and outputting the concatenated string with a space separating t...

environ 3 heures il y a

A résolu


Max of a Vector
Write a function to return the max of a vector

environ 3 heures 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: ...

environ 3 heures il y a

A résolu


Half the length of the vector

environ 3 heures il y a

A résolu


number of groups
In a classroom, *n* students work on a special project and the other students work in groups of five. If there are 18 students i...

environ 3 heures il y a

A résolu


Compute LOG(1+X) in natural log
Compute LOG(1+X) in natural log

environ 3 heures il y a

A résolu


Find the distance traveled by a car given velocity and time.
A car is traveling at a constant velocity for a specific amount of time. The function should use the two inputs, velocity and ti...

environ 3 heures il y a

A résolu


Multiply pi
Multiply pi with x!

environ 3 heures il y a

A résolu


what's my tax amount this year ?
given an annual salary x and a tax rate i calculate the amount that you have to pay.Example x = 70000; i=.10 y_correc...

environ 3 heures il y a

A résolu


Find the minimal value in N*N Matrix
Suppose that we have N by N matrix, we try to find the minimal value in that matrix. examples: Input A=[1 2 3 5 6;52 58 56 45...

environ 3 heures il y a

A résolu


Display positive elements of matrix.
Display positive elements of matrix.

environ 3 heures il y a

A résolu


Vector creation using linspace
Create a vector y containing n uniformly spaced values between a and b, with a < b. Use linspace.

environ 3 heures il y a

A résolu


Find and replaces spaces from a input string with *
For a given input string str, find how many spaces are there in the string and replace those spaces with * e.g. str = 'this is ...

environ 3 heures il y a

Charger plus