Answered

How can I create nested pie/doughnuts chart?

this might be useful: https://www.mathworks.com/matlabcentral/fileexchange/56833-donut but it's a lot simpler than charts in y...

How can I create nested pie/doughnuts chart?

this might be useful: https://www.mathworks.com/matlabcentral/fileexchange/56833-donut but it's a lot simpler than charts in y...

3 meses ago | 1

| accepted

Answered

Error using plot Data must be numeric, datetime, duration or an array convertible to double.

f is a symbolic expression not a function or vector. you can create a function with this expression, then plot the value of func...

Error using plot Data must be numeric, datetime, duration or an array convertible to double.

f is a symbolic expression not a function or vector. you can create a function with this expression, then plot the value of func...

3 meses ago | 1

| accepted

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

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

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

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

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

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

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

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

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

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

5 meses ago | 0

| accepted

Answered

How to convert text file to string?

use fscan or fread F = fopen('Untitled.txt'); Text = fscanf(F,'%c')

How to convert text file to string?

use fscan or fread F = fopen('Untitled.txt'); Text = fscanf(F,'%c')

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

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

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

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

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

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

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

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

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

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

6 meses ago | 2

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

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

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

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

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

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

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

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

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

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

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

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

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

6 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];...

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

9 meses ago | 0