필터 지우기
필터 지우기

matlab showing 0 for small number values product

조회 수: 7 (최근 30일)
Jay Hanuman
Jay Hanuman 2016년 11월 13일
댓글: Walter Roberson 2016년 11월 13일
I have matrix with elements have small values. I am taking product of some elements of matrix for 100 times. If I take matrix 10*10 then it shows output but when I take matrix 100*100 then it shows 0. I think it shows 0 because product appears very small value. so how to take product so this small value should display.

답변 (1개)

John D'Errico
John D'Errico 2016년 11월 13일
help format
Specifically, I'd suggest one of these:
format long g
format short g
  댓글 수: 5
Jay Hanuman
Jay Hanuman 2016년 11월 13일
yes I want more than e-323, so how to use sym or HPF
Walter Roberson
Walter Roberson 2016년 11월 13일
A = rand(5); %start with your standard floating point number
Asym = sym(A); %convert them to symbolic
B = Asym .^ 500; %raise them individually to the 500th power
num_digits = 50; %number of digits you want to see the result to
vpa(B, num_digits)

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

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by