Question


Evaluating 2D function on 2D grid without using "for" loops
I have a function f(x,y) and I want to evaluate it on x,y grid. For example, f = @(x,y) x^2+y^2; x = 1:10; y = 1:5; %one...

4 years ago | 1 answer | 0

1

answer

Question


How can I numerically solve the following integration in matlab?
I have an equation of the following form: where A,B,C, and q are 3-by-3 matrix and Tr[...] represent trace. And here b=1e3...

4 years ago | 0 answers | 0

0

answers

Question


How to keep track of order eigenvalue in eig or eigs?
I have a matrix equation defined at each point of variable k. The equation is where and is a 6-by-6 matrix. Once I solve my...

4 years ago | 3 answers | 0

3

answers

Question


How can I copy latest data of Corona-virus cases from worldometers.info using a MATLAB code?
Is there any simple way to copy data from a table given on https://www.worldometers.info/coronavirus/ website link?

4 years ago | 1 answer | 0

1

answer

Question


Creating all possible combination of 0 and 1 in 2D array
Let the size of 2D matrix is (n rows, m cols). How can I create all possible combinations of 0 and 1 in this matrix?

4 years ago | 2 answers | 0

2

answers

Question


Generating combination of binary numbers
Variable and are some integers and . I want to create permutation of 1s and 0s in the order shown below. Let and A = [1...

4 years ago | 1 answer | 0

1

answer

Question


Steepest descent method algorithm
For practice purpose, I want to find minima of -humps() function. I have written the following code but it's not giving correct...

5 years ago | 1 answer | 2

1

answer

Question


storing value in 2D array in a parfor loop
I have something like following R = [1, 2, 3, 4, 5]; A1 = sparse(5,5); A2 = sparse(5,5); parfor i = 1 : size(A1,1) ...

5 years ago | 1 answer | 0

1

answer