Drawing upon general, user-created mfiles and .mat files for the Answers forum RUN feature
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Thanks to brilliant advice from Ameer Hamza, I have found a way to draw upon URL-posted .mat files as input to the Matlab Answers forums' new Run feature (now in beta-testing at the time of this writing), e.g,
S=load(websave('tst', 'https://www.mathworks.com/matlabcentral/answers/uploaded_files/414803/tst.mat'));
b=S.a+1
I was wondering if the same technique (or a different one?) could be expanded, so as to draw upon user-created mfunctions, scripts, and classdef files as well. Also, what is the life cycle of files that are "websaved" into whatever disk space is used by the Run feature? Do they just sit in some folder on a Mathworks computer forever, or are they purged the very moment the running of the code is complete?
1 Commento
Mario Malic
il 22 Nov 2020
There's also a similar bot that runs on MATLAB Discord channel, but it differs from the implementation on the documentation (you can open a MATLAB instance if you click on 'Try this example' button) website. On Discord server it looks like every user has its own workspace .mat file, that does stay there, until you run clear command. You can try who and dir to see if it's still left there.
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Environment and Settings 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!