Question

Stop a sum of numbers until a certain value is reached

If I have defined values Nmax = 15; A = [2 5 4 6 1]; I want to make a sum of each value of A in the order in which it is foun...

circa 19 ore ago | 1 answer | 0

Question

Fill a vector based on another vector

I know the title is somewhat confusing, but I hope you can help me. I need to make a code for a specific application, I am confu...

1 giorno ago | 1 answer | 0

Question

How to perform operations depending on a value in an array

Good day, Hopefully you can help me with a question, I have a data array, with 18 specific data. I want to make certain operati...

7 giorni ago | 1 answer | 0

Question

How can I polar plot in decibels?

I have the following results in dBs, I need to make a polar graph with these values, but I can not find the correct way to graph...

oltre un anno ago | 2 answers | 0

Question

How to round decimals to other decimal values already defined

Hello, I would like to request your support to know how to round certain decimal values to others closer. For example, if I ha...

circa 2 anni ago | 1 answer | 0

Question

Help to Invasive Weed Optimization code

Hello, I'm new student of optimization algorithms and I have developed the code of Invasive Weed Optimization, I've been reading...

circa 2 anni ago | 1 answer | 0

Question

Is the "fact command" equal to the "factorial command"?

I found an example to other function that use the command fact to solve all the problem but when run the code MatLab not reconog...

oltre 2 anni ago | 0 answers | 0

Question

Multidimensional Particle Swarm Optimization Code Example

I need to apply a pso code in another program that I have but I don`t understand so much how I can apply a pso code in more than...

oltre 2 anni ago | 1 answer | 0

Question

How I can obtain the numerical values of a symbolic results?

For example, I have this expression _-(5^(1/2)*i - (1 - 3*5^(1/4))^(1/2) + 5*i)/(8*pi)_, how I can obtain the numerical result?

oltre 2 anni ago | 1 answer | 0

Question

Definite integral with an exponential

I need to integrate this function _f=wn.*exp(1i.*2.*pi.*t)_ to get the numerical result, where the variable function is _t_, and...

circa 3 anni ago | 1 answer | 0

Question

Definite integral with complex number

I need to solve an integral of the function _f=(wn.*t).*exp(1i.*2.*pi.*t)_ where _wn=1_ and have complex numbers, it is a defini...

circa 3 anni ago | 2 answers | 0

Question

How can I plot a sphere in 3D?

I have to plot this equation to obtain a sphere wave=I.*exp(j.*(((k.*x.*sin(TETA).*cos(PHI))))+((k.*y.*sin(TETA).*sin(PHI)))...

circa 3 anni ago | 1 answer | 0