필터 지우기
필터 지우기

In this file i have some mistakes,so please could you help me to make this file clear without mistakes

조회 수: 1 (최근 30일)
hi, in this file i have some mistakes,so please could you help me to make this file clear without mistakes.thanks
  댓글 수: 1
Jan
Jan 2017년 3월 25일
Easter is coming, but it would be more efficient if you mention, where the eggs are hidden. Obviously you have some information about the mistakes, when you know there are "some". So please share this knowledge with us. ;-)

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

채택된 답변

Walter Roberson
Walter Roberson 2017년 3월 26일
In the middle of your code you have
Function [meandsc] = gss('thre1,thre2')
That is not a valid function definition. function definitions cannot have literal strings in their arguments.
Something like
function [meandsc] = gss(thre1,thre2)
would be valid syntax.
Also, you have put a function definition after a script. That is not permitted until R2016b but is permitted from R2016b onward. You have an 'end' statement that matches the 'function' definition, telling MATLAB that the function definition ends. But after that you have more code that is not a function.
You appear to have attempted to combine several different .m into one .m

추가 답변 (1개)

Image Analyst
Image Analyst 2017년 3월 26일
One way to make the file "clear" is to add comments. I've analyzed my source code and find that 30-35% of my lines of code are a comment or have a comment on them. You have hardly any! That results in your code not being clear (understandable).

카테고리

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

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by