フィルターのクリア

How to direct Matlab on which function to execute?

1 回表示 (過去 30 日間)
Louis
Louis 2014 年 11 月 12 日
コメント済み: Louis 2014 年 11 月 13 日
Hello,
Matlab has a PCA function, and I have implemented a PCA function.
In one script, I want to compare the results of Matlab's PCA versus mine. How can I do that?
I agree it is it not a wise idea to have conflict functions. A solution would be changing the name of my PCA, but I have many dependencies on my PCA so it is a hassle to change all the names.
Also, I can remove my PCA directory from the "path" in order to force matlab to use its function, but I don't see it as the correct way as well.
Is there a way to tell Matlab which PCA to use?
Thank you

採用された回答

the cyclist
the cyclist 2014 年 11 月 13 日
At the command prompt, type
which -all pca
to see the full path to MATLAB's pca command and yours.
Reference the full path to the MATLAB function when you want to use it.
  1 件のコメント
Louis
Louis 2014 年 11 月 13 日
Great, thank you

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDimensionality Reduction and Feature Extraction についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by