Hi Everone,
I have a question in relation to the .
I fed into the MAtlab 2019a a simple instruction, i.e., mean of two variables (example underneath) and it would not solve it anyway
imean1=mean(abs(i_min_1(1,1)),i_max_1(1,1));
If I use it in a translated mathematical formula like underneath:
imean1=(abs(i_min_1(1,1))+i_max_1(1,1))/2;
then it works flwalwssly and very fine proceed with calculation.
Please let me know what could go wrong with it.
Many thanks in advance.
Andras

 채택된 답변

Adam
Adam 2019년 8월 8일

0 개 추천

doc mean
shows you the syntax of the mean function. It expects an array, not multiple arguments. Generally you take the mean of more than 2 inputs so having them as individual arguments would not be sensible.
mean( [ abs(i_min_1(1,1)),i_max_1(1,1) ] );
should work.

댓글 수: 1

Stephen23
Stephen23 2019년 8월 8일
Andras Gergely's incorrectly accepted "Answer" moved here:
Thanks Adam.
I followed a different synthax to solve my issue but this is one also works.
By now it is clear.
Many thanks for that.

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

추가 답변 (1개)

Andras Gergely
Andras Gergely 2019년 8월 8일

0 개 추천

Thanks MAdhan RAvi!
Best wishes. :)

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

제품

릴리스

R2019a

태그

질문:

2019년 8월 8일

댓글:

2019년 8월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by