Calculate mean and median when I have 3 variables (axes)

조회 수: 8 (최근 30일)
fadams18
fadams18 2018년 12월 17일
편집: fadams18 2018년 12월 17일
I want to plot a figure, say using the surf function.
I have 3 axes. Error, SNR, and MV
I want to find the median and mean of all my Errors and plot it against SNR and MV values
Question 1: Find means and median when i have 2 other variables/parameters ie SNR and MV
Question 2: Plot.
Thanks in advance.
Error =[0.99, 0.92, 0.45, 0.32, 1.2e-4 ...till the end ] % Error is a 1x60 data.
SNR = 10, 30, 50
MV= 0.1:0.2:0.9
  댓글 수: 2
Jan
Jan 2018년 12월 17일
I do not understand, what exactly you are asking for.
Error =[ ] % Error is a 1x60 data. for 5 iterations.
No, Error is the empty matrix. This is no valid Matlab syntax:
SNR = 10, 30, 50
This is not clear also: "that means for every iter there is a snr x mv x error data."
fadams18
fadams18 2018년 12월 17일
Ok for clarity lets just say Error is a 1x60 matrix. and i want to find the mean of this and plot against SNR and MV values.

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

답변 (1개)

madhan ravi
madhan ravi 2018년 12월 17일
doc mean
doc median
doc meshgrid
  댓글 수: 1
fadams18
fadams18 2018년 12월 17일
i appreciate ur input. but these things dont help me much. im pretty knew to matlab and not so good at programming

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

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by