error in command awgn

1 回表示 (過去 30 日間)
mohan gopal
mohan gopal 2011 年 10 月 20 日
i m using R2010a , i tried to add awgn to my data but when i tried to simulate it 'the awgn is my error " Attempt to execute SCRIPT awgn as a function: C:\Users\Admin\Documents\MATLAB\awgn.m" pls anyone try to solve this problem

採用された回答

Wayne King
Wayne King 2011 年 10 月 20 日
There is a file named awgn.m in this directory
C:\Users\Admin\Documents\MATLAB
that precedes MATLAB's awgn.m function on your path.
When you enter:
>>which awgn
you should see something like:
toolbox\comm\comm\awgn.m
You need to either remove the directory: C:\Users\Admin\Documents\MATLAB
from your path with
rmpath('C:\Users\Admin\Documents\MATLAB');
or if you need other files in that directory, move awgn.m out of there. Delete it, or copy it to a directory not on the MATLAB path. Enter
>>path
to see everything on the MATLAB path. The "bad" awgn.m is a script and you are tyring to call MATLAB's awgn.m, but because the other path comes first, MATLAB tries to use the script like a function.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAnalog Devices ADALM1000 Support from Data Acquisition Toolbox についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by