Feeds
已回答
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...
4 years 前 | 0
已回答
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...
4 years 前 | 0
已解决
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...
4 years 前
已解决
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...
4 years 前
已解决
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...
4 years 前
已回答
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...
4 years 前 | 1
已解决
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 + ...
4 years 前
已解决
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...
4 years 前
已解决
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...
4 years 前
已解决
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...
4 years 前
已解决
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>> ...
4 years 前
已解决
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...
4 years 前
已解决
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...
4 years 前
已解决
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...
4 years 前
已解决
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...
4 years 前
已解决
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...
4 years 前
已解决
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...
4 years 前
已解决
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...
4 years 前
已解决
Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...
4 years 前
已解决
Determine if input is odd
Given the input n, return true if n is odd or false if n is even.
4 years 前
已解决
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...
4 years 前
问题
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>> ...
4 years 前 | 1 | 56 个解题者
问题
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...
4 years 前 | 1 | 82 个解题者
已解决
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...
4 years 前
已解决
Electric Flux
Calculate the flux passing through a surface. E is electric field, A is area.
4 years 前
已解决
4xa
Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y.
4 years 前
问题
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...
4 years 前 | 2 | 39 个解题者
已解决
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 years 前
已解决
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 years 前
已解决
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 years 前