Community Profile

photo

Abolfazl Chaman Motlagh


Last seen: 16 días ago Active since 2020

Statistics

All
  • Knowledgeable Level 3
  • Revival Level 1
  • Speed Demon
  • First Answer
  • Introduction to MATLAB Master
  • Promoter
  • Community Group Solver
  • Solver

View badges

Content Feed

View by

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

alrededor de 2 meses ago | 0

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

alrededor de 2 meses ago | 0

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

alrededor de 2 meses ago | 0

| accepted

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

alrededor de 2 meses ago | 0

| accepted

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

alrededor de 2 meses ago | 0

| accepted

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

alrededor de 2 meses ago | 0

| accepted

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

alrededor de 2 meses ago | 0

| accepted

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

alrededor de 2 meses ago | 0

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

alrededor de 2 meses ago | 0

| accepted

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

alrededor de 2 meses ago | 0

| accepted

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

alrededor de 2 meses ago | 1

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

alrededor de 2 meses 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...

alrededor de 2 meses 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...

alrededor de 2 meses 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...

alrededor de 2 meses 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; ...

alrededor de 2 meses 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...

alrededor de 2 meses 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...

alrededor de 2 meses 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...

alrededor de 2 meses 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...

alrededor de 2 meses 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...

alrededor de 2 meses 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 =...

alrededor de 2 meses 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.

alrededor de 2 meses 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 ...

alrededor de 2 meses 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...

alrededor de 2 meses 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...

alrededor de 2 meses 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];...

alrededor de 2 meses 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...

2 meses 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 meses 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 meses ago

Load more