Question

Finding the correct coefficients by guessing

I have a database of 30 matrices with size 100x100. When these matrices are multiplied with random coefficients between 0 and 1,...

6 månader ago | 0 answers | 0

Question

Drawing a circle of ones by using a pre-defined grid with pcolor

I have the following grid in the beginning of my code: a = 25, % This will be the radius of the circle r = linspace(0,sqrt(2)*...

7 månader ago | 1 answer | 0

Question

A calculation doesn't give the original picture when done in reverse

I'm working on a project with electric fields and I need to do some simple mathematical calculation. Given the and , which are ...

9 månader ago | 0 answers | 0

Question

How to write a better "if condition" to eliminate some unwanted matrices?

To be clear, I'm changing my question as follows with more details: ------ Here is the code segment I'm working on: N...

mer än ett år ago | 1 answer | 0

Question

How to find an optimized matrix by changing the elements of another matrix?

Suppose we have three 10x10 complex matrices and the following equation: |R = T * X|. Here T is a given fixed matrix. Now, w...

mer än ett år ago | 1 answer | 0

Question

How to eliminate equal matrices that are created randomly inside loop?

The code segment I'm working on is given below: NphaseSteps = 6; phases = exp( 2*pi*1i * (0:(NphaseSteps-1))...

mer än ett år ago | 1 answer | 0

Question

How to convert polar meshgrid to Cartesian meshgrid?

I prepared a Cartesian meshgrid (10x10) and then converted it to polar. After doing some calculations and filling all 100 elemen...

mer än ett år ago | 0 answers | 0

Solved

Find the sum of all the numbers of the input vector

Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

ungefär 2 år ago

Solved

Make the vector [1 2 3 4 5 6 7 8 9 10]

In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

ungefär 2 år ago

Solved

Times 2 - START HERE

Try out this test problem first. Given the variable x as your input, multiply it by two and put the result in y. Examples:...

ungefär 2 år ago