Community Profile Abolfazl Chaman Motlagh

Last seen: 4 days ago Active since 2020

Statistics

All
• • • • • • • • Content Feed

View by

How can I detect a triangle in my image?
Hi. in case your problem is exactly what you attached. here is an easy solution i can provide: I = imread('image.jpeg'); %read ...

1 month ago | 0

How can I solve an Optimization problem?
you can use fmincon, this function minimize function in a constraint problem. but only constraint here is bounds of lambda. so o...

1 month ago | 0

input layer and flatten mismatch
The Flatten layer support sequence input only.  As i understand from your network architechture you don't need Flatten Layer...

1 month ago | 0

| accepted

Optimize a function with a sum of series
Hi , you don't need necessarily symboilic functionality for this problem. here is a simple solution. (you can run it in single ....

1 month ago | 0

| accepted

ResNet-50 training problem
this note is from official MATLAB documentation for trainingOptions , i think it's exactly what you're looking for. "When t...

1 month ago | 0

| accepted

How to convert text file to string?
use fscan or fread F = fopen('Untitled.txt'); Text = fscanf(F,'%c')

1 month ago | 0

| accepted

Solving a nonlinear equation
the eqn as you defined is a vector-value multi-variable function. fzero takes a scalar-value single-variable function. so maybe...

1 month ago | 0

| accepted

if statement is not working
the condition theta >= 41.19 & theta <= 90 is a logical vector with 20 values. if you want to calculate such a formula for those...

1 month ago | 0

Interp1 returns NaN for all values
According to documentation of interp1. the function returns NaN for points outside the domain. so check V and See if it's point ...

1 month ago | 0

| accepted

A problem using the app designer
in PlotFitButtonPushed function which you plot your graphs, by using figure you create new figure out of your app.UIFigure. use ...

1 month ago | 0

| accepted

How can I get the hessian matrix of a set of several functions?
The Hessian is officially defined for scalar value functions. depend on what application you want to use hessian, you may define...

1 month ago | 1

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 month ago | 0

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 month ago | 0

| accepted

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 month 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 month ago

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 month ago | 1

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 month ago | 0

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 month 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 month 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 month 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 month 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 month 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 month 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 month ago

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 month 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 month ago

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 month ago | 1

| accepted

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

2 months 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

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

3 months ago