plot missing in matlab
Mostra commenti meno recenti
the problem is that when i asked to plot an audio file it gives an error on the line of the plot
1 Commento
Walter Roberson
il 26 Mag 2021
Please show how you are asking to do the plotting, and show how you create the variables that you pass in to the plot call.
Risposte (1)
Walter Roberson
il 26 Mag 2021
0 voti
You cannot plot() a file by name. You need to read the data such as by using audioread(), and plot the data that results.
8 Commenti
Ayman Shaban
il 26 Mag 2021
Ayman Shaban
il 26 Mag 2021
Walter Roberson
il 26 Mag 2021
What is the error message?
Note: you should be using
t = (0:size(g,1)-1)/fs;
plot(t, g)
Ayman Shaban
il 26 Mag 2021
Ayman Shaban
il 26 Mag 2021
Walter Roberson
il 26 Mag 2021
Please show the complete error message, everything that is in red.
Ayman Shaban
il 26 Mag 2021
Ayman Shaban
il 26 Mag 2021
Categorie
Scopri di più su Creating, Deleting, and Querying Graphics Objects in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!