how can i solve [parse error at 'clear': usage might be invalid matlab syntax]

5 ビュー (過去 30 日間)
Yattapu Yaswanth
Yattapu Yaswanth 2014 年 5 月 6 日
コメント済み: Steven Lord 2019 年 4 月 16 日
working on this from longtime get rid of all errors only one I cannot figure it out

回答 (3 件)

Chandrasekhar
Chandrasekhar 2014 年 5 月 6 日
編集済み: Chandrasekhar 2014 年 5 月 6 日
remove the end and clears statement and use it
  2 件のコメント
Yattapu Yaswanth
Yattapu Yaswanth 2014 年 5 月 6 日
same error it shows and may i know which end is to be deleted there are many....
Chandrasekhar
Chandrasekhar 2014 年 5 月 6 日
you should remove the end before the clear statement

サインインしてコメントする。


Star Strider
Star Strider 2014 年 5 月 8 日
It appears to you that you cannot run your function because the end statement terminates it and returns to the calling program. The function runs, but since there is no code between the function statement and the end statement, nothing is done. Put the end statement at the end of your code, and delete the clear statement. It is never a good idea to put clear in your function because it clears the function workspace, including all the arguments that have been passed to it.
The Detailed explanation goes here line invites you to document your function and its use. Explain what the function does, what the input arguments are, which ones are optional, and what the outputs are. It is for your benefit, and the benefit of anyone else who might use your function. I also put a creation date and revision history.

Zeeshan Salam
Zeeshan Salam 2019 年 4 月 16 日
help me how to solve this error?11.png
  1 件のコメント
Steven Lord
Steven Lord 2019 年 4 月 16 日
The ability to include functions inside script files was introduced in release R2016b. It appears you're using release R2016a. Move the first five lines of code in that file to a separate file (so the line starting with the function keyword is the first line in the amedfilt_calccc.m file.)

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeEntering Commands についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by