strong.mat file not found in MATLAB installation

11 vues (au cours des 30 derniers jours)
Marta
Marta le 23 Oct 2023
Modifié(e) : the cyclist le 24 Oct 2023
Hi all,
I am tyring to run the MATLAB example in my instalation.
But the command load('strong.mat') does not work. I look in my MATLAB instalation and I cannot find the file in the signal processing toolkit. So it is not possible to run the example.
Any ideas? I have the latest version of MATLAB.
  2 commentaires
Dyuman Joshi
Dyuman Joshi le 23 Oct 2023
There does not seem to be any "strong.mat" file in the directory.
However, another such example file, i.e. carsmall.mat from the Stats and ML toolbox is available (used in 1st example of gscatter) -
which strong.mat
'strong.mat' not found.
which carsmall.mat
/MATLAB/toolbox/stats/statsdata/carsmall.mat
Star Strider
Star Strider le 23 Oct 2023
I just now tried this (in the Command Window) in MATLAB Online (since that may be different than doing the same command here) —
which('strong.mat','-all')
'strong.mat' not found.
It apparently just doesn’t exist.
I have the Signal Processing Toolbox, so I should have access to the file in MATLAB Online as well, if it’s available. It isn’t.

Connectez-vous pour commenter.

Réponse acceptée

the cyclist
the cyclist le 23 Oct 2023
Modifié(e) : the cyclist le 24 Oct 2023
The reason is that starting with R2023a, the default MATLAB installation no longer install a local copy of the documentation. This question from the MW Support Team does not address your specific question, but has helpful info.
Your options are to install the documentation locally (using the instructions here), or go onto MATLAB Online to do that example.
Update: Please see also Walter's answer, which gives another handy option that I had forgotten about.
  2 commentaires
Dyuman Joshi
Dyuman Joshi le 23 Oct 2023
Does the documentation contain corresponding '.mat' files? Or are they a part of the toolbox?
Marta
Marta le 23 Oct 2023
Déplacé(e) : the cyclist le 24 Oct 2023
Thanks a lot for all your help!!!! Really appreciated!!

Connectez-vous pour commenter.

Plus de réponses (1)

Walter Roberson
Walter Roberson le 24 Oct 2023
You need to run
openExample('signal/SpeechSignalCompressionExample')
If you do not have the documentation (with examples) installed, then MATLAB will download the necessary files from Mathworks. (This does require that you have an internet connection.)
If you do have local documentation installed then the file should already be available -- but until you run the appropriate openExample command, the file name is something else completely.
  1 commentaire
the cyclist
the cyclist le 24 Oct 2023
@Marta, for any example you find online, there will generally be a button that looks like this
that will copy the openExample command (like the one Walter has shared here).
As long as you have the corresponding toolbox, you should be able to run it locally. (The same is true for one's ability to run it online -- you need the toolbox, if it is not a core MATLAB example.)
I had forgotten about this possibility when I posted my answer.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Produits


Version

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by