A résolu


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

plus de 5 ans il y a

A résolu


Matlab Basics - Create a row vector
Write a Matlab script to create a row vector of 10 consecutive numbers x = [1 2 3 4 5 6 7 8 9 10]

plus de 5 ans il y a

A résolu


Calculate some equation
Using given inputs x and z, make two outputs that are y1 = (xz)/(x/z)^2 + 14x^2 - 0.8z^2 y2 = x^z - z^x + (x/z)^2 - (z/x...

plus de 5 ans il y a

A résolu


Find square of given number
Find Square of any number

plus de 5 ans il y a

A résolu


Calculate Resistance 2
In this problem, you have to calculate Resistance R of a linear conductor having voltage V across it and current I is passing i...

plus de 5 ans il y a

A résolu


Calculate Resistance
Calculate Resistance R of a linear conductor having resistivity p, length l and area A

plus de 5 ans il y a

A résolu


Add 3 numbers
In this problem, you have to add three numbers a, b and c. Give output d = add(a,b,c)

plus de 5 ans il y a

A résolu


Calculate the square of a number (Super Easy)
The goal is to calculate the square (y) of a number (x). Good way to start MatLab for beginners.

plus de 5 ans il y a

A résolu


Nearest Numbers
Given a row vector of numbers, find the indices of the two nearest numbers. Examples: [index1 index2] = nearestNumbers([2 5 3...

plus de 5 ans il y a

A résolu


Volume and area of a sphere
Input(r) - radius Output([v,s]) - volume and area

plus de 5 ans il y a

A résolu


Beginner's Problem - Squaring
Try out this test problem first. Given the variable x as your input, square it by two and put the result in y. Examples: ...

plus de 5 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 5 ans il y a

A résolu


Matrix multiplication
Multiply two incoming matrices via matrix multiplication

plus de 5 ans il y a

A résolu


Square the input
Given a scalar or vector x, return the square of each element. Example x = [7 2] answer = [49 4]

plus de 5 ans il y a

A résolu


Convert degrees to radians
Given input in degrees, output to radians

plus de 5 ans il y a

A résolu


metre to feet converter
The idea is to make a converter, which exchange meters to feets. We use a factor of 1m = 3.281*1f. so 3m are equals to 9.843 m...

plus de 5 ans il y a

A résolu


Draw 'J'
Given n as input, generate a n-by-n matrix 'J' using 0 and 1 . Example: n=5 ans= [0 0 0 0 1 0 0 0 0 1 0 0 ...

plus de 5 ans il y a

A résolu


Calculate square and cube of number
Calculate square and cube of number x

plus de 5 ans il y a

A résolu


Area of a circle
Find the value for area of the circle if diameter is given

plus de 5 ans il y a

A résolu


square number
Square a number

plus de 5 ans il y a

A résolu


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

plus de 5 ans il y a

A résolu


Mile to Kilometer
x is mile and y is km

plus de 5 ans il y a

A résolu


Volume of Cylinder
Find the volume of a cylinder

plus de 5 ans il y a

A résolu


Area of a Square
Given the length x of the side of a regular square, find the area of the square, A.

plus de 5 ans il y a

A résolu


cube of number
find cube of number

plus de 5 ans il y a

A résolu


square of a number
find square of a given number

plus de 5 ans il y a

A résolu


square root
Find square root of given number

plus de 5 ans il y a

A résolu


Calculate volume of box
Calculate the volume of box,hiven its sides

plus de 5 ans il y a

A résolu


Find the volume of cone
Find the volume of cone, when given radius(r) and height(h).

plus de 5 ans il y a

A résolu


Calculate the volume of the cube.
Example n = 3; a = volume(n); a = 27

plus de 5 ans il y a

Charger plus