Solved

area of an annulus

Given the diameter d of the inner circle of the annulus. Given length z of a chord of the outer circle of the annulus. This chor...

3 meses ago

Solved

Distance walked 3D

suppose you go from x-y-z coordinates [3,4,2] to [0,0,2] to [0,1,2] to [1,1,2], to [1,1,20] then you walked 25 units of distance...

3 meses ago

Solved

03 - Matrix Variables 6

Make _fMat_ be a 5x3 matrix of random integers with values from -3 to 3 (Hint: use *randi*)

3 meses ago

Solved

Number of 1s in a binary string

Find the number of 1s in the given binary string. Example. If the input string is '1100101', the output is 4. If the input stri...

3 meses ago

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

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

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

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

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

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

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

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

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

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

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

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

4 meses ago | 0

Answered

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

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

4 meses ago | 0

| accepted

Answered

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

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

4 meses ago | 1

| accepted

Answered

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

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

4 meses ago | 0

Solved

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

4 meses ago

Answered

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

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

4 meses ago | 0

| accepted

Answered

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

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

4 meses ago | 0

Solved

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.

4 meses ago

Answered

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.

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.

4 meses ago | 0

| accepted

Answered

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

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

4 meses ago | 0

Solved

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

4 meses ago

Answered

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

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

4 meses ago | 0

| accepted

Answered

Poor performance of Yolov2 network

beside your insufficient dataset mentioned by Aditya Patil. maybe try to set 'LearnRateSchedule' on 'piecewise', and drop Learn...

Poor performance of Yolov2 network

beside your insufficient dataset mentioned by Aditya Patil. maybe try to set 'LearnRateSchedule' on 'piecewise', and drop Learn...

5 meses ago | 0

Solved

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

alrededor de 1 año ago

Solved

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

alrededor de 1 año ago

Solved

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

alrededor de 1 año ago