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

casi 3 años hace | 0

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

casi 3 años hace | 1

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

casi 3 años hace | 0

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

casi 3 años hace | 0

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

casi 3 años hace | 0

| aceptada

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

casi 3 años hace | 1

| aceptada

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

casi 3 años hace | 1

| aceptada

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

alrededor de 3 años hace | 0

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

alrededor de 3 años hace | 0

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

alrededor de 3 años hace | 1

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

alrededor de 3 años hace | 1

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

alrededor de 3 años hace | 1

| aceptada

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

alrededor de 3 años hace | 0

| aceptada

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

alrededor de 3 años hace | 0

| aceptada

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

alrededor de 3 años hace | 0

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

alrededor de 3 años hace | 0

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

alrededor de 3 años hace | 0

Respondida
repeated value of a vector
a naive way is to use a loop for every index: x = [1,5,15,2]; % for example num = 2; % number of repeat you want index=1; f...

alrededor de 3 años hace | 0

| aceptada

Respondida
running for loop gives error " Row index exceeds table dimentions "
your minrange and maxrange now are vecotors with two value.if you want to put it in for loop, in data you should mention wich co...

alrededor de 3 años hace | 1

| aceptada

Respondida
I am in basic level in MATLAB , In the code i got the error as unrecoganised function or variable
you use a function which is not introduced yet. For every function, Create a New script, copy your function in it, save it with...

alrededor de 3 años hace | 0

Respondida
I want to know the difference between 1 and 1.0000
first of all log10(1) should be zero! but beside this, i think you are reporting your workspace wich is produced after some c...

alrededor de 3 años hace | 0

| aceptada

Respondida
regarding passing input as images to a function from two different folders
i think it is easier for you to use imagedatastore. use : images_left = imageDatastore('left_view_folder'); images_right = i...

alrededor de 3 años hace | 0

Respondida
I want to Calculate how much Time my code take to simulate. What changes in the code should be considered
use : tic; %% Your Code toc % or Time = toc; the output of calling toc, return how much time it takes from tic, to toc.

alrededor de 3 años hace | 0

| aceptada

Respondida
How to form a function using 'for loop' without 'sym' command
Assuming you want nA be function of phi, you can use symsum for summuation : m = 150; Aos = 40; syms phi k nAi =@(phi) sym...

alrededor de 3 años hace | 0

Respondida
How to solve single variable nonlinear trigonometric function?
maybe you forgot to use "d" in trigonometric functions. quick answer without optimizing the code: m = 0.7:0.01:1 ; b1 = 34.65...

alrededor de 3 años hace | 0

| aceptada

Respondida
Poor performance of Yolov2 network
beside your insufficient dataset mentioned by Aditya Patil. maybe try to set 'LearnRateSchedule' on 'piecewise', and drop Learn...

alrededor de 3 años hace | 0

Respondida
Issues with yolo v2 network
Hi everyone. I had similar problem with yolo. The RCNN , FRCNN and FasterRCNN work very well on my dataset and test dataset. but...

alrededor de 4 años hace | 0

Respondida
How to reshape array based on another array with nan values
b=logical(b); A=zeros(size(b)); A(b)=a; A(~b)=nan(sum(~b,'all'),1); output: A = 2 4 2 NaN 6 7 ...

alrededor de 4 años hace | 1

Respondida
How to save each image generated in a for loop?
Hi ,you Can use imwrite for saving images. Also use save for 'volume' and 'location'. (you can make datastore and write a Read_f...

alrededor de 4 años hace | 0

| aceptada