How to write matlab code for this equation?

 Accepted Answer

How about:
subarray = f(y1:yb, x1:xb);
Qs = sum(subarray(:)) - 0.5 * b^2;

More Answers (2)

How to write matlab code for this equation
ASinkc xe-jβz
ASinkc de-h(x-d)e-jβz

2 Comments

A * sin(k * c) * x * e - j * beta * z
A * sin(k * c) * d * e - h * (x-d) * e - j * beta * z
However, I suspect the e- might be an exponential . If so then the forms might be
A * sin(k * c) * x * exp(-j * beta * z)
A * sin(k * c) * d * exp(-h * (x-d)) * exp( -j * beta * z)
Of course there are other possible meanings, such as
A * sin(kc * x) * exp(-j * beta * z)
It would be easier if there had been an image of the formulae available.
Or even asin(kc) for the arcsine function.

Sign in to comment.

How to write a matlab code for the variable Step-size for improving conergence of Fx-LMS algorithm?

Categories

Find more on General Physics in Help Center and File Exchange

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!