Azzera filtri
Azzera filtri

how to put several parts together in a call to function using file path and file name?

1 visualizzazione (ultimi 30 giorni)
This way everything seems to work because file dftregistration.m is in the current MATLAB directory
[outputGreg]=dftregistration(fft2(Frame),fft2(LightNorm),str2num(presicion{:}));
However, I am not sure how to achieve the same results using
[AlgoriphmName AlgoriphmPath]=uigetfile('*.m','Select Algoriphm used for realignment','dftregistration.m');
How to use AlgoriphmPath and AlgoriphmName in [outputGreg]= to get the same result like above?

Risposta accettata

Image Analyst
Image Analyst il 5 Giu 2013
If the file specified in the AlgoriphmName string is not on the search path, you'd need to use cd before you call it:
cd(AlgoriphmPath);
eval(AlgoriphmName);
By the way, in English algorithm has no "p" in it.

Più risposte (0)

Categorie

Scopri di più su File Operations in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by