已解决


Calculate numerical integration.
x=0:0.01:1 y=@(x)x.^2 Using given two inputs(x and y), conduct numerical integration in x. (hint: trapz)

8 years 前

已解决


Output a vector which is table of 9
Output a vector which is table of 9

8 years 前

已解决


Find the maximum two numbers of every column of a matrix
Find the maximum two numbers of every column of a matrix. Example: If we input a matrix A = [ 1 2 4 6 0 3 ...

8 years 前

已解决


ascii value
let input='a' output=97

8 years 前

已解决


Sum the real and imaginary parts of a complex number
Sum the real and imaginary parts of a complex number. Example c = 1+2i has the solution 1 + 2 = 3

8 years 前

已解决


Convert a Cell Array into an Array
Given a square cell array: x = {'01', '56'; '234', '789'}; return a single character array: y = '0123456789'

8 years 前

已解决


Largest Prime Number
Given a matrix X, find the largest prime number in X.

8 years 前

已解决


Find out magnitude of vector
Find out magnitude of vector. Say x=[1 2 3], then answer must sqrt(1^2+2^2+3^2) Please don't use sum function. If you l...

8 years 前

已解决


Calculate the integral of the polynomial
for e.g. in = [3 2 1] out = [1 1 1 0]

8 years 前

已解决


Solving a quadratic equation
Given a, b ​​and c, Return the solution of the following quadratic equation: a*x^2 + b*x + c = 0.

8 years 前

已解决


Weave two vectors into one
Weave the two given vectors into one as shown below. Example: If a = [1 1 1] b = [0 0 0] then y = [1 0 1 0 ...

8 years 前

已解决


square root
Find the square root (y) of an input (x).

8 years 前

已解决


Calculate the nth Fibonacci number USING 'Golden Ratio' concept
f = [1 1 2 3 5 8 13 ...] If n=6, f(6)=8

8 years 前

已解决


Remove NaNs and numbers adjacent to NaNs
The aim is to remove the elements before and after NaN occurrences inside a vector. For example: x = [6 10 5 8 9 NaN 23 1...

8 years 前

已解决


Accessing elements on the diagonal
Access the diagonal elements of a matrix without 'diag' function

8 years 前

已解决


Make a Plot with Functions
Make a plot and test

8 years 前

已解决


Polynomial division
Divide a polynomial u by polynomial v and return the quotients only. Example: u = x^4+3*x^3+5*x+3 v = x^2+1 Answer: ...

8 years 前

已解决


Additive persistence
Inspired by Problem 2008 created by Ziko. In mathematics, the persistence of a number is the *number of times* one must apply...

8 years 前

已解决


Calculate circle's property
[A R]=function(r) r is radius, A is area of circles, R is circumference. A=pi*r^2 R=2*pi*r

8 years 前

已解决


Extract area
There are observed data c and its location (x,y) x=1:0.1:10 y=1:0.1:10 % x and y are used as inputs [X,Y]=mesh...

8 years 前

已解决


Calculate area of sector
A=function(r,seta) r is radius of sector, seta is angle of sector, and A is its area. Area of sector A is defined as 0.5*(r^2...

8 years 前

已解决


Calculate inverse matrix in square matrix
A=eye(3) Calculate inverse matrix of given input. B=function(A) ans = 1 0 0 0 1 0 ...

8 years 前

已解决


How to calculate log?
There is a log that have base 5. How to calculate? log5(x)?

8 years 前

已解决


Change matrix to vector
Vector is a matrix whose size is 1 x n or n x 1. Change matrix to vector. x = 4 3 5 1 ...

8 years 前

已解决


Change matrix to vector2
From x = 4 3 5 1 5 1 To y = 4 3 5 1 ...

8 years 前

已解决


Calculate cross product
Make function for cross product a=[1 3 2]; b=[2 4 1]; y=function(a,b) y=[-5 3 -2]

8 years 前

已解决


Make random permutation
Make random permutation that consist of random number from 1 to n.

8 years 前

已解决


Save variables
a=[1] Save variable a that is located in workspace into current folder. File name should be 'a.mat'

8 years 前

已解决


Solve the system of linear equations
4x - 2y +6z=8 2x + 8y +2z=4 6x + 10y +3z=0 Input is each coefficient of polynomial. For example, a=[4 ...

8 years 前

已解决


Conduct inner product using given matrix
a=[1 2 3]; b=[3 4 5]; y=function(a,b) Output y should be 26

8 years 前

加载更多