Anyone figure out how to send code from FireFox/Chrome to MATLAB for evaluation?

조회 수: 1 (최근 30일)
Eric Sampson
Eric Sampson 2013년 3월 6일
답변: Elen Walker 2018년 11월 1일
In the MATLAB Help Browser, you can right-click a text selection and choose 'Evaluate Selection' to evaluate it in the MATLAB Command Window. It would be super handy to be able to do the same by right-clicking a line(s) of MATLAB commands in FireFox/Chrome and selecting a command like 'Evaluate Selection in MATLAB'.
Anyone know how this could be done? In Internet Explorer I think you could do this in a Javascript bookmarlet or plug-in by using the ActiveXObject function to grab onto a MATLAB Automation Server handle, but this is only available in IE and not Firefox/Chrome. Anyone have ideas on how this could be done in non-IE browsers?
Cheers

답변 (2개)

the cyclist
the cyclist 2013년 3월 6일
  댓글 수: 1
Eric Sampson
Eric Sampson 2013년 3월 6일
I don't think so, or at least not as seamlessly as I'd like :) In that case it seems to me that you'd always need a browser tab open to the 'served' webpage, and then you could maybe copy-paste text into it for execution in the MATLAB engine. I could just as easily copy-paste directly into the MATLAB command window :) What I'm thinking of is the situation where you have some MATLAB commands in your browser, say from an online tutorial or in an email, and you could right-click the highlighted text and send it to your local MATLAB instance for evaluation.

댓글을 달려면 로그인하십시오.


Elen Walker
Elen Walker 2018년 11월 1일
In the MAT LAB Help Browser, you can right-click a content choice and pick 'Assess Selection' to assess it in the MAT LAB Command Window. It would be super helpful to have the capacity to do likewise by right-clicking a line of MAT LAB directions in IE/Chrome and choosing an order like 'Assess Selection in MAT-LAB.To know more follow the guidelines on err spdy protocol error

카테고리

Help CenterFile Exchange에서 Environment and Settings에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by