Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Matlab appears to use a different CSD.m routine – what is going on?

0
Posted

Matlab appears to use a different CSD.m routine – what is going on?

0

The signal toolbox of Matlab uses the function CSD.m to compute Cross Spectral Density estimates. In the latest Matlab revison (R2009a, Version 7.8.0.347), however, this routine has been replaced by the function CPSD.m to compute Cross Power Spectral Density estimates, although CSD.m still works but may be removed in the future. There are several practical work-arounds if you encounter a conflict between the CSD toolbox function CSD.m and the Matlab signal toolbox function CSD.m. For instance, it is possible to (temporarily) change the Matlab search path (in MatLab, click on the [File] menu and then on [Set Path…], and modify the search path order accordingly, or remove the path with the routine you don’t want to use). Alternatively, you may consider renaming (or copying) the CSD toolbox routine CSD.m located in the CSD toolbox subdirectory “../func” (e.g., SP2CSD.m would be an appropriate new name).

0

During prior releases of Matlab, the signal toolbox used the function CSD.m to compute Cross Spectral Density estimates. However, in Matlab revision R2009a (Version 7.8.0.347), this routine had been replaced by the function CPSD.m to compute Cross Power Spectral Density estimates, although CSD.m still worked. With the release of Matlab revision R2010a (Version 7.10.0.499), the original cross-spectral density function CSD.m has been completely removed from Matlab, so this is no longer an issue. However, if you encounter a conflict between the CSD toolbox function CSD.m and the Matlab signal toolbox function CSD.m while using a previous Matlab release, there are several practical work-arounds. For instance, it is possible to (temporarily) change the Matlab search path (in Matlab, click on the [File] menu and then on [Set Path…], and modify the search path order accordingly, or remove the path with the routine you don’t want to use). Alternatively, you may consider renaming (or copying)

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123