Answered

Filling a region in the complex plane in Matlab

Maybe something like this: f1=@(x,y) (1+x+x.^2-y.^2).^2+(y+2.*x.*y).^2-1; V = fimplicit(f1); hold on axis([-1.5 0.5 -1.5 1.5...

Filling a region in the complex plane in Matlab

Maybe something like this: f1=@(x,y) (1+x+x.^2-y.^2).^2+(y+2.*x.*y).^2-1; V = fimplicit(f1); hold on axis([-1.5 0.5 -1.5 1.5...

2 months ago | 0

Answered

how to skip the index of array

Maybe something like this: A = [1,2,1,2,4]; for i=1:length(A) B=1:6; B(A(i))=[]; disp(B); e...

how to skip the index of array

Maybe something like this: A = [1,2,1,2,4]; for i=1:length(A) B=1:6; B(A(i))=[]; disp(B); e...

6 months ago | 0

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

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

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

7 months ago

Answered

removing specific values in a cell array

Maybe something like this A = {1:10,1:10}; A{1}(A{1}<3|A{1}>8) = []; A{2}(A{2}<3|A{2}>8) = []; Naturally, it would be tediou...

removing specific values in a cell array

Maybe something like this A = {1:10,1:10}; A{1}(A{1}<3|A{1}>8) = []; A{2}(A{2}<3|A{2}>8) = []; Naturally, it would be tediou...

7 months ago | 1

Solved

Summing digits

Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

7 months ago

Solved

Most nonzero elements in row

Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

7 months ago

Solved

How to find the position of an element in a vector without using the find function

Write a function posX=findPosition(x,y) where x is a vector and y is the number that you are searching for. Examples: fin...

7 months ago

Solved

Get the area of the square.

Four circles are inscribed in the square ABCD. The perimeter of each circle is *aπ*. <<http://imgfz.com/i/UzgCJut.png>> Gi...

7 months ago

Solved

Find the area of the square

There are *n²* circles inscribed in the square ABCD. The perimeter of each circle is *aπ* <<http://imgfz.com/i/3wzCeAT.png>> ...

7 months ago

Solved

How many Christmas presents under the tree?

For many families at Christmas, each family member gives 1 present to every other family member. The main exception is that chil...

7 months ago

Solved

Juego de posiciones

Crea una función que ordene vectores de tal manera que los primeros números sean negativos ordenados de menor a mayor. Y después...

7 months ago

Solved

Squares of odd numbers upto a given range

Find the squares of odd numbers upto a given range. If Given x=6 return y=(1^2,3^2,5^2) y=1,9,25 If Given x=5 retu...

7 months ago

Solved

Construyendo matrices parte 2

Construye la siguiente matriz a partir de otros tres vectores/matrices. [ 1 8 15 3 3 3 3 2 9 16 3 3...

7 months ago

Solved

Who Has the Most Change?

You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...

7 months ago

Solved

Find the numeric mean of the prime numbers in a matrix.

There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

7 months ago

Solved

Remove any row in which a NaN appears

Given the matrix A, return B in which all the rows that have one or more <http://www.mathworks.com/help/techdoc/ref/nan.html NaN...

7 months ago

Solved

Pizza!

Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

7 months ago

Solved

Determine if input is odd

Given the input n, return true if n is odd or false if n is even.

7 months ago

Solved

Make a checkerboard matrix

Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...

7 months ago

Problem

Find the area of the square

There are *n²* circles inscribed in the square ABCD. The perimeter of each circle is *aπ* <<http://imgfz.com/i/3wzCeAT.png>> ...

7 months ago | 0 | 30 solvers

Problem

Get the area of the square.

Four circles are inscribed in the square ABCD. The perimeter of each circle is *aπ*. <<http://imgfz.com/i/UzgCJut.png>> Gi...

7 months ago | 0 | 30 solvers

Solved

Distance Between Points

Being n the number of points (If n = 3 there would be 3 points: A, B and C). The distance between each pair of points increases...

7 months ago

Solved

Electric Flux

Calculate the flux passing through a surface. E is electric field, A is area.

7 months ago

Solved

4xa

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y.

7 months ago

Problem

Distance Between Points

Being n the number of points (If n = 3 there would be 3 points: A, B and C). The distance between each pair of points increases...

7 months ago | 1 | 24 solvers

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

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

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

7 months ago