How to successfully run bubble analysis code

6 vues (au cours des 30 derniers jours)
Alexander Hamilton
Alexander Hamilton le 3 Août 2015
Commenté : Geoff Hayes le 2 Déc 2015
Im doing a project that involves analysing bubbles under the application of ultrasound. This code I was given is used to simulate the bubble oscillation. Once the startup file has been run where values can be chosen, an error occurs in the'BubbleSimCallBack' function which I cant solve. The error message is:
'Error in BS_BubblesimCallback>DisplayPulse (line 42) [particle,pulse,simulation,graph]= ...
Error in BS_BubblesimCallback (line 22) [particle, pulse, linear, simulation, graph] = DisplayPulse;
Error while evaluating uicontrol Callback'
Im pretty new to Matlab but I think the error is most likely something small. If anyone was able to run the code successfully and explain what is wrong that would be great!
There are quite a few files needed, this is the link to the download: http://home.online.no/~fam.hoff/Bubblesim
  2 commentaires
Geoff Hayes
Geoff Hayes le 3 Août 2015
Alexander - you may want to post the source files rather than a zip file (which some may be reluctant to open).
As well, please include the error message that you are observing when you run the "startup" file.
Geoff Hayes
Geoff Hayes le 2 Déc 2015
Hatem Belal's answer moved here
Hi Alexander I did not find the software, I think it my be removed.I need this software to my work. could you send another link? Thanks

Connectez-vous pour commenter.

Réponse acceptée

Geoff Hayes
Geoff Hayes le 5 Août 2015
Alexander - when I run the software, the full error message is
Cannot find an exact (case-sensitive) match for 'BS_GUIParameters'
The closest match is: BS_GUIparameters in
/Users/geoff/Development/bitbucket_repos/matlab/testing2/Bubblesim/BS_GUIparameters.m
Error in BS_BubblesimCallback>DisplayPulse (line 53)
[particle,pulse,simulation,graph]= ...
Error in BS_BubblesimCallback (line 22)
[particle, pulse, linear, simulation, graph] = DisplayPulse;
Error while evaluating uicontrol Callback
I changed line 53 to
[particle,pulse,simulation,graph]= ...
BS_GUIparameters(particle,pulse,simulation,graph,'write');
so that the correctly spelt function name is used.
Re-running the startup and pressing the Display Pulse button on the GUI then leads to the following error
Undefined function 'WriteMessage' for input arguments of type 'char'.
Error in BS_ConstantSampleRate (line 24)
WriteMessage('Warning: No anti-alias filter. Signal Processing TB not found.', ...
Error in BS_PlotSpectrum (line 28)
[ti,hi,fs]= BS_ConstantSampleRate(t, h, fs );
Error in BS_PlotInitialPulses (line 27)
BS_PlotSpectrum(graph.spectra, pulse(1).t, 1e-6*pulse(1).p, graph.fmax, pulse(1).fs, 'pulse',
graph.symbol.incoming );
Error in BS_BubblesimCallback>DisplayPulse (line 60)
BS_PlotInitialPulses ( particle, pulse, linear, graph );
Error in BS_BubblesimCallback (line 20)
[particle, pulse, linear, simulation, graph] = DisplayPulse;
Error while evaluating uicontrol Callback
The WriteMessage function should probably be replaced with BS_WriteMessage as that seems to serve the same purpose (and is included in the package). Once you have made that change to the 4-5 files that require this update you can try re-running the app again.
Note that this package seems to be dependent upon the Signal Processing Toolbox so hopefully you have a license for it and will be able to proceed.
  1 commentaire
Alexander Hamilton
Alexander Hamilton le 5 Août 2015
Thanks you so much for the help Geoff

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by