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

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

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

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

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

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

5 meses 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 +...

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

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

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

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

5 meses ago | 0

| accepted

Answered
What is the UB and LB in the following solver based approch optimisation question
your upper bound is infinity , lower bound is zeros: f = [2;3;2;-1;1]; Aeq = [3 -3 4 2 -1;1 1 1 3 1]; beq = [0;2]; lb = zer...

5 meses ago | 0

Answered
Vectorized parametric step function
it is not about your code. i test it here : X = 0.05:0.05:1-0.05 X(12) X(12)<0.6 this result is wrong. because : X(12) - ...

5 meses ago | 0

Answered
Converting 1-D indexed array to 2-D/3-D matrix
Your incresing order are usual for 3-D array. (X,Y,Z). just reshape the array, it would work: data = reshape(data,[2301 1201 24...

5 meses ago | 0

Load more