필터 지우기
필터 지우기

Combining multiple M-files

조회 수: 4 (최근 30일)
Sherif
Sherif 2011년 3월 23일
답변: Shivani Gupta 2019년 5월 28일
How do I combine 3 m-files?
Run the m-files in the sequence files enumerated below.
  1. is to modulate a BPSK signal
  2. is to add AWGN
  3. is to detect and calculate BER
  댓글 수: 3
Walter Roberson
Walter Roberson 2011년 3월 23일
"Urgent" but no response from the author within 22 hours?
Jan
Jan 2011년 3월 24일
@Sherif: Please post the questions in this forum instead of sending emails to all users.

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

채택된 답변

Matt Fig
Matt Fig 2011년 3월 23일
Simply call them one right after the other
>> File1,File2,File3
.
.
.
EDIT Updated in response to an email from Sherif...
I looked at the files, found here for anyone else who is interested. These are scripts, and horribly named at that. The first thing you have to do is rename them so that the number is at the end of the name, not the beginning, as MATLAB doesn't recognize names like 1myfile. Change it to myfile1.
Then, looking at the code, we find horrific coding practices, not the least of which is growing huge arrays in FOR loops. Thus the files are very slow. Finally, the second file (or what we can only guess is the second file by the 2) calls a function AWGN, which I don't have. It turns out that this file is part of the communications toolbox, which is not listed as a requirement (go figure). If I had this file, I think the code would run.
So, if you have the communications toolbox, rename the files as I did, then call them one after the other. Though judging by the terrible coding practices, I would not guarantee any outcome whatsoever.
  댓글 수: 2
Walter Roberson
Walter Roberson 2011년 3월 23일
Unless they are functions and the outputs of one have to be fed in to the inputs of the other.
Matt Fig
Matt Fig 2011년 3월 23일
True, but more details will undoubtedly be forthcoming given the sparsity of the initial description.

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

추가 답변 (1개)

Shivani Gupta
Shivani Gupta 2019년 5월 28일
Hi, sir how can get combine two .m file ?? Pls it's urgent ur project

카테고리

Help CenterFile Exchange에서 WLAN Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by