Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8577965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T20:16:46+00:00 2026-06-11T20:16:46+00:00

I usually use Matlab’s internal browser (via, say, the ‘web’ command), but it has

  • 0

I usually use Matlab's internal browser (via, say, the ‘web’ command), but it has given me a problem by sometimes not detecting when the user clicks next on an online survey I administer through Matlab. I’ve never had that problem with any external browser (Firefox, Chrome, IE). I want to close the browser automatically when the user gets to the end of the survey. I know the URL that the user will go to after finishing the survey, so can see if the URL of their browser is the one they will be at after finishing the survey.
Right now using the internal Matlab browser, I use:

[s,bwser] = web(url2, '-new', '-notoolbar', '-noaddressbox'); 
cloc = get(bwser, 'currentLocation'); 

and then check if cloc is equal to the given URL. I would love to do the same thing with an external browser. I know how to call the external browser and assign it a URL.
But how can I retrieve the current URL from that browser after the participant clicks on a link?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T20:16:47+00:00Added an answer on June 11, 2026 at 8:16 pm

    You could try this:

    function RunSurvey( startURL, finalURL )
        finalURL = lower(finalURL);
        hfig = figure( 'Menu','none','Name','Survey',...
            'ResizeFcn',@reSize,...
            'DeleteFcn',@figDelete);
        hExp = actxcontrol('Shell.Explorer.2',calcSize,hfig);
        Navigate(hExp,startURL);
        while (true)
            pause(1);
            current = lower(get(hExp,'LocationURL'));
            if ~isempty(strfind(current,finalURL))
                break;
            end
        end
        close( hfig )
    
    % Figure delete function
    function figDelete(src,evnt)
        hExp.delete;
    end
    
    function [size]=calcSize()
            pos = get(hfig,'Position');
        size = [2 2 pos(3)-5 pos(4)-20];
    end
    
    function reSize(src,evnt)
      if ~exist('hExp','var')
         return
      end
      move(hExp,calcSize);
    end % reSize
    
    end % RunSurvey
    

    Call using:

    RunSurvey('www.google.com','www.mathworks.com')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I usually use MySQL Query Browser for my queries, but I always run into
I need to retrieve a web content. I usually use wget but it's giving
I usually use XCode but was having a problem opening a file with this
I usually use Visual Studio Team System 2008 Source Control Explorer with TFS, but
I am doing string processing in Matlab and I usually use cell arrays to
I usually use sql parameters with queries, but in this case I need to
I usually use expressions like this CommandArgument='<%# Container.DataItemIndex.ToString() %> ' But I could not
I usually use ASP.net web forms for GUI, maybe one of most stateful technologies.
I usually use web applications in Visual Studio and the MSBUILD taks in Nant
I usually use 4 white spaces to indent C programs, but in order to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.