Statistiques
0 Problèmes
705 Solutions
RANG
N/A
of 290 021
RÉPUTATION
N/A
CONTRIBUTIONS
0 Questions
0 MATLAB Answers
ACCEPTATION DE VOS RÉPONSES
0.00%
VOTES REÇUS
0
RANG
of 19 621
RÉPUTATION
N/A
CLASSEMENT MOYEN
0.00
CONTRIBUTIONS
0 Fichier
TÉLÉCHARGEMENTS
0
ALL TIME TÉLÉCHARGEMENTS
0
CONTRIBUTIONS
0 Publications
CONTRIBUTIONS
0 Public Chaîne
CLASSEMENT MOYEN
CONTRIBUTIONS
0 Point fort
NOMBRE MOYEN DE LIKES
Feeds
A résolu
Area of an equilateral triangle
Calculate the area of an equilateral triangle of side x. <<http://upload.wikimedia.org/wikipedia/commons/e/e0/Equilateral-tr...
presque 7 ans il y a
A résolu
Length of the hypotenuse
Given short sides of lengths a and b, calculate the length c of the hypotenuse of the right-angled triangle. <<http://upload....
presque 7 ans il y a
A résolu
Is this triangle right-angled?
Given three positive numbers a, b, c, where c is the largest number, return *true* if the triangle with sides a, b and c is righ...
presque 7 ans il y a
A résolu
Complex number
For complex number c=a+bi, write code that will add a and b together.
presque 7 ans il y a
A résolu
Area of a Square
Inside a square is a circle with radius r. What is the area of the square?
presque 7 ans il y a
A résolu
Simple equation: Annual salary
Given an hourly wage, compute an annual salary by multiplying the wage times 40 and times 50, because salary = wage x 40 hours/w...
presque 7 ans il y a
A résolu
Matrix to column conversion
Given a matrix of any size, convert it into a column vector. e.g A=[10 20 30; 40 50 60] then, B = [10; 40; ...
presque 7 ans il y a
A résolu
Sum of odd numbers in a matrix
Find the sum of all the odd numbers in a matrix. Example x = [2 3 5 7 1 4 11] y = 27
presque 7 ans il y a
A résolu
convert matrix to single column
given any matrix, convert it to single column
presque 7 ans il y a
A résolu
Sum the 'edge' values of a matrix
Sum the 'edge' values of an input matrix (the values along the perimeter). Example [1 2 3 4 5 6 7 8 9] Output = ...
presque 7 ans il y a
A résolu
Matlab Basics - Convert a row vector to a column vector
Write a script to convert a row (e.g. x = [1 2 3]) to a column (e.g. y = [1;2;3]), your script should be able to do this for any...
presque 7 ans il y a
A résolu
Building matrices
If you have matrix A, create matrix B using matrix A as an "element" A = [1 2 3 4; 5 6 7 8...
presque 7 ans il y a
A résolu
Sum of diagonals elements of a matrix
Given a matrix, return the sum of all the elements across the diagonals. E.g. A = [1 2 3; 4 5 6; 7 8 9;...
presque 7 ans il y a
A résolu
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...
presque 7 ans il y a
A résolu
Square a Number
Given an input x, return y, which is equal to the square of x.
presque 7 ans il y a
A résolu
Create a Matrix of Zeros
Given an input x, create a square matrix y of zeros with x rows and x columns.
presque 7 ans il y a
A résolu
Flip the vector from right to left
Flip the vector from right to left. Examples x=[1:5], then y=[5 4 3 2 1] x=[1 4 6], then y=[6 4 1]; Request not ...
presque 7 ans il y a
A résolu
Square Diagonal
If n is the given number, then make a diagonal matrix of size 2*2 with the square of that number.
presque 7 ans il y a
A résolu
Dimensions of a rectangle
The longer side of a rectangle is three times the length of the shorter side. If the length of the diagonal is x, find the width...
presque 7 ans il y a
A résolu
Saving MATLAB session to a file
How to save MATLAB session to a file?
presque 11 ans il y a
A résolu
Make a diamond
Given n, odd number > 1, return n by n matrix consist of "null" and "*" characters arranged like a diamond. No toolbox funct...
presque 11 ans il y a
A résolu
Compute next 1000-day birthday milestone
Given a birthdate in DD-MMM-YYYY format, compute the next 1000-day birthday milestone. For example, Abraham Lincoln was born on ...
presque 11 ans il y a
A résolu
Vector of numbers divisible by 3
* Input(n) - any integer * Output(v) - vector with numbers divisible by 3(exept 0) starting from n to 0 Examples: * n=6...
presque 11 ans il y a
A résolu
Perimeter
Given a sequence of points forming a closed path (first and last points are coincident) return the perimeter value. For example...
presque 11 ans il y a
A résolu
I've got the power! (Inspired by Project Euler problem 29)
Consider all integer combinations of a^b and b^a for the integer values 2 ≤ a ≤ 4 and 2 ≤ b ≤ 5: 2^2=4, 2^3=8, 2^4=16,...
presque 11 ans il y a
A résolu
How many days does the cat take to climb out of the hole?
A cat accidentally falls down a hole with sloping but rough sides. It can climb out of the hole of height h metres, but for ever...
presque 11 ans il y a