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

조회 수: 80 (최근 30일)
sama h
sama h 2014년 1월 10일
댓글: Youssef Khmou 2014년 1월 10일
how can write sigma in a formool in matlab

답변 (2개)

A Jenkins
A Jenkins 2014년 1월 10일
편집: A Jenkins 2014년 1월 10일
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.)
  댓글 수: 1
sama h
sama h 2014년 1월 10일

no I want to sum many number with

댓글을 달려면 로그인하십시오.


Youssef  Khmou
Youssef Khmou 2014년 1월 10일
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
Image Analyst
Image Analyst 2014년 1월 10일
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 2014년 1월 10일
Correct .

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Labels and Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by