Why no pasting allowed in "Matlab Answers"?

The editor for Matlab Answers apparently no longer allows pasting text from another source. I commonly will write notes to myself, and then use that content to submit to this forum. Why shut down this functionality???
Mark
Followup: I found that this limitation occurs when using the latest Firefox browser in Mac OS. It is not a problem with the Google Chrome browser.

3 Comments

Mark - what source are you trying to copy from and paste into your question? I seem to be able to copy and paste from MATLAB, Chrome, PDFs, etc.
Greg Heath
Greg Heath on 17 Mar 2019
Edited: Greg Heath on 17 Mar 2019
I am not able to paste from MATLAB R2018a
Greg
WHYYY?
Pasting stop working with Firefox with Firefox 54 or 55. The exact release of failure appears to depend upon operating system .
On Mac it is still possible to paste using command V with Safari .
Mathworks is testing a bug fix for use with Firefox

Sign in to comment.

 Accepted Answer

You can paste. We do it all the time. However, you have to use keyboard shortcuts:
  • Copy: ctrl+c
  • Cut: ctrl+x
  • Paste: ctrl+v
On a Mac, replace ctrl with command.
What appears in the rt-click menu in a browser is context driven by the browser and not a choice made by MathWorks.

7 Comments

Thanks for the information about shortcuts. I was already aware about these... The problem I describe occurs regardless of how copy, cut, and paste are implimented. As noted already, it seems that the issue is due to Firefox (at least the Mac version). Chrome has no problem with pasting for this forum.
I know this is an old thread but I consistently have a problem pasting into MATLAB answers running the Chrome Browser on a Windows 10 computer.
I have tried ctrl-c, ctrl-v many times and it has never worked. The only way I can get an image into MATLAB answers is to save it as a file, e.g. .jpg and attach it from file.
Any help would be welcome.
Images will not paste. If your image is a figure generated by code, I would suggest pasting the code, attaching any supporting files that are needed using the paperclip icon, and then run the code to create the figure here.
The one exception I've found is if I open a live script in MATLAB Online, I can copy/paste images from the text section of the live script and paste directly to Answers.
For example, consider this live script, inserted as a picture first:
If I open in MATLAB Online, copy, and then paste here, this is the result. By running the code in MATLAB Answers, then I can get the corresponding figure to appear here as well.
------------------------------------------------------------------------------------------
The displacement of a mass-spring-damper system can be described with the following initial value problem:
Let's solve this problem for the case where mass m = 1 kg, spring constant k = 9 N/m and damping coefficient c = 0 N-s/m.
m = 1; % kg
k = 9; % N/m
c = 0; % N-s/m
Let's also apply a periodic forcing function (Newtons)
syms y(t)
eqn = m*diff(y,t,2) + c*diff(y,t) + k*y == 6*cos(3*t);
and initial conditions .
Dy = diff(y,t);
cond = [y(0)==0, Dy(0)==0];
% Solve
ySol(t) = simplify(dsolve(eqn,cond),500)
ySol(t) = 
Plot the displacement x for seconds.
fplot(ySol,[0 2*pi])
title('Displacement vs Time')
xlabel('Time (s)')
ylabel('Displacement (m)')
Jon
Jon on 31 May 2022
Edited: Jon on 31 May 2022
Thanks so much for your answer.
I was hoping to be able to capture a portion of my screen using a tool like GreenShot, or Windows snipping tool, put the captured screen shot into my clipboard, and then paste it using ctrl-v. I think you are saying that this is not possible. Just wanted to confirm.
It is not currently possible. I tested in Chrome on Windows 10 using Snagit. I can copy a screenshot to my clipboard, but it does not paste here.
OK Thanks. I don't know if you have access to any internal Mathworks wishlist, but would be nice to be able to copy and paste screen shots. Particularly for questions involving GUI's and Simulink
You can submit suggestions under the Create Service Reequest option here.

Sign in to comment.

More Answers (0)

Categories

Find more on Environment and Settings in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!