Filter löschen
Filter löschen

Codes for coherent state function?

4 Ansichten (letzte 30 Tage)
Abu Zar
Abu Zar am 13 Jan. 2023
Kommentiert: Abu Zar am 11 Feb. 2023
Summation n=0 to10 exp-abs(alpha)^2*alpha^n/sqrtfactorial(n)

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 13 Jan. 2023
syms alpha n
result = symsum(exp(-abs(alpha)^2 * alpha^n / sqrt(factorial(n)) ), n, 0, 10)
result = 
  12 Kommentare
Walter Roberson
Walter Roberson am 9 Feb. 2023
remove the sum() from resultsym to get length(alpha) by length(0:11), which would be removing the summation from the formula
Abu Zar
Abu Zar am 11 Feb. 2023
Hello sir,
I created this m.file to draw plot alpha vs Vnorm , but the vector is not the same length,I requetd you to look this file for my help to draw th plot.
Thank you

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by