Filter löschen
Filter löschen

strong.mat file not found in MATLAB installation

3 Ansichten (letzte 30 Tage)
Marta
Marta am 23 Okt. 2023
Bearbeitet: the cyclist am 24 Okt. 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 Kommentare
Dyuman Joshi
Dyuman Joshi am 23 Okt. 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 am 23 Okt. 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.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

the cyclist
the cyclist am 23 Okt. 2023
Bearbeitet: the cyclist am 24 Okt. 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 Kommentare
Dyuman Joshi
Dyuman Joshi am 23 Okt. 2023
Does the documentation contain corresponding '.mat' files? Or are they a part of the toolbox?
Marta
Marta am 23 Okt. 2023
Verschoben: the cyclist am 24 Okt. 2023
Thanks a lot for all your help!!!! Really appreciated!!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Walter Roberson
Walter Roberson am 24 Okt. 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 Kommentar
the cyclist
the cyclist am 24 Okt. 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.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Produkte


Version

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by