How to write matlab code for this equation?

 Akzeptierte Antwort

Image Analyst
Image Analyst am 15 Mär. 2015

0 Stimmen

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

Weitere Antworten (2)

christopher bernard
christopher bernard am 6 Mär. 2016

0 Stimmen

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

2 Kommentare

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.
Image Analyst
Image Analyst am 6 Mär. 2016
Or even asin(kc) for the arcsine function.

Melden Sie sich an, um zu kommentieren.

shabana javed
shabana javed am 19 Nov. 2017

0 Stimmen

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

Kategorien

Mehr zu Contour Plots finden Sie in Hilfe-Center und File Exchange

Tags

Noch keine Tags eingegeben.

Community Treasure Hunt

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

Start Hunting!

Translated by