Réponse apportée
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...

environ 3 ans il y a | 0

Réponse apportée
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) - ...

environ 3 ans il y a | 0

Réponse apportée
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...

environ 3 ans il y a | 0

Réponse apportée
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...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 3 ans il y a | 1

| A accepté

Réponse apportée
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...

environ 3 ans il y a | 0

A résolu


Too Many Zeros, Dump Them!
Sometimes when I create a matrix, I use this syntax: a = zeros(1000,1000); But when the function ends, I find that I don'...

environ 3 ans il y a

A résolu


frame of the matrix
Given the matrix M, return M without the external frame.

environ 3 ans il y a

Réponse apportée
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...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 3 ans il y a | 0

A résolu


subtract central cross
Given an n-by-n square matrix, where n is an odd number, return the matrix without the central row and the central column.

environ 3 ans il y a

Réponse apportée
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.

environ 3 ans il y a | 0

| A accepté

Réponse apportée
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...

environ 3 ans il y a | 0

A résolu


Given a matrix, swap the 2nd & 3rd columns
If a = [1 2 3 4; 1 2 3 4; 1 2 3 4; 1 2 3 4]; then the result is ans = 1 3 2 4 1 3 2...

environ 3 ans il y a

Réponse apportée
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...

environ 3 ans il y a | 0

| A accepté

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

environ 3 ans il y a | 0

A résolu


Draw 'C'.
Given x as input, generate a x-by-x matrix 'C' using 0 and 1. example: x=4 ans= [0 1 1 1 1 0 0 0 ...

presque 4 ans il y a

A résolu


Draw 'B'
Draw a x-by-x matrix 'B' using 1 and 0. (x is odd and bigger than 4) Example: x=5 ans= [1 1 1 1 0 1 0 0 0 1 ...

presque 4 ans il y a

A résolu


Draw a 'N'!
Given n as input, generate a n-by-n matrix 'N' using 0 and 1 . Example: n=5 ans= [1 0 0 0 1 1 1 0 0 1 1 0 ...

presque 4 ans il y a

A résolu


Draw 'H'
Draw a x-by-x matrix 'H' using 1 and 0. (x is odd and bigger than 2) Example: x=5 ans= [1 0 0 0 1 1 0 0 0 1 ...

presque 4 ans il y a

A résolu


Draw 'J'
Given n as input, generate a n-by-n matrix 'J' using 0 and 1 . Example: n=5 ans= [0 0 0 0 1 0 0 0 0 1 0 0 ...

presque 4 ans il y a

A résolu


~~~~~~~ WAVE ~~~~~~~~~
|The WAVE generator| Once upon a time there was a river. 'Sum' was passing by the river. He saw the water of the river that w...

presque 4 ans il y a

A résolu


Draw a 'X'!
Given n as input Draw a 'X' in a n-by-n matrix. example: n=3 y=[1 0 1 0 1 0 1 0 1] n=4 y=[1 0 0...

presque 4 ans il y a

A résolu


Draw 'E'
Draw a x-by-x matrix 'E' using 1 and 0. (x is odd and bigger than 4) Example: x=5 ans= [1 1 1 1 1 1 0 0 0 0 ...

presque 4 ans il y a

A résolu


Is the Point in a Triangle?
Check whether a point or multiple points is/are in a triangle with three corners Points = [x, y]; Triangle = [x1, y1; x...

presque 4 ans il y a

Réponse apportée
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...

presque 4 ans il y a | 0

A résolu


Create a square matrix of multiples
Given an input, N, output a matrix N x N with each row containing multiples of the first element of each row. This also applies...

presque 4 ans il y a

A résolu


Getting the indices from a matrice
Getting the indices from a matrice. Inspired by Problem 645. Getting the indices from a vector by the great Doug Hull. Given a...

presque 4 ans il y a

A résolu


vectorization in N
For a given integer n (n>1), compute the sum f (i) (1 <= i <= n) where f (i) = 1 if n is odd and 2 otherwise.

presque 4 ans il y a

A résolu


Y=X
Given an input variable x, output a variable y that is equal in value to x. Example: Input x = 1 Output y is 1 Inp...

presque 4 ans il y a

Charger plus