MATLAB Answers


Write a function that takes a vector xyz and returns as output two variables

Louis Foust 님이 질문을 제출함. 27 Apr 2015
Hi, I'm new to MATLAB and i'm trying to solve this problem:
Write a function: named myAver that takes a vector xyz as input argument and returns as output two variables: scalar Mav which stores an average value of the vector and logic variable err. You cannot use MATLAB mean function.

  댓글 수: 1

Is there a specific portion that you are getting stuck on. As this is a homework problem you'll find few people to directly answer it for you. please read to how to phrase your homework questions for people to help you out here.

로그인 to comment.


답변 수: 1

Youssef Khmou 님의 답변 27 Apr 2015
Youssef Khmou 님이 편집함. 27 Apr 2015

try :
function [Mav,Err]=myAver(u)
% hint : use sum, length, std,...

  댓글 수: 3

Its generally best if you don't give a student (especially ones with novice questions for homework) the complete code for their homework. This helps nobody, and certainly not the student.
Please give us the full answer again!

로그인 to comment.

Translated by