how can write sigma in matlab???????

Antworten (2)

A Jenkins
A Jenkins am 10 Jan. 2014
Bearbeitet: A Jenkins am 10 Jan. 2014

0 Stimmen

If you are saying you want to put sigma, the greek letter σ, as a variable in a formula, you cannot. You must use english letters and numbers.
sig=3;
alp=5*sig;
(I wouldn't use the variable name sigma, because that is also a function.)
Youssef  Khmou
Youssef Khmou am 10 Jan. 2014

0 Stimmen

You have specify your question, sum as letter, symbolic , numeric??
1.sum(X), % sums the elements of the vector
2.sum(sum(X)) % sums the elements of matrix
3.for n=1...S=S+quantity % summation in loop
...

2 Kommentare

Image Analyst
Image Analyst am 10 Jan. 2014
Or maybe even the symbol sigma in a title or xlabel or ylabel or some other string on the GUI. Another way to sum all the elements is sum(X(:)) which works for X of any dimension.
Youssef  Khmou
Youssef Khmou am 10 Jan. 2014
Correct .

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Labels and Annotations finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 10 Jan. 2014

Kommentiert:

am 10 Jan. 2014

Community Treasure Hunt

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

Start Hunting!

Translated by