How do I use single precision numbers in a summation? My result is not coming out as expected.
조회 수: 3 (최근 30일)
이전 댓글 표시
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1491977/image.png)
So this is the question I havve. However, when I change all the numeric values to single precision, it does not make a difference in the output. Any idea what I am doing wrong?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1491982/image.png)
any suggestions would be appreciated!
댓글 수: 0
채택된 답변
Walter Roberson
2023년 9월 25일
댓글 수: 4
Walter Roberson
2023년 9월 25일
Another hint:
P*ones(1,Q)
is one way to construct a vector of size 1 x Q that contains all P
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!