Answered

Find the nonlinear equation

If you have a form of equations they should obey you should try fit that function on your data. you can use eather fit functions...

Find the nonlinear equation

If you have a form of equations they should obey you should try fit that function on your data. you can use eather fit functions...

1 year ago | 0

Answered

Integration of a function multiplied by an array

your y2 function return Array for every single number as it's input. syms x y1 = linspace(0,1,10); y2 = @(x) x.*y1; y2(1) a...

Integration of a function multiplied by an array

your y2 function return Array for every single number as it's input. syms x y1 = linspace(0,1,10); y2 = @(x) x.*y1; y2(1) a...

1 year ago | 0

| accepted

Answered

How to use sigmoid layer?

The Classification Layer assign a Class to highest probability using cross-entropy loss. so the output of the layer before class...

How to use sigmoid layer?

The Classification Layer assign a Class to highest probability using cross-entropy loss. so the output of the layer before class...

1 year ago | 0

Solved

Length of a short side

Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...

1 year ago

Answered

Can someone help me understand this code?

function throwAgain=MCO_throwAgain() define a function named MCO_thorAgain with no input and one output as throwAgain die=1; ...

Can someone help me understand this code?

function throwAgain=MCO_throwAgain() define a function named MCO_thorAgain with no input and one output as throwAgain die=1; ...

1 year ago | 1

Answered

Finding correlation between two row matrices

Use fitlm function. it report you the R-squared value. and fit the linear model. example: x=1:0.1:10; y=exp(x); Fitted_model...

Finding correlation between two row matrices

Use fitlm function. it report you the R-squared value. and fit the linear model. example: x=1:0.1:10; y=exp(x); Fitted_model...

1 year ago | 0

Answered

Write a function called sum_rows

sum function get dim (dimension which summuation operate on it) as second arguments. so just use : sum(A,2) a function : fun...

Write a function called sum_rows

sum function get dim (dimension which summuation operate on it) as second arguments. so just use : sum(A,2) a function : fun...

1 year ago | 0

Solved

Sum the Digits of a Number

Given an integer, sum the digits repeatedly until you end up with a single value less than 10. For example, if you add the di...

1 year ago

Solved

Binary numbers

Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...

1 year ago

Solved

Are you in XY plane?

Take a point P as an input position Vector (x,y,z). If you are in XY plane, return 1 as an output otherwise return 0. Example...

1 year ago

Solved

Project Euler: Problem 9, Pythagorean numbers

A Pythagorean triplet is a set of three natural numbers, a b c, for which, a^2 + b^2 = c^2 For example, 3^2 + 4^2 =...

1 year ago

Solved

Distance walked 2D

Suppose you go from x-y coordinates [3,4] to [0,0] to [0,1] to [1,1], then you walked 7 units of distance.

1 year ago

Solved

Project Euler: Problem 6, Natural numbers, squares and sums.

The sum of the squares of the first ten natural numbers is, 1^2 + 2^2 + ... + 10^2 = 385 The square of the sum of the first ...

1 year ago

Answered

Comparisons between string and double are not supported.

in your code nettotrain is eather "YOLOv2" or "SSD", but in training process and preprocessData function and some other lines yo...

Comparisons between string and double are not supported.

in your code nettotrain is eather "YOLOv2" or "SSD", but in training process and preprocessData function and some other lines yo...

1 year ago | 0

| accepted

Solved

Project Euler: Problem 1, Multiples of 3 and 5

If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23...

1 year ago

Answered

vectorization my user defined function

a simple quick solution is : time =[5,10;3,5;5,3;5,7;3,5]; cost =[6,3;4,3;7,10;10,5;14,9]; x=[1 1 1 1 1;2 2 2 2 2;1 2 1 2 1];...

vectorization my user defined function

a simple quick solution is : time =[5,10;3,5;5,3;5,7;3,5]; cost =[6,3;4,3;7,10;10,5;14,9]; x=[1 1 1 1 1;2 2 2 2 2;1 2 1 2 1];...

1 year ago | 1

| accepted

Answered

How to use deep learning for interpolation properly

Hi, The Sin(x) function is a complete nonlinear function, on the other hand your network is too simple to handle such a nonlin...

How to use deep learning for interpolation properly

Hi, The Sin(x) function is a complete nonlinear function, on the other hand your network is too simple to handle such a nonlin...

1 year ago | 1

| accepted

Solved

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

1 year ago

Solved

Back to basics 7 - Equal NaNs

Covering some basic topics I haven't seen elsewhere on Cody. Given 2 input variables, output true if they are equal, false ot...

1 year ago

Solved

area of an annulus

Given the diameter d of the inner circle of the annulus. Given length z of a chord of the outer circle of the annulus. This chor...

1 year ago

Solved

Distance walked 3D

suppose you go from x-y-z coordinates [3,4,2] to [0,0,2] to [0,1,2] to [1,1,2], to [1,1,20] then you walked 25 units of distance...

1 year ago

Solved

03 - Matrix Variables 6

Make _fMat_ be a 5x3 matrix of random integers with values from -3 to 3 (Hint: use *randi*)

1 year ago

Solved

Number of 1s in a binary string

Find the number of 1s in the given binary string. Example. If the input string is '1100101', the output is 4. If the input stri...

1 year ago

Answered

Calling function from another .m file

type this in your script: function A = stringorder(A) [M,N]=size(A); for i = 1:M-1 for j = 1:M-1 curr = A(j); ...

Calling function from another .m file

type this in your script: function A = stringorder(A) [M,N]=size(A); for i = 1:M-1 for j = 1:M-1 curr = A(j); ...

1 year ago | 0

Answered

Resnet50 pretrained network?

i think you have connection issue to Matlab add-on Explorer. if no solution works, you can download the model from matlab github...

Resnet50 pretrained network?

i think you have connection issue to Matlab add-on Explorer. if no solution works, you can download the model from matlab github...

1 year ago | 0

Answered

Issues with contour plot of f(x, y) = x/y.

those lines are not y=0. those are continues of the contour lines around the region for your given values. near y=0, z goes to +...

Issues with contour plot of f(x, y) = x/y.

those lines are not y=0. those are continues of the contour lines around the region for your given values. near y=0, z goes to +...

1 year ago | 1

Answered

Gauss- Seidel Error tolerance

you have an unclear statement in while.after first iteration the err is 3x1 vector and tol is a scalar. change the statement to...

Gauss- Seidel Error tolerance

you have an unclear statement in while.after first iteration the err is 3x1 vector and tol is a scalar. change the statement to...

1 year ago | 1

Answered

Finding the minimum cost of a matrix

If i get that right, you have an assignment task. so you want to solve this : your constraint should be : which i repres...

Finding the minimum cost of a matrix

If i get that right, you have an assignment task. so you want to solve this : your constraint should be : which i repres...

1 year ago | 1

| accepted

Answered

Get path from running app

if you mean path of location which the app comes up, can't you just use pwd? i use it before in StartupFcn. and it work correct...

Get path from running app

if you mean path of location which the app comes up, can't you just use pwd? i use it before in StartupFcn. and it work correct...

1 year ago | 0

| accepted

Answered

How to use dlgradient for computing second derivative?

Hi, You are using dlgradient wrong, first agument of dlgradient should be scalar. after 1 gradient from y respect to x. gradient...

How to use dlgradient for computing second derivative?

Hi, You are using dlgradient wrong, first agument of dlgradient should be scalar. after 1 gradient from y respect to x. gradient...

1 year ago | 0

| accepted