query about using a function

I have code for a function like we have inbuilt function in matlab.I mean that the code resembles the code that written for in biult matlab functions like plot stem etc...How am i suppose to use that function in my program??? i have attached the code which i got....how am i suppose to use it....??

回答 (2 件)

Amit
Amit 2014 年 1 月 19 日
編集済み: Amit 2014 年 1 月 19 日

0 投票

I dont see the file attached. However, once you open that function in matlab, you'll see something like tyhis on the first line:
function [a,b] = function_name(x,y,z) % function name will be different
Here, x,y,z are the inputs and a and b are the outputs.
You can use the function as:
[m,n] = function_name(x,y,z);
Just make sure that this function's .m file is in the same folder that you're in.

1 件のコメント

Dhanashree
Dhanashree 2014 年 1 月 19 日
please have a look at file i have attached and tell me have am i suppose to use it....i have attached the file now........

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

Dhanashree
Dhanashree 2014 年 1 月 19 日

0 投票

i have attached the file....tell me how am i suppose to use this file....

1 件のコメント

Amit
Amit 2014 年 1 月 19 日
type help rp_extract
it shows how to use for a batch music files or a single file.

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

カテゴリ

ヘルプ センター および File ExchangeFile Operations についてさらに検索

質問済み:

2014 年 1 月 19 日

コメント済み:

2014 年 1 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by