Solved


Calculate BMI
Given a matrix |hw| (height and weight) with two columns, calculate BMI using these formulas: * 1 kilogram = 2.2 pounds * 1 ...

4 months ago

Solved


Plot Damped Sinusoid
Given two vectors |t| and |y|, make a plot containing a blue ( |b| ) dashed ( |--| ) line of |y| versus |t|. Mark the minimum...

4 months ago

Solved


Calculate a Damped Sinusoid
The equation of a damped sinusoid can be written as |y = A.ⅇ^(-λt)*cos(2πft)| where |A|, |λ|, and |f| ...

4 months ago

Solved


Solve a System of Linear Equations
*Example*: If a system of linear equations in _x&#8321_ and _x&#8322_ is: 2 _x₁_ + _x₂_ = 2 _x₁...

4 months ago

Solved


Verify Law of Large Numbers
If a large number of fair N-sided dice are rolled, the average of the simulated rolls is likely to be close to the mean of 1,2,....

4 months ago

Solved


Find the Oldest Person in a Room
Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...

4 months ago

Solved


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

4 months ago

Solved


Calculate Amount of Cake Frosting
Given two input variables |r| and |h|, which stand for the radius and height of a cake, calculate the surface area of the cake y...

4 months ago

Answered
detect Circles and squares on the image using regionprops
try this I = imread('test.png'); imshow(I); I = rgb2gray(I); I = im2bw(I,0.01); [L ,num] = bwlabel(I); stats1 = regionprop...

4 months ago | 0

| accepted

Answered
Loop to write data in excel from 1 st iteration to n th iteration
for t = 0:1:10 a = cos(t).*[2 3;4 5] b = cos(t).*[6 5;4 6] c = a+b d = eig(c) r = 2*3*d w(:,t+1) = r end csvwrite(...

4 months ago | 0

| accepted

Answered
How can i plot this graph?
clear clc clf x = -0.5:0.001:1.8; f2=mod(x,1); f1=mod(-0.5*cos(2*pi*-x),1); plot(x,f1,'.'); hold on plot(x,f2,'.'); hol...

4 months ago | 1

Answered
How to print data from cell array to a text file ?
try fprintf(fid ,'%d %f \r\n', FINALSHEET{1,1}{row,:},FINALSHEET{1,2}{row,:});

4 months ago | 0

| accepted

Answered
What is the meaning of any_image(:,w:-1:1) in MATLAB
w:-1:1 start with w step -1 till 1 6:-1:1 -> 6 5 4 3 2 1

5 months ago | 0

| accepted

Answered
Adding 2 values of old vector into new vector of half size
b = a(1:2:end) + a(2:2:end) (this is not working for uneven amount of inputs)

5 months ago | 0

| accepted

Solved


Fibonacci Decomposition
Every positive integer has a unique decomposition into nonconsecutive Fibonacci numbers f1+f2+ ... Given a positive integer n, r...

5 months ago

Solved


How many Fibonacci numbers?
Find the number of unique Fibonacci numbers (don't count repeats) in a vector of positive integers. Example: x = [1 2 3 4...

5 months ago

Answered
Largest number in Matlab
65535 127

5 months ago | 0

Answered
Could anyone please solve this MATLAB operation x=7/84
7/8\4 = (7/8)\4 = 4/(7/8)

5 months ago | 0

Answered
Largest number in Matlab
max uint16 = 2^16-1 max int8 = 2^7-1

5 months ago | 0

Solved


Triangle sequence
A sequence of triangles is constructed in the following way: 1) the first triangle is Pythagoras' 3-4-5 triangle 2) the s...

5 months ago

Solved


Project Euler: Problem 2, Sum of even Fibonacci
Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 te...

6 months ago

Solved


Number of Even Elements in Fibonacci Sequence
Find how many even Fibonacci numbers are available in the first d numbers. Consider the following first 14 numbers 1 1 2...

6 months ago

Solved


Fibonacci-Sum of Squares
Given the Fibonacci sequence defined by the following recursive relation, * F(n) = F(n-1) + F(n-2) * where F(1) = 1 and F(1)...

6 months ago

Solved


Fibonacci sequence
Calculate the nth Fibonacci number. Given n, return f where f = fib(n) and f(1) = 1, f(2) = 1, f(3) = 2, ... Examples: Inpu...

6 months ago

Solved


Factorize THIS, buddy
List the prime factors for the input number, in decreasing order. List each factor only once, even if the factorization includes...

6 months ago

Solved


Get all prime factors
List the prime factors for the input number, in decreasing order. List each factor. If the prime factor occurs twice, list it as...

6 months ago

Solved


Generalised Hamming Number
Inspired by Project Euler n°204 and Problem 1308 by James A generalised Hamming number of type n, has no prime factor larger ...

6 months ago

Solved


Numbers with prime factors 2, 3 and 5.
Make a function which takes one positive integer n and returns a matrix with the numbers of the form (2^i)*(3^j)*(5^k) which are...

6 months ago

Solved


Find vampire numbers
A <http://en.wikipedia.org/wiki/Vampire_number vampire number> is a number v that is the product of two numbers x and y such th...

6 months ago

Load more