How can I download 'Orig_Sig'

2 ビュー (過去 30 日間)
Hind Aljallaf
Hind Aljallaf 2023 年 5 月 14 日
コメント済み: Walter Roberson 2023 年 5 月 17 日
I am trying to run a code but it tells me that "Orig_Sig" is a missing variable. The question is, we were not provided any link to download it, so how can install or load or download this variable. Nor does it allow me to make it equal to y, so it gives me an error that tells me there is no variable such as y?
  2 件のコメント
Walter Roberson
Walter Roberson 2023 年 5 月 14 日
Please show us the output for
whos -file input_data.mat
Cris LaPierre
Cris LaPierre 2023 年 5 月 15 日
You should probably ask the person who wrote the code.

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

回答 (1 件)

Sai
Sai 2023 年 5 月 17 日
Hi Hind,
I understand that you are getting an unrecognized function/variable error.
Th error occurs if the variable is not available in the MATLAB workspace while you are executing the code.
To avoid the error, ensure that the variable is present in workspace.
Since you are loading the data from ‘input_data.mat’ file and assigning the variable ‘y’ to ‘Orig_Sig’, make sure that the variable ‘y’ is present in that .mat file.
From the code I understand that you are trying to plot an audio signal and add noise to it.
Here are some ways to load an audio signal either from .mat file or read the audio using
[y,Fs] = audioread(audio_signal_from_Matfile)
Please refer to the below documentation for more information on audioread function
  1 件のコメント
Walter Roberson
Walter Roberson 2023 年 5 月 17 日
load handel
[Y, FS] = audioread(y);
Error using audioread
Expected input to be one of these types:

char, string

Instead its type was double.
I think you've made a mistake in the proposed code, @Sai -- that code could only work if audio_signal_from_Matfile were a character vector or string scalar that indicated a filename.

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

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by