You are now following this channel
- You will see updates in your content feed.
- You may receive emails, depending on your notification preferences.
You are now following this topic
- You will see updates in your content feed.
- You may receive emails, depending on your notification preferences.
[DISCONTINUED] MATLAB Answers Wish-list #5 (and bug reports)
Latest activity Reply by Rena Berman
on 17 Jan 2024
This is the 5th installment of the wish-list and bug report thread.
This topic is the follow on to the first Wish-list for MATLAB Answer sections and second MATLAB Answers Wish-list #2 (and bug reports). The third started out as New design of the forum - grey on white and the fourth MATLAB Answers Wish-list #4 (and bug reports) is also growing so large it is slow to load and navigate.
Same idea as the previous ones: one wish (or bug report) per answer, so that people can vote their wishes.
What should you post where?
Next Gen threads (#1): features that would break compatibility with previous versions, but would be nice to have
@anyone posting a new thread when the last one gets too large (about 50 answers seems a reasonable limit per thread), please update this list in all last threads. (if you don't have editing privileges, just post a comment asking someone to do the edit)
268 Comments
Now that moving answers/comments is possible, we kind of need these objects to have accessible timestamps with a resolution better than 24h. When multiple people are posting comments on each other's comments-as-answers, it gets a bit difficult to untangle the thread without knowing the order of events. The sequential identifier numbers are useful to some degree, but comments and answers are not comparable in that manner; furthermore, once an object is moved, it's no longer in-sequence.
A lot of other sites will show rough timestamps, but a mouseover will reveal the full timestamp. That'd be fine.
I wish that the Categories feature be much more useful. Check out hte categorization of this Question:
Scroll over the right and we see: Gaming / Historical Contests. If I was actually trying to find this Question, or others like it, I don't think Gaming would be the first Category I'd check in the "Filter By" pane. I've seen a lot of cases where the categorization seems not useful. Calls into question the utility of the Filter By pane in general for finding interesting content, IMO. As an example, this question is also categorized the same way.
I've alos noticed that many questions are not categorized at all. Any idea why that is? I assume that means such questions can't be found via the "Filter By" pane either?
I have been complaining about the AI categorization in other channels. It is often pretty far off. For a while I tagged the Questions with "miscategorized" to flag them, but there were so many of them that I mostly gave up and stopped looking at the categorization.
I've been spending a lot of time browsing old content and making use of the RHS "See Also" related forum links ... and I think they're less useful than expected. The related forum links seem to be drawn from a small pool of frequently garbage questions, many of which are unanswered or answerable. I see the same ones all the time.
I don't know why the pool is so shallow, but it is, and that's frustrating. I'm half inclined to delete some of the unanswerable ones just to get them out of the pool. While maybe cleanup is in order, why is it so persistent at recommending things with no demonstrated interest?
With the search tool and sidebar in mind, the difficulty in finding relevant content is what has made me more inclined to simply provide direct links to things I think are relevant. Even then, I find myself going back and updating answers to add links to newer threads/answers. It's hardly maintainable.
But that got me thinking about the value of being able to have some curation done by humans. I already keep a growing list of links to reference answers myself, and I know I'm not the only one. Sometimes I wish I could just make it public. I have no idea how it would be implemented, and I doubt anyone ever will, but I think it could be incredibly valuable if we could create something like custom public/private "collections" or "playlists" of content (threads/answers/comments).
The idea really struck me when I saw John D'Errico posting a tutorial on doing exponential curve fits, and I realized that there were a lot of good curve fitting examples that I wish I could still find in this giant sea. I think about Stephen23's tutorial threads, some of the "How to ask" threads, and meta threads like this.
Let's say you loaded up the "Why you should avoid dynamically named variables" thread. You look over in the sidebar and there's a little section that says "Part of the Mega Tutorials collection by Stephen23", and there's a list of links to content that an actual human decided was relevant for a particular reason that's probably described by the name of the collection.
Let's say you add an answer or comment to a collection, maybe the answer can have a little widget at the bottom that links to the collection so that a user can just browse it.
I know, I know. It's hardly a well-defined proposition, but the post is long enough already. It's just an idle thought that might provoke some opinions.
I find myself using them as templates. If I already have something written, I will just use my clipboard and paste it back once the quick reply has overwritten it.
I thought quick replies would be great. I do have a couple quick replies set up, but I think I've found that the only scenario that I'm comfortable with a canned response is when I'm probing junk nonsequitor/copypasted answers before shoveling them. Maybe I'd feel different if I were more active on current general questions.
I prefer to either put the links inline in the explanation or at the end of the answer with some context. Quick replies aren't conveniently inserted in a half-written answer.
I have a small number (7 right now) of Quick Replies for various topics, some of which (like my "Dynamic variables" Quick Reply) link to Answers that I frequently reference. I find this to be a lighterweight version of Adam's Trello board and a more portable solution than DGM's flat file (which I used prior to the introduction of Quick Reply but had some challenge keeping synchronized between my work and home machines.)
@Adam Danz See you're way ahead of me. I just have a giant text file with poorly delineated categories :D. I find that it's valuable to add some sort of description to each link to describe why it's been cataloged or what things it demonstrates.
Still, it's largely up to me to remember what's in the catalog.
I admit that the way I collect this wouldn't be suitable for a public list of links. Besides the terse descriptions, much of it is simply for me to have quick references to my own answers so that I have something to adapt upon.
Bear in mind it may well be an artifact of my browsing behavior. I've had a habit of just browsing down every rabbit hole provided by the "for you" recommended list on the Answers front page. I browse (and answer) a lot of old low-traffic threads related to image processing or image editing.
I'd take that for a spin and see if I could rustle up some instances, but it won't load for me at the moment. That tends to happen fairly often when my connection is slow.
Similarly, sidebar links won't always load on slow connections either, so it's difficult to search for good examples but from memory right now.
There are some that I recall by name. Bear in mind, these aren't the worst. They're just the ones that are common enough that I can get links without browsing for hours.
There are plenty that are perfectly valid questions or answers, but they just show up way more often than expected, while much better, higher-traffic/value threads with multiple good answers rarely ever do.
I have noticed that after I answer some of these old questions, I can reload the page and the sidebar is changed for the better (usually). Is it just that old unanswered questions are relevant to old unanswered questions? I imagine questions like "how do i do a thing with a thing" don't really provide much information to work from. Even still, within the scope of junk threads, I know the pool is large enough that I'd expect to see more variety in junk recommendations.
As an aside while we're talking about the sidebar, why are unanswered links formatted with the same style as accepted answers?
As far as screensharing meetings, that's not going to happen. Much of the time, I can barely use the site on my connection. I have no control over when and how bad my connection gets. It's safe to assume that I have less than zero bandwidth to spare and that any attempt at voice/video/screencast will be reduced to an hour of getting disconnected repeatedly without communicating a single thing. Without exception, that has been the sum of all my experiences attempting such things.
That Trello board seems like a huge amount of work. On the other hand answering all the questions here is a huge amount of work as well. So perhaps looking at a way to let such work be useful for multiple people makes sense.
Hi DGM - You mentioned that the See More links seem to be drawn from a small pool of low quality question threads. Can you tell me more about what you're seeing so I can understand the issue more thoroughly? Specifically, it would be very helpful if you could tell me:
- What you were searching for?
- What question(s) you were on?
- Which See More links were low quality/unexpected?
This would help us pinpoint the root cause.
If it's more convenient, I'd be happy to set up a brief meeting where you could share your screen and walk us through some of the things that you've been seeing. Feel free to contact me at: kmillard@mathworks.com
Thanks!
Several years ago I started tracking a selection of my (and others') answers so that I could find them again quickly.
I use a Trello board where each list is a topic (e.g. "Data types') and the cards in each list are sub-topic (e.g. "structures", "cell arrays", "timeseries"). When you open a card (2nd image below), it is further broken down into categories of solutions. Over the years it's become large and sometimes requires some clean-up but overall, it's a big time saver relative to searching for the content in the forum.
This is to say, I support DGM's human-curation idea.
Thanks for your feedback on the quality of the links in "See Also". I'm a UX Designer on both the Search and Answers teams; this is definitely an issue we need to look into and I'll forward your feedback to both teams.
Best - Kent
Sometime a poster posts approximately the same quesiton more than once, for whatever reason. Is there a way for a moderator to merge such duplicate posts, if it is suggested to the mods, and if a moderator agrees? The advantage of merging the questions is that the various answers and comments woudl be in one place for all to see. A possible disdvantage might be allocaiton of answer points, if there are accepted answers in multiple versions.
Sorry if this was already asked and answered. I search this thread and Matlab Answers for "merge" and did not see it already asked.
And I was just throwing another somewhat related editor function in the suggestion hopper while talking of such things...
@Sam Chak, yes we knew exactly what he meant, because many of us have thought the same thing. There was no misunderstanding of what he meant.
I think @William Rose was referring to multiple discussion threads opened by the same poster, and asked for opinions whether it is okay to have the feature or a tool to selectively merge the unanswered new thread with the old thread of close variations on the same topic, if the Mods/MVPs (and maybe the OP) agree.
The comments should be auto-sorted by date/time.
Anyway, the poster has clarified the reason of opening multiple threads.
- https://www.mathworks.com/matlabcentral/answers/1813140-calculate-work-has-been-done-by-pressure-detailed-explanation-inside?s_tid=srchtitle
- https://www.mathworks.com/matlabcentral/answers/1815170-resultant-vector-from-three-different-location-and-normal-vector-of-a-plane?s_tid=srchtitle
- https://www.mathworks.com/matlabcentral/answers/1811345-work-calculation-from-applied-pressure?s_tid=srchtitle
- https://www.mathworks.com/matlabcentral/answers/1812140-get-the-displacement-component-which-is-perpendicular-to-the-triangle-finite-element?s_tid=srchtitle
- https://www.mathworks.com/matlabcentral/answers/1810475-volume-formed-by-a-moving-triangle?s_tid=srchtitle
On a very few I've done something in that vein and noted that I had posted author X's comment/answer. But it is time-consuming to do...an automatic merge function if an editor flags two or more as duplicates could be useful as starting point from the flagging option, maybe??? That all gets into a lot of manual effort though, and most of those of this ilk are of questionable value, anyway, it seems to me...
I flag them as duplicates (if they are actual duplicates and not variations on the same theme).
@William Rose No. We can move posts within a single discussion thread but cannot move to post to a totally different thread. However you can edit it and copy and paste it from one to the other but that would be a very interactive/tedious editing operation, though you could do it if you thought it was worth the trouble. You can't assign authors though. So if author1 replied in thread 1 but not thread 1 and you copied the reply to thread 2, it would show up with your name. If author 1 is in both threads, then you can edit either one and it will retain the author 1 ownership (and just show that you edited it).
Well, I skimmed a bunch of these threads (you might have noticed) and I didn't see anything about this sort of thing, so I'll just throw this idea out there.
I would feel a lot more comfortable if I were able to give some sort of reason or substantiating information when I delete an answer/comment. This usually seems to cross my mind when I'm faced with what I regard as spam in the form of seemingly random chunks of code/text which have been copied and pasted from other comments/answers or from other threads without any added commentary. I'd like to be able to say "comment is a verbatim duplicate of this one" or "this is a partial chunk of code copied from this unrelated thread over here".
I have no idea if there's any review on these deletions or if the "this is spam" checkbox actually changes anything. I think of what it's like moderating spam through the "manage spam" page. If I were to see any of these posts show up there, I would often have no way to know that they were copied and pasted garbage posted on unrelated threads. Since many are copypasta of legitimate comments and answers, initial appearances would strongly suggest they're not spam.
Then again, if deleted items just disappear into the abyss without review, I'd only be satisfying my desire to prove some modicum of reason or due diligence. Any thoughts?
It would be nice as a feedback to the original poster -- That's a good point. I occasionally see things deleted on threads that I follow, and it just says "[user] deleted an answer on [question]". Having that little bit of commentary added to the notification would be nice to know for anyone following the thread.
Speaking of fat-fingering things, I've come close a few times. Partly because I really need a new mouse, and partly because the pages on the site really like to jump around after I've scrolled. Sometimes you end up clicking on something four inches above/below the cursor. Similarly, the recent inconsistent location of the upvoting button has led to clicking on the flag button when I was trying to get a permalink. Maybe I need new eyeballs too.
I didn't know the spam marking fed the AI, but that makes sense. It kind of makes me wary about marking copy-pasted things as spam. I fear I'd be training it to flag legitimate content.
I only really brought up the "manage spam" page as an example of the hazards of decontextualized manual review. I usually try to visit the content in-context and see if it makes sense. ... but yeah, some of them are extremely obvious (and persistent).
"mark as spam" is (automatically) used as input to the AI that (tries to) detect spam.
"closed" questions can be reviewed (and occasionally someone bothers to re-open one.)
The entries in the spam logs that look like legitimate posting content: for those you often have to examine the user name or user profile to see that the posts are intended as spam, such as if the username turns out to contain the URL for a gambling site.
I think there is a reason you need 3k reputation points to delete things. It means you have been Walter-levels of active for a year (like Madhan), or fairly active for several years (like plebs like me). The idea is that you have proven to be able to make decisions and have some motivation to make this site better. You don't have to delete things yourself if you don't feel comfortable to do so. Simply flag it (or not) and someone may at some point come along and take action.
I suspect the lack of free text feedback is because that would require manual interpretation, or vast numbers on the scale of YouTube/Facebook. The checkbox is probably only there to feed it to the automatic spam filter.
Providing a reason for a deletion (or at least having the option to provide one) would be a nice-to-have, but only people who are already invested as frequent users are allowed to do that. It would be nice as a feedback to the original poster, but I doubt it would improve anything much. The reason for closing a thread is also not easy to find (it's in the activity feed and on this page). I have never fat-fingered a deletion, so that type of accidents also seem unlikely (I tend to flag first which helps in this regard, and I must admit I have forgotten the spam check box at times).
I noticed a minor issue with hyperlink.
Clicking the link (marked with yellow below) in my Content Feed takes me to the wrong position in Question, close to the comment https://se.mathworks.com/matlabcentral/answers/1450984-what-should-go-in-a-next-generation-matlab-x#comment_1993700 near the end of the Question. However, the hyperlink itself is ok, i.e https://se.mathworks.com/matlabcentral/answers/1450984-what-should-go-in-a-next-generation-matlab-x#comment_2066594
Clicking the link (marked yellow below) in the "header section" of the Question takes me to the correct comment.
I checked this issue and a second time an hour later with refreshed pages.
Windows 10 and Firefox. Both are recently updated.
I always thought it just did that because I have it set to expand all comments.
It's annoying, but I kind of expect websites to jump all over the place uncontrollably anyway.
P.S. Yeah, I'm using Firefox.
I demonstrated this to MATLAB (Rena) and she has some theory on the reason. Unfortunately it was not fixed in the new Answers code they rolled out 2 days ago. It did fix the missing/hidden comment bug though.
Actually it's not a minor bug. It's extremely annoying for me. I've found a workaround though. It's particularly bad for very long threads. You end up not a comment or two away but many screens away from where you should be. The workaround is to go up to the top and click on the last activity there are the top of the screen in the discussion thread. If you do that, you should land on the correct location.
The two hyperlinks to this particular comment works correctly with Edge. However, with Firefox the Content Feed hyperlink still takes me to the wrong (same) position in the page.
This is a known problem that affects at least Firefox. (I do not know if it affects other browsers; all the reports I have seen have been from people who happen to use Firefox.)
It would be really nice if we could double click a function name in our Answers response, click some toolbar icon, and have it convert that word in our response to the URL for the online MATLAB documentation for that function.
Since smart-sense can put in the links, I wonder why it can't do something to automagically highlight them some how as well -- at least with settings here (that I've made no known changes to any defaults I'm aware of, anyway), they're essentially indistinguishable from ordinary text. I think there may be a color change, but it's not enough I can really even tell that for sure. I (sometimes) will use <> to surround, but it's more time/effort than typically take unless pasting a remote link with the CTRL_K route in which case have to edit the display text anyways, generally.
However, the doc link, while useful, doesn't have links to base functionality -- other than functions, it doesn't know about keywords where those could be the most helpful/pertinent to the poster/question raised. I tried to link to <for> the other day -- it didn't know anything about it.
I just type ‘@doc:’ then type enough of the function name to bring up the appropriate function in the drop-down menu (that magickally appears at that point), and click on the one I want. I generally use bold+underline+monospace for function links so I have to go back and do that, however once I highlight the function name that’s straightforward.
Thanks for describing your workflow @Image Analyst--this is very helpful. As you pointed out, step 3 does not trigger the dropdown--I agree with you that it should. I'll talk with the developer about this. Thanks again.
Kent, it's an improvement, and works fine if I remember in advance to do it. However I'd still like a tool bar icon to doc it after I type the function name. Here is a common workflow for me
- Type sentence, including some function name, for example bwlabel().
- Remember that I can make the function name a link but I forgot to add @doc: in front of the name.
- Return cursor to the beginning of the function and type @doc:
- That does not bring up the popup list of functions, so I have to delete the function name I typed, and start all over again using @doc: in front and re-type the function name.
It would be easier if I could just double-click the work and click the toolbar button to turn it into the link.
This feature has been released.
Type @ or @doc:[function name] to search and add a Documentation link to your post.
Let us know what you think.
Any quick way to link to the doc would be really nice. IMHO the documentation and Answers are the biggest advantages Matlab has over its competitors, and currently they are poorly linked.
A minor issue
By mistake I accepted an old question of mine. I realized my mistake an unaccepted the question. However, in my "Followed Content" both actions are reported as "accepted an answer"
@Rik, Yes, you hit the nail on the head. I edited the question and now "Followed Content" shows accepted, unaccepted and edited.
If the last two actions on a page are taken shortly after each other, the activity feed sometimes displays one action twice. It often goes back to showing the different actions if there is something new.
I have noticed this especially if the OP accepts an answer and posts a comment saying thank you.
PROJECTS is too closely coupled with Git CM
Some users may want to have a limited view of the files in the Set Path folder list.
MATLAB chooses files based on the ordering of the Set Path. Our developers share a CM repository. Some users create temporary projects to do some analysis. They might need only a couple of files in the main project. So to focus on just the files the user needed, files were deleted from the project. Later, after the analysis and the temporary project was deleted, the user pushed his changes to the shared repository. When users pulled from the shared repository, they were surprised to see that some files disappeared.
When I called MathWorks support, I was told that this is by design. When a file is removed from a project, then the file is staged for deletion in Git CM, so when everyone else pulled from the share, the corresponding files were deleted.
But, they said not to worry, because when the file is removed from the project, the file is not actually lost to the file, because Matlab makes sure to keep a copy even though it is deleted from Git CM. So, when other complain about lost files, then the user who removed the file from the project can be added back into Git followed by a Git Commit and Git Push, and everyone can then restore the file(s) by doing a Git Pull. The user will still be able to work fine with the so-called deleted file(s).
This is not good - very ineficient recovery as well as having confusing history. Project is too tightly coupled with Git with respect to deletions. I recommended strongly that when a file is removed from a project, do not by default, mark it for deletion in CM. Or, at least have a toggle where the user can set the default to not to delete it from CM.
In 2020, after a short tryout, we had to stop using projects.
Background: I recently put some effort into answering How to store and reuse coefficients in a for loop. My answer together with a comment includes a discussion on "column-major order" and "performance". I searched in vain for references in the documentation and in Answers regarding the significance of taking "column-major" into account. OP has read my answer an comment. So far so good. Now I would like a few more users to read my responses. To make my responses to OP's comments more visible, I sometimes add them at the end of my answer. And I add tags, in this case I added "column-major"..
Proposals:
- support multiple code blocks/wells in one answer. In the current case my answer contained one code block and my comment another. Adding the comment to the answer causes "Run in 2021a" to throw an error for the second code block.
- support searches (Cntr-F) in the current thread to include hidden comments. Currently, "Search Answers" for "tag:"column-major" singleton" returns the question ("singleton" is in a hidden comment), but Ctrl-F doesn't find "singleton". (I use Firefox.)
As a temporary work-around you can do what I do: make use of the fact that the output is persistent. I sometimes reorder everything to make it run with the correct output in the correct places, and then edit the code to a more sensible structure. One example was a user posting a question about fminsearch where their cost function didn't return a scalar. Easy enough to show, but I didn't need the entire function to do that, so I just ran it with the function and then edited away the function, leaving only the call.
So if there are plans to remove this persistent behavior, please don't.
Thank you for your suggestions @per isakson. There are currently some limitations preventing what you suggest for multiple code blocks and we're working with teams to look for ways to provide these capabilities.
Thanks Per.
- For mulitple code wells, I'll refer that to @Tushal Desai--he implemented the Run feature and can respond to your suggestion.
- For supporting search of hidden comments, to Walter's point, we released a "Show/hide older comments" that appears at the top of every question thread. The toggle is persistent so if you prefer to see or, in your case, search threads with CTRL-F, you now have that ability.
Thanks as always Per for all your work in Answers.
Mathworks did some work, at least for power users, to make comment expansion easier. Now that I think of it, though, it might possibly only be in place on mobile: on mobile, if you expand older comments, then it expands all of the comments in the entire post and it remembers that you want comments expanded.
I suggested distinct code-wells to Mathworks a number of months ago, along with automatic numbering of lines in code wells, and control over which code wells restarted the line numbering .
It is common that we want to quote particular user code to discuss it. We might not want to quote the entire code before that point (readability) so variables might not have been defined that are needed -- and of course the reason we might have quoted a line is that it might have a syntax error that we want to discuss. And we might want to then show correct code. Thus there might be code wells that we do not want to have executed at all.
After I click the "Follow" link on a question, I'd like that question to show up in my Managed Followed Content list immediately (with some reasonable delay for the system to catch up). As it stands now, it only shows up in my list after someone else subsequently answers or comments.
@Paul, Thanks for the additional info. Defaulting the latest activity to the time of follow seems like reasonable behavior, we can consider that for a future update.
I see my first follow is on that date too but I couldn't remember when I actually started contributing here. The system says 2014 but that was probably a single question/comment and I may not have followed it.
I'm surprised that I follow twice as many threads as the number of my contributions. I thought the number of follows would be slighly higher but not double.
October 11, 2017.
As per the default, following is on for any Question I ask, Answer, or Comment on. The system thinks I have contributed to over 83000 Questions.
But you have ~20K more answers than that. Was the follow-feature added later in the forum's development?
Over 33000 threads followed for me ;-)
It never occurred to me that it would be at the end of the list and that sorting by Date Followed would be the workaround. Good to know. But I like my list sorted by Last Activity, so it would be great if me clicking the "Follow" link was considered activity, thereby pushing it to the top of the Last Activity list.
As for workflow, sometimes I click on "follow" with the intent of coming back to the question, either to review it in more detail, answer, or comment. Of course, when someone else answers or comments it bubbles to the top of my list. But if nobody does, it gets lost in the shuffle and I'll forget about it. So I guess my use case is similar if not the same as Adam's use case.
I was also not aware that newly-followed links would appear in that list without any recent activity. The sort solution is good to know.
In addition to hearing Paul's workflow, I'd like to offer mine. The majority of followed threads are auto-followed after I contribute to them but some threads I follow without contirbuting to them because I'm interested in seeing the solutions by other people. Until now, I didn't realize we could see links to followed-threads that didn't have any recent activity to push them to the top of the list.
This partially fulfills a feature I wish we had, although I'd still like to have the feature. Sometimes I'd like to make a contribution to a thread but I think others in the forum could answer it better so I'll follow it the thread. But sometimes those questions never get answered and they get lost in the list of followed threads (~6000 followed threads for me at this time). I'd like to receive a notification when a followed thread does not receive an answer within 24 hours. This would only apply to newly asked questions (~48 hrs?). That way I can be reminded to answer the thread since no one else gave it a shot.
This would have two benefits:
- The unanswered question stays in the unanswered-list longer than if an answer is added knowing that it may not be the best answer. Of course a comment could be added in this case but sometimes answers are a lot of work that we only want to invest if needed - ie, no one else answered it.
- If we have intentions of making a contribution if no one else tries to answer it, there's less of a chance that we'll forget to revisit the question to check on it later.
Thanks for sharing this frustration Paul. Your Manage Followed Content page should immediately show any item you've followed. I think the issue may be the default sort value of "Last Activity". The system only considers activity you've been notified of for this value, so it starts off as a null value, and is sorted to the end (probably on the last page of your follows, if you follow enough to paginate). One simple workaround would be to sort by the "Date Followed" header if you want to see the most recent item.
I'm curious what your workflow is in this case. What is your goal when looking for something on this page just after following?
At least w/ Firefox, recently the scroll wheel acts to reduce the size of the response textbox such that what is being typed gets chopped off at the ends (both left and right) rather than being scrolled to fit. This is quite annoying and I don't recall having seen this behavior until relatively recently (few months). I dunno if it's something FF has done with later release or Answers is interpreting the scroll, but I wish it would quit. :)
It's doubly frustrating since the penchant is for the text box to be off the bottom of the screen so you can't see it all anyway and so the natural reaction is to move it up -- without, of course, taking the time to ensure the focus is over in all that (still useless waste of screen real estate even though could be holding a whole lot more text/code) white space on either side...
I don't recall seeing it as long ago as IA mentions, but then again, "time flies!" as one gets older... :)
I just really getting annoyed relatively recently, altho I'll make no claims that's when the symptoms really started.
? I thought we are discussing the problem that started 2 months ago.
And it's not just recent. I remember showing Tushal in person in at the Mathworks in Natick the problem in June 2019. Maybe I'll try Randy Sousa, Wendy, Rena, or Chen. You'd think at least one of them would see it.
"..., they couldn't reproduce it, even in Firefox,"
Boy, that's hard to imagine if they're using current releases the rest of the world is.
Yes, it's very annoying but when I mentioned it to Tushal and others, they couldn't reproduce it, even in Firefox, so I doubt it will get fixed until we can get them to reproduce it. Maybe I'll try again to do a Teams meeting with him or someone else.
Mathworks tells us the problem is specific to Firefox.
If I understand correctly, the next Answers bug-fix update is due the middle of the month.
I wish Answers would automatically reject comments like
"I did that but it didnt work"
It would be great if there was a comment toggle shortcut, like Ctrl+; in some IDEs.
Using Ctrl+R and Ctrl+T is not practical, because I don't want to think which one to use for that line that I need to comment or uncomment.
I would expect this result (which will lead to no change at all):
%{
% author = 'Douglas Adams'; % So long, and thanks for all the fish
% [x, y, z] = peaks;
% surf(x, y, z, ... Coordinate data
'FaceColor', 'interp', 'EdgeColor', 'none')
%}
The shortcut should only deal with "%" that appear at the beginning of the line, only. Then:
- It is the user's responsibility if the toggle action causes an error.
- Comments after commands are not affected by the shortcut (like lines 2 and 4).
- Block comments are seen as a commented line like any other line with a '%' at the beginning. (see 'Dealing with block comments')
The purpose of having this shortcut is to quickly take the action of getting rid of a pice of code and retrieving it again without using Ctrl+r and Ctrl+t or wrapping it with the "%{ %}" structure.
Some examples:
From the above code, selecting lines 1 to 5 will result in:
% %{
% % author = 'Douglas Adams'; % So long, and thanks for all the fish
% % [x, y, z] = peaks;
% % surf(x, y, z, ... Coordinate data
% 'FaceColor', 'interp', 'EdgeColor', 'none')
%}
From the resulted code, selecting all lines will result in (which generates an error):
%{
% author = 'Douglas Adams'; % So long, and thanks for all the fish
% [x, y, z] = peaks;
% surf(x, y, z, ... Coordinate data
'FaceColor', 'interp', 'EdgeColor', 'none')
}
From the resulted code, selecting lines 5 and 6 will result in (which also generate an error):
%{
% author = 'Douglas Adams'; % So long, and thanks for all the fish
% [x, y, z] = peaks;
% surf(x, y, z, ... Coordinate data
% 'FaceColor', 'interp', 'EdgeColor', 'none')
% }
From the resulted code, getting rid of block comment (lines 1 and 6), and selecting lines 2, 3 and 4 (which generates an error again):
author = 'Douglas Adams'; % So long, and thanks for all the fish
[x, y, z] = peaks;
surf(x, y, z, ... Coordinate data
% 'FaceColor', 'interp', 'EdgeColor', 'none')
Dealing with block comments:
Personally, I don't use comment blocks often. I use them in the finalization phase, when I read my code looking for parts that need big explanations or parts that I don't want to be executed, but that I don't want to delete either.
However, it is obvious to me that the proposed shortcut does not handle comment blocks well, so here is my suggestion:
1) If a line equals to
%}
is encountered in the selected lines, then the shortcut ignores that specific line and leaves it unchanged, always.
2.1) If a line equals to
%{
is encountered in the selected lines and the shortcut is in comment process, then the shortcut ignores that specific line and leaves it unchanged.
2.2) If a line equals to
%{
is encountered in the selected lines and the shortcut is in uncomment process, then this line becomes:
% {
3.1) If a line equals to
% {
is encountered in the selected lines and the shortcut is in uncomment process, then the shortcut ignores that specific line and leaves it unchanged.
3.2) If a line equals to
% {
is encountered in the selected lines and the shortcut is in comment process, then this line becomes:
%{
4) All these three lines are seen as commented lines:
%{
% {
%}
Examples:
From the code below:
%{
% author = 'Douglas Adams'; % So long, and thanks for all the fish
[x, y, z] = peaks;
surf(x, y, z, ... Coordinate data
'FaceColor', 'interp', 'EdgeColor', 'none')
%}
Selecting all the lines will result in:
%{
% % author = 'Douglas Adams'; % So long, and thanks for all the fish
% [x, y, z] = peaks;
% surf(x, y, z, ... Coordinate data
% 'FaceColor', 'interp', 'EdgeColor', 'none')
%}
From the resulted code, selecting all the lines again will result in:
% {
% author = 'Douglas Adams'; % So long, and thanks for all the fish
[x, y, z] = peaks;
surf(x, y, z, ... Coordinate data
'FaceColor', 'interp', 'EdgeColor', 'none')
%}
From the code below (here I removed the comment of line 2):
% {
author = 'Douglas Adams'; % So long, and thanks for all the fish
[x, y, z] = peaks;
surf(x, y, z, ... Coordinate data
'FaceColor', 'interp', 'EdgeColor', 'none')
%}
Selecting all the lines will result in:
%{
% author = 'Douglas Adams'; % So long, and thanks for all the fish
% [x, y, z] = peaks;
% surf(x, y, z, ... Coordinate data
% 'FaceColor', 'interp', 'EdgeColor', 'none')
%}
From the resulted code, selecting all the lines again will result in:
% {
author = 'Douglas Adams'; % So long, and thanks for all the fish
[x, y, z] = peaks;
surf(x, y, z, ... Coordinate data
'FaceColor', 'interp', 'EdgeColor', 'none')
%}
I hope I have covered all the possibilities here, but let me know if there are any more questions.
What would you expect to happen if I selected lines 2, 3, and 4 in the following code segment and used the toggle shortcut?
%{
answer = 42; % The answer to Life, the Universe, and Everything
[x, y, z] = peaks;
surf(x, y, z, ... Coordinate data
'FaceColor', 'interp', 'EdgeColor', 'none')
%}
What should the updated code look like? There are three separate types of commenting involved.
Exactly! I want both Ctrl+r and Ctrl+t at the same time in a single shortcut.
Your suggestion makes sense, actually I shouldn't call my proposal a "toggle" shortcut, because yours is more "toggler" than mine :)
However I personally use Ctrl+; in Overleaf or Spyder to quickly get rid of a piece of code and test the program, so merely toggle the comment-state of lines may not always get the job done. This feature is waaaay more important in Overleaf, since there I am working with Latex and want to compare two versions, but it would be great to have it in Matlab too.
I see. Thanks for the nice demo. That behavior is exactly the same as using the ctrl+r | ctrl+t commands but from what I understand, you want to use 1 shortcut instead of using 2.
Another alternative is if a single shortcut merely toggled the comment-state of a line. But I'm not advocating for that. I'm happy with the separate comment/uncomment shortcuts. It drives me nuts that I can't use the ctrl+t with Matlab online since, in chrome, that opens a new tab, so I understand how frustrating it is when you're used to a set of shortcuts that differ wtith software.
After selecting both lines....
In fact, remapping the shortcuts doesn't help much because the big problem here is having one to comment on and a different one to uncomment.
Regarding the selection of lines with and without comments all together, I would say that the preferred behavior is to comment all lines again, that is, the comment action takes priority. It doesn't seem practical, but believe me, I use this feature in Overleaf and I miss it a lot in MATLAB.
Here is an example (using this theoretical Ctrl+; shortcut with selected lines):
...but what would happen if you select a few lines, some of which are commented and others not?
Go to preferences > Matlab > keyboard > shortcuts to change either or both of those shortcuts (see "comment" and "uncomment").
Activity Feed: "See more" asks for "See less".
Excellent suggestions. I think this new page has a lot of potential, but it will take some time to get used to this.
Yes, I intended to say that there is a need for an undo button that reverses the effect of "See more".
I'd like to be able to collapse the group back to 1 again rather than see fewer.
Also, I'd like to see a number indicating the number of new threads since our last visit to that page, if possible. Something like this below.
I think per is saying that if you are going to have a "See more" then you ought to also have a "See less"
Not sure what you mean by this. When I click it, it seems to display more items. It doesn't ask for "See less" or ask me for anything else. You probably need to explain more explicitly, probably with screenshots inserted, so we know what you're talking about.
Create a MATLAB bot (just like Reddit bots) that posts useful information.
As an example, person asks a question related to importing data from Excel (by the way, there are way too many questions related to it). OP might use a tag, 'import data' or 'Excel', when bot detects a question with such tag, it replies with a link to a properly answered question, or to a comprehensive answer.
No, tag can be set only by OP and anyone with sufficient privileges. If OP doesn't include it, other people can tag it and bot would respond.
The autohotkey script is just because copy-pasting doesn't work the same way in this editor as in the old editor (which you can still see on mobile). It doesn't actually automatically respond, it simply allows me to quickly answer with a canned response.
I didn't mean to suggest a bot wouldn't be useful. I know too little about the Reddit and Wikipedia bots to know what fundamental changes might be required. I am also not sure bots are the optimal solution to the problem. Your description leans heavily on people using tags correctly, which seems 'optimistic'.
Wouldn't it easier for you anyone to set a homework tag rather than to use additional software?
I have the feeling the homework tag is set more often by us then by the people posting the question.
Some people don't understand English (or their problem) well enough to understand that those questions will contain a solution to their problem. Others are just too lazy.
I have a few autohotkey autoreplies, so in a way I am already that bot XD.
This is useful, but still there are some questions that could have been prevented if the user actually clicked on few links here or used a search tool. However these questions might also relate to user not knowing how to code, in this case it could also send a MATLAB Onramp link.
There is another usage for it as well. if OP has not provided any code or did not show any efforts to solve homework problem, someone can set a tag homework and bot will write a comment with the usual "This is a homework question..."
Similar to this?
I wonder how often the question is cancelled after follwing the suggested links.
Users who edit away the questions get an explicit warning not to do it again. Freeze account/remove rights to post questions/answers/comments for some period of time. Might be a bit harsh, so some alterations are welcome.
Also, it is trivial to create a new account, so a suspension might not be effective enough.
Maybe a 'first question' badge would be more effective as a warning signal.
I kind of agree with this, but I think most of the offenders wouldn't be affected by a temporary suspension. It seems they tend to purge the evidence only after they've decided they're done exploiting the forum.
When someone tries to answer a homework question (when it has a tag), it could restrict the answered to post the full solution(showing a message in a dialog box stating don’t provide full solution).
Being able to collapse items in the activity feed would be useful. Fairly regularly, I have 3-7 items for "X commented and edited their comment 5 times." Occasionally, I'll have a full page of items related to a longer discussion (usually on one of these meta-threads). It would be useful if I could manually (or Mathworks automatically) collapse large sets into single concise items ("X,Y,Z commented 30 times on an answer to the question What frustrates you about MATLAB? #2"). This would make it easier to scan my log without worrying about missing a more relevant item in the noise
This can happen especially when some users many several smaller edits in a row to the same comment/answer. It would be nice if those were merged in the first place.
Yep, I'd like that too.
Yes, I agree. I know this has been proposed to Mathworks more than once.
When user sorts questions for which answer has not been accepted, the questions are found in two different sections. I believe this lowers the visibility of questions and adds an extra effort for the users who would like to help/contribute due to the fact that they have to filter by both statuses.
Filter by Status needs an addition or change: unsolved and solved. Furthermore, in unsolved status, there can be another one: answered/unanswered.
I agree that would be more explicit and intuitive
Yes, those links.
Maybe something like this, where 'Answered' and 'Unanswered' would be grouped under one status, with the possibility of further filtering it. If questions are sorted by 'Date updated (Newest-Oldest)', all relevant questions will be higher in the feed. The questions that have received an answer that solves the issue, but have not been accepted yet, will not be updated and they will be lower in the feed.
- Solved (Answer accepted)
- Unsolved
- - Answered
- - Not answered
How are you doing the initial filtering? Is it by these links:
or some other way? How would you change the above? Do you want "Answer Accepted" to be called "Solved" and "Answered" to be called "Answered and Solved"? Some posts that have not been officially "Accepted" are considered solved by the person(s) posting the answer(s), it's just that the original poster never accepted any answer.
Well, I have a small complaint about the rules on MATLAB answers.
Seeing the content of some questions is frustrating, such as not formatted code in the editor, pictures of code taken with the cell phone, low-effort questions, asking a question that is already answered, gets overwhelming. With the increasing junk like this, quality answers will not be so easily found, maybe it already is the case
Maybe staff can force users to actually read "Community Participation Guidelines" for new users, as this would reduce a lot of issues.
Actually there isn't anything about formatting practices, I feel that this line could have some addition to it:
2. Strive for clear communication adhering to good spelling and grammar practices
(Answers Dev) @Dyuman Joshi we designed the field specifically to not be required since many questions can apply to multiple versions and most people won't take the time or know which versions a question would apply to. Can you provide your reasoning for making it required?
@Rena Berman, going slightly off-topic from the parent comment, but as mentioned earlier here - https://in.mathworks.com/matlabcentral/answers/470111-discontinued-matlab-answers-wish-list-5-and-bug-reports#answer_458068
Is it possible to make the MATLAB Version a requirement while asking questions? Like how Summary, Description and Tags are a requirement?
(Answers Dev) Hi @DGM, we released contextual tips on the ask a question page. You can see it as the Dos and Don't's in the pic below under the summary input box:
For new askers, the contextual help shows up by default on the summary on page load and switches to the appropriate field anytime they click into a different field. Each field in the form has one. Here's what shows up for the description field:
For high reputation users such as yourself, it appears closed by deafult on page load:
Do these cover what you were thinking of?
I sometimes think that the question editor needs to come up with some sort of default question template or just some sort of bulleted guide in a sidebar. If not always, at least like training wheels for new accounts.
It doesn't have to be incredibly detailed or anything, just basic things that amount to "remember to actually ask an answerable question".
You could make a decent checker by simply checking if '=' shows up outside a code block. Sure, there will be a few false positives, but not many
I am not sure how the text within this editor is read, but copied code usually consists of lines of code and there could be a function that checks some/all (don't know if this is computationally expensive, considering the amount of users and messy codes) lines and tests if it is a valid MATLAB syntax.
Would running that line return an error or not. If any/some of the lines do not return an error, check if the line that returned is in code format, if not issue a warning before posting.
I hear ya, Mario! It's a tough problem to solve. Some of these things like images of text and unformatted code may be detectible and it would be nice if a suggestion box appeared before the question is submitted. We've also requested a spell checker which would help tremendously. Another suggestion made at some point is to offer template responses that users with sufficient reputation can use to quickly respond to typical problems.
I've suggested that first-time-posters and first-time-in-a-while posters should have to click an "ok" checkbox after reading a very short message reminding them that they cannot delete their questions after receiving a response and are encouraged to write a focused question. "Very short" is important because we've all grown used to clicking through the user agreement windows that appear when we first use a product without reading them.
Don't encourage the use of "matlab" and "simulink", by showing them as popular tags. Instead, encourage the use of the Product field.
Fully agree that the use of the Product field should be encouraged. Way too many questions post w/o the relevant product(s) tagged, which is bad for the questioner who might not get answers from product subject matter experts because the question is buried on the main page, and makes it more difficult for those same experts to answer questions for the same reason.
Yes, I bring that up constantly at board meetings. Should be really easy to fix but they just never seem to do it. Plus on the list is a better curated list of prepopulated tag suggestions. I've been bringing these up for literally like 5 or 6 years.
In fact every day or two I go in and remove the totally useless "matlab code" from 10 to 30 posts. Plus remove the "matlab coder" tag from posts that have nothing whatsoever to do with the coder toolbox. In fact, usually posters will put matlab, matlab code, matlab coder, and code ALL in there so I have to remove 4 tags on hundreds of posts per week. And often they'll throw in "help, help me, and problem" just to pile on the useless tags.
Who's idea to introduce the black background for code? I can read almost nothing now easily with the small contrast between the dark background and many of the selected/default colorings.
Can one set back to the old somehow? Or can somebody pick a better-contrasting colorset?
There were lots of people calling for "dark mode" in MATLAB, even here in Answers. I guess the Web app developers were able to get it done first. It was pushed out unannounced. Kind of like an Easter Egg. It only applies to code blocks, not the message body (for those of you who don't know about it yet). You must have clicked on the half circle icon unknowlingly. Like madhan says, just click the half circle thing again to switch back to white background.
Dpb there’s a toggle switch(circle half black and white) to get back to the old contrast. I usually use the dark background since it’s easier for me.
Not mandatory but a replying feature to a specific comment would be nice.
Badges
Donot you all think that there should be Reputation Point Badge with the contributors name (untill he became a MVP) instead of rising star (as it is a temporary badge and need persistence). For example
GUIDE LIGHT
Now Adam is approx. MVP but no badges :'(
PRO
Or Something like this
(Answers Dev) That's an interesting idea Mehmed. I'll share it with the team.
Someone is Typing (Whistlist)
This feature can be very usefull not for the questioner but for contributors. For example
- Walter Roberson is typing a comment
- Image analyist is typing an Answer
Pros:it can save contributors time
Cons: Dont know xD
Like this or a popup for someone who is answering the question (that two contributors are typing the answer)
@Adam I usually use the first point you mentioned.
@Walter Roberson, sometimes I get a notification that OP left a comment while I'm constructing a response. In those cases, I usually either
- Open the thread in a new tab to see what OP wrote while my content is preserved in the original tab.
- Copy-paste what I've written into a text doc so that I can paste it back into the forum when needed.
If I am typing something and I got notice that the original poster was also typing something, then I would want to be able to see what they wrote (when it gets posted) without losing what I have written (as would happen if I refreshed). Perhaps a "Save Draft" feature?
Well, if you're going to leave a comment, it's going to be public anyway. But I guess it would reveal the amount of time spent on a comment if anyone wanted to manually track that.
Some other potential Cons
- It may prevent people from adding their own answer if they see someone else is already doing so. This reduces the number and variety of answers.
- It may motivate people to rush their answer so it appears first, if they see that someone else is also typing. This may reduce qualtify of answers.
But I agree with the Pro that Mehmed noted: it would save time that could be devoted to an answer that no one is working on. Another pro: sometimes I'm writing a response while the OP is also writing a comment that answers the questions I'm about to ask. Those types of threads can become difficult to follow. If I see the OP is typing, I'd likely wait.
Apart from the privacy-concerns, a good idea, but difficult to implement well.
+ inf
Pressing ctrl/cmd + k brings up the hyper link dialog box , but why does it make the traget url empty and the display text with the link ,shouldn't it be the other way around??
Aha ok sir Walter.
The assumption is that if you have highlighted text, that you probably want that text to be what is displayed, and that you want something else to be the destination of the link.
If you have text in URL format already, then make sure that it has whitespace before it and then to go directly after it, and press space, and the editor will automatically make it into a hyperlink.
When I say whitespace before it, I mean that common attempts such as (http://whattimeisitrightnow.com) will not automatically be transformed because the ( before and the ) after cause the editor to think you are not dealing with a URL. But if you use ( http://whattimeisitrightnow.com then as soon as you press the space afterwards the URL will be inserted automatically.
It would be pretty useful to make Release field mandatory to submit a question.
Very true.
I agree, but believe it or not, there are some people who don't even know to type ver, or look at the MATLAB title bar, to figure it out. So we'd need to have an option "I don't know it" so they could still post.
HTML links that are inside Monospace are not clickable, and their link destination cannot be read out by hovering over them. They still show up as blue though.
The link here to question 555100 seems to work, but the link inside 555100 is the one that has the problems.
It is not that the link does not go anywhere: the link target is '#null' which would be a valid link if there were an anchor named 'null' on the page.
I have the same as Star: the link in this answer works, but I have to edit the question you refer to to see those blue things are links with #null at the end.
For me, same as Star - works fine in Firefox/Win10, hovering and clicking both work. By the way, the link in the post has "null" as the URL, which you can see if you edit it, so it makes sense that that link goes nowhere.
The posted link works correctly for me (Firefox / Win 10). However the blue type in the text of the Question linked to in the post do not work as links. It may be that since the text appears to be copy-pasted from something else, only the text colour and not the hypertext link information were imported with it. When I copy-paste the blue type to a blank Comment field in the same post (both with and without the single quotes), only the words, not the font or colour get pasted, and no hypertext link appears with it.
I should perhaps have noted that I am using Firefox on Mac.
With my Firefox/Win10 "'current_controller'" is blue, but the cursor doesn't change to a hand when hovering over it. And clicking has no effect.
I’m able to access it.
What's happening in mobile versions of MATLAB Answers?? I just a blank space to type something without the code button and the other formatting tools.
Ah I see now, the toggle button seems interesting and makes it easier to find the crucial details of a comment/question/answer.
The Answers server code was upgraded a few days ago.
Mine.
Yes David after clearing cache , its alright now. Any reasons why it might have happened?
My version looks like this. Perhaps clear your browser cache? The mobile version of MATLAB Answers uses the older editor which may be why it looks different.
Just an opinion. It would be great to restrict fake biased account created to just to vote.
Eh actually no it's not a big issue . Getting a reward is different from buying a reward.
Is this a big issue? I have never noticed it myself.
It would be better if there is a feature that warns when the first word of the poster is Write. Because at the end the poster edits away the question making the thread look pointless wasting the answerers time.
Thanks Rik!
Additional idea for deletion issue: keep a record of deleted questions in users' Contributions log
For identifying low-quality or suspicious questions: don't allow questions that are just an image
This problem is definitly becoming more frequent. Here are some other suggestions.
- Users with sufficient reputation can flag other users who delete their questions. This flag will be visible in the stack of questions or when the thread is opened.
- A change-detection could detect when a certain percentage of content from a question is edited or removed which would trigger a confirmation dialog that requires the user to confirm the change and would warn the user that their profile will be flagged if the content is edited-away.
- First-time-posters or first-time-in-a-while posters have to accept a displayed agreement that their question-content could be edited but not removed or obfuscated so that users are aware that they are giving up their rights to privacy.
Exactly!
I have the feeling this problem is getting worse, so a capture of the question at the time it is answered would really be nice. I hope it gets better when exam season is over.
Yes that what would be better too!
Alternatively it would be a solution if there is a restore point created each time an answer is posted. Then it would be easy to undo such an edit.
Why is it not possible to see the code button when editing a comment in mobile?
Yes sir Walter :(
Unfortunately in the mobile editor, you cannot select text, which makes the code button much less useful.
The work-around is to insert at least one space at the beginning of the first line of each "paragraph" of code. The effect ends at the first empty line. Adding a space at the beginning of each line of code works too, but is a bit of a nuisance for longer blocks of code.
Thanks Rik, I’m using safari in my iPhone.
(background: I use Chrome with a Swiftkey keyboard on Android)
As I understand it, the mobile website still uses the old editor, because there were major issues with some keyboards. Once you edit a post in the new editor it is no longer possible to use the old editor fallback, so editing on mobile becomes a pain.
So which code button do you mean? Because I see the respective code buttons. Can you share a screenshot?
A soft-lock for questions, similar to StackExchange.
This soft-lock would prevent low/no-reputation users (e.g. <5) from posting answers in threads that have the same answer over and over again, like the date validation assignment, the school admission assignment, and the picker function assignment (each of these probably have multiple incarnations). One example of a non-homework thread with this issue is this thread, which contains a stream of complaints and single-word answers.
That last one is probably due to people not being allowed to post a comment to the question, so the only button is 'answer this question', which seems like poor design IMHO.
Until such features as you suggest are implemented, splitting the threads seems the only viable option. I share your point, especially on mobile I don't bother to open up the long threads.
Large threads like this also need a mechanism to speed up the page loading time.
I prefer a mechanims that shows collapsed answers that require an expansion to view nested comments after the number of answers exceeds a threshold and the nested comments would load only when expanded. Additionally, a second greater threshold could be set to initialize a "view more" option such that only the first 'n' answers would appear in order of votes. These larger threads often consume so much load-time that I'm reluctant to view new answers/comments.
This soft-lock would also be usefull for thread like this one, to force people to post new answers in the new threads.
I'm now starting to tag these threads with "soft-lock" in case this ever becomes possible.
I just realized today that you can name a table variable with leading or trailing whitespace which prevents you from accessing that variable from the table using dot notation. A space could be added accidentally and it's difficult to see the space from the table displayed in the command window so it's not immediately obvious what the problem is. I can't imagine a benefit to allowing leading/trailing whitespace in variable names. (r2020a)
Table functions should either trim the leading/trailing white space or throw an error when it's detected.
Here's a demo for trailing whitespace
T = table(1,0,'VariableNames',{'A', 'B '});
% Notice the extra space -------------^
% The space is visible but not noticeable unless you're looking for it.
% T =
% 1×2 table
% A B
% _ __ <-- slighly longer bar
% 1 0
% Now access the variables
K>> T.A
% ans =
% 1
K>> T.B% no space
% Unrecognized table variable name 'B'.
K>> T.B % +1 space
% Unrecognized table variable name 'B'.
% This works when space is added
K>> T(:,'B ')
% ans =
% table
% B
% __
% 0
% You can see the space in the VariableNames
K>> T.Properties.VariableNames
% ans =
% 1×2 cell array
% {'A'} {'B '}
Here's a demo for leading whitespace
T = table(1,0,'VariableNames',{'A', ' B'});
% Notice the extra space ------------^
% T =
% 1×2 table
% A B
% _ __ <-- slighly longer bar
% 1 0
K>> T.A
% ans =
% 1
K>> T.B% no space
% Unrecognized table variable name 'B'.
K>> T. B% +1 space
% Unrecognized table variable name 'B'.
% This works when space is added
K>> T(:,' B')
% ans =
% table
% B
% __
% 0
% You can see the space in the VariableNames
K>> T.Properties.VariableNames
% ans =
% 1×2 cell array
% {'A'} {' B'}
Or if you're reading the table from a file disable PreserveRowNames which makes a valid name for you. https://www.mathworks.com/help/releases/R2020a/matlab/ref/readtable.html#d120e1046459
Looking at those variables names at a higher level, where did they come from? If they came from a file being imported (as Sean suggested may be the case) I'd ask the person who created the file (or owns the code or process that creates that file) if the leading or trailing spaces are significant and if it is possible to modify the creation process if they aren't.
Even if it isn't possible, if they're not significant you could replace the variable names with unique names sans "external" spacing.
T = table(1,2,3,4,5,'VariableNames',{'A',' A ',' A','A ','A '})
VN = T.Properties.VariableNames;
uniqueVN = matlab.lang.makeUniqueStrings(strip(VN));
T2 = renamevars(T, VN, uniqueVN)
If whitespace were trimmed when comparing variable names, all of the following variable names would be the same.
T = table(1,2,3,4,5,'VariableNames',{'A',' A ',' A','A ','A '})
% T =
% 1×5 table
% A A A A A
% _ ___ __ __ ___
% 1 2 3 4 5
I guess it's up to the user to realize what the variable names are or to carefully check them in T.Properties.VariableNames.
for example people pull out Properties.VariableNames and manipulate those including ismember(). Should not need to know to strtrim(), and there is no "compare ignoring leading and trailing whitespace" function
It makes it so what you put in is what you get out. If you read a file or something with obscure info and want to map directly to the variable name there's nothing you need to worry about. If it was deblank-ed there'd be a mismatch.
I partially concede. It is nice to have the extra flexibility to make the table headers look nice. The syntax Walter shared also lets us access any combination of characters in table variable names such as T.('NY st. #1')
But I still don't see much benefit of allowing leading/trailing whitespace.
T.(' B') %way to refer to variable by name
Yeah, allowing spaces in column/field names for tables was recently added. I noticed it too. I guess it makes the table look nice when you look at it but it seems the only way to refer to that column is by the number instead of the name.
There is a feature called "Managed Followed Content" , would like to see a feature to be able to "bookmark/pin" questions within MATLAB Answers.
Thanks for the clarifications
And then "Super Duper, Seriously, For-Real Favorites".
That highlights the limits of utility for the inevitable accumulation of pinned posts.
Agreed, this would be very useful. I prefer keeping my bookmarks relatively sparse so autocomplete works well, but could see myself favoriting several items a week. (Once you've got this, can you add "REALLY Favorites" so I can filter to the stuff I know I'll be using for months-years to come?)
I get email notifications on followed threads which can really flood the inbox after a while. Using gmail (and many other providers), a filter can be set to send the notifications to the trash unless content from their subject lines is listed in the filter. That's a relatively easy workaround to the problem.
But I can see how pinned content could be useful. For example, 'Pinned content' could be added to the dropdown menu at the top of the 'Follow' tab within the profile page.
Hello David , thank you for the response.
Illustration:
Imagine if I find "Matlab answers wish list 5 and bug reports" question interesting. If I follow it I won't see this thread ever again if nobody answers it right? So what I do is now I pin this thread which option "would be" near to the follow button. One may ask how's it different than following it , my point would be that it would be far much easier than a followed thread. While I follow multiple threads per day which makes it hard for me to find the exact thread which drew my attention to. This pinned threads could be found next to "Managed Followed Content".
Sir Image Analyst: Your point is also valid but it would never equalize bookmarking/pinning within MATLAB Answers.
I just add a bookmark to my Firefox bookmarks. That Firefox allows bookmarks while Chrome is sorely lacking in that capability is why I choose Firefox over Chrome.
Thanks for sharing your idea Madhan. Can you say more about what you're thinking? What do you mean by bookmarking or pinning questions?
Add a set of pre-written comments for common situations. Things like:
- "this is clearly a homework problem, please display some effort first"
- "god your formatting is terrible, here's how to do better..."
- "please give a minimal example, not 200 lines of code"
- "Saying 'it errored' is entirely useless, be more specific"
- "please go through the MATLAB onramp"
(The actual comment set should include complete instructions, and be slightly less hostile)
Having the ability to insert these comments would save us time, lead to friendlier interactions (we all get impatient), and give better info to questioners
Update - Quicky Replies have been implemeneted as a feature.
They are present just beneath the editor box, are accessed by clicking on a reply and can be managed through - https://in.mathworks.com/matlabcentral/answers/quick_replies
This is actually already in consideration. Thanks for all of your feedback!!
I have a series of bookmarks in my browser menu bar that I copy out of the menu bar and paste in .
I'd like to see these builtin templates as well.
@Guillaume: it's surprising how far you can get with a txt file in dropbox that you keep a bookmark for ;)
This is actually a very good idea, Sindar. I'm not sure it could be implemented with the current interface, but certainly, it's something I'd like to see.
I always have to google the homework tutorial and the how to ask tutorial when I want to link it. Unfortunately, I'm too lazy/old to set up a system like Rik's.
I used to have a file from which I could copy-paste responses, but now with the new editor that doesn't really work well anymore. I now have alt+1 to alt+7 trigger an autohotkey script that types those responses. That way I still have the benefits of an automatic reply, as well as proper formatting. Guess what is under alt+1 (extra line breaks for readability):
Have a read [here](https://www.mathworks.com/matlabcentral/answers/6200-tutorial-how-to-ask-a-question-on-answers-and-get-a-fast-answer)
and [here](https://www.mathworks.com/matlabcentral/answers/help/rtc#rtc_summary).
It will greatly improve your chances of getting an answer.
Why is it impossible to copy paste code from MATLAB mobile?
Thanks @Walter, I have shared your feedback with the MATLAB Mobile team.
@Madhan, Good to know that it is working after the update!
MATLAB Mobile (for Android) is a nuisance for copying characters out of. You can select and copy output, and you can select and copy input, but you cannot select a mixed region (as you might well want to do in order to post a trace showing commands and related output)
Thank you Anusha for the response. For instance I’m able to copy paste any characters outside MATLAB Mobile except inside it. MATLAB Online (Version 8) iOS.
PS: I just checked in my App Store before commenting updated the app to version 8.1 and now seems to work correctly:).
Hi Madhan, Thanks for bringing this up!
Can you tell me a little bit more about your exact workflow and where the copy/paste doesn't seem to be working? I checked on MATLAB Mobile and I seem to be able to copy/paste from the command window as well as the editor.
I am a developer on the Community team and we're currently working on a project to provide better integration between MATLAB Mobile and Answers, so understanding your use-case would be helpful for that.
Why is there a lag in the recent activity page? This has never happened before.
Hmm didn’t know at all.
I haven't noticed any particular lag, but a 1 minute lag is not unusual for me. If I recall correctly there was a several hour long lag for multiple people one time a while back, which I only noticed after it was resolved.
:/ I seem to have ~ 1 min lag
lags in Recent Activity and Activity Feed have been known to happen; sometimes the feeding process crashes.
That said, I am not observing any lag myself.
Expand/Collapse all comments
This goes back to Matt Tearle's request in the first wish list (2011). An expand/collapes toggle button would be useful so we can search a page without having to expand all of the comments. For example, find "lOVIT" in this thread.
This feature already exists in the MathWorks documentation:
I would favor load-time over comment-accessibility. Some pages with lots of comments take quite a while to load. Even in the documentation, I often "collapse all in page" before scrolling through the page so I can find a section faster.
Well, I don't want all the comments expanded when I read this post. Or the one about error -9. Lots of history that is mostly irrelevant to the immediate concerns.
FWIW, with the new 'less blank space' layout recently introduced, I suggested that all comments should be expanded by default. It's very rare that the first I do not do is expand the comments when looking at a post.
It would be nice to have advance warning of some type that the site is going down for maintenance, and how long it will be until it will be back up.
For me today it was down from 17:00 UCT 29 Jan 2020 until 03:00 UCT 30 Jan 2020. Some parts are still not back up.
Thanks for the info @Image Analyst. We don't think the issue was affecting all users but perhaps some users in some locations or some users at specfic times.
I was on frequently yesterday and the day before and I never got any "unavailable" message. I'm in the USA and (I guess) use the USA server.
This outage was unplanned and we're still looking into the cause.I'll post more as we zero in on the root cause.
Yes, something odd was going on yesterday. When I refreshed my activity feed just before going home, I got the Planned maintenance page that Star showed. However, I could go to the matlab central landing page which shows a list of questions on answer and could access the questions listed there without any issue. From the central page, clicking on 'Matlab Answers' at the top also got me the 'planned maintenance'.
So, part of Anwsers did go offiline (and clearly it wasn't planned!)
@Steven — It was offline for me most of the day today. I’m still having problems with parts of my site. I have no idea what’s going on.
I was able to access everything else on the Internet (including the online MATLAB documentation) except ‘MATLAB Answers’ and ‘My MATLAB Answers’ (that is still down).
so it was definitely a MathWorks problem. After I again got access to Answers, I noticed that others were able to post during that time. I am definiitely not happy about the outage!
I sent Rena an email asking what was going on.
On the upside, I was able to install R2019b Update 4. I got no notifications, and only learned it was available when someone else posted about not being able to run MATLAB after installing it.
The Application Status page linked from this blog post shows no downtime for MATLAB Answers or any of our sites during January. The last listed in the history was December 18th.
Odd, I did not notice any downtime during that interval.
I realised I posted this in the ancient wishlist thread before.
Can we not have some white space back between answers? Since the last update all answers just roll into each other which looks frankly awful, almost to the point of being unusable for threads with multiple answers. White space is a good thing, in a forum as well as in code!
Different answers can often be significantly different. They shouldn't just flow straight into each other as though the 2nd was just a comment or continuation of a conversation in the 1st answer.
With the new arrangement I have sometimes been accidentally posting as a Comment to the Question when I meant to post as an Answer.
Yes, it is also something we've complained about. Indeed with the new design I've accidentally posted an answer when I meant to post a comment, something I'd never done before. My suggestion was to move the button to the right. Yair's suggestion was to get rid of it altogether, not a bad idea as it forces potential answerers to actually scroll past (and thus read) answers.
Some things work very well with the new design (highlighted accepted answer, highlighted OP posts, structure of comments, less whitespace), others not so much. The whitespace cull may have been too aggressive.
The location of the 'Answer this Question' button is annoying too.
Probably about 80-90% of my contributions are comments, usually on the question itself, but when you type your comment (assuming you managed to click the link to comment rather than answer in the first place), you have a small 'Submit' button and a much bigger 'Answer this Question' button right underneath it, shouting to be clicked. So far I have accidentally hit that button instead of the 'Submit' button numerous times.
It's all part of the same idea of needing to squash everything up rather than just spread things out so question, comments and answer clearly have their own obvious space.
We already used to have too many new people adding answers instead of comments.
My profile is set to not let random people contact me, but Mathworks should have my address (I receive e-mails for the board editors) and are welcome to get in touch using that for any information you wish..
Yes, better separation between answers would be good. However, more white space would not, since less visible text and more scrolling.
Better separation may be better achieved by putting the header/title stuff on a pale tint-plate (background color rectangle).
Thanks for your feedback Adam. We’ve received several comments on the redesign and are actively collecting feedback. If you’re available, we’d like to contact you directly to get more specific information from you. Thanks again.
Best – Kent (User Experience for Answers)
Yes, several of us CAB members have already asked for this to be changed. Hopefully, this will be included in the next update.
Spell check for questions / answers / comments
A spell check option would improve the quality of content, reduce misunderstandings, and reduce the need to edit our comments. The spell checker would ignore blocks of formatted code which could serve a second purpose of reminding people to format their code when their variable names are all detected as misspellings.
Browser extensions such as grammarly do not work in this forum even though they work in other forums.
Thanks for the heads up, David.
Thanks Adam, we are aware of this limitation, which is due to the way the wysiwyg editor works. While providing more functionality that the previous editor since it renders complex HTML behind the scenes it cannot take advantage of the default spellchecker(s) within most browsers. That being said, there are ways to get a spellchecker that we're actively looking into.
Another nice-to-have feature: being able to move threads between the answer section and comments without having to repost them. One example of when it would be useful to only change the post type: this. In that thread there are 6 answers, each with some comments. I am not going to spend time finding out in what order they should be reposted, but if I could move the comment-answers (and their comments) to the comment section of one answer (or the question), that would solve the issue.
That thread is a relatively extreme example, but the problem of posting a comment in the answer section is a common occurence. I believe it has even been suggested that people should get a warning pop-up that they are about to post an answer to their own question (with the default option being 'post as comment').
Update - The feature for moving comments/answers/responses within a threads has been implemented.
This is something that we've been bugging Mathworks about for a long time and I know they're very aware of the need for it. Of course, the implementation have to be balanced with the need of more important features.
Has there been any further thought on changing what is considered a compulsory field for users asking a question? Title, body and tags appear to be still the only compulsory ones and some users are too lazy to put something intelligent in the tag field which allows you to type literally anything anyway.
Product is not compulsory and, as discussed previously, Release is locked until you select a product. This was the reason given last time I asked about this:
"With respect to the release drop-down being filtered, we do think this is important as it provides users with a smaller, pre-filtered list that is easier to use."
That was over a year ago and it still makes no more sense now than it did then given the reality. As another quick small sample, from the first page of questions just before I typed this, just 8 questions (excluding a Mathworks Tech Support team question) contained product information other than 'Matlab' (for which no releases would be filtered out anyway) and of those, just 5 contain the release. So not only is release locked until you enter the (optional) product, but it isn't compulsory even when you do enter the product. We're simply talking about a list of release numbers that a user has to select from. Having it almost useless just to make it 'easier to use' by filtering out a few releases is creating a 'solution' to a problem that didn't exist.
The release field seems fundamental to me and trivial to include properly. It clearly isn't working as it currently is because very few people fill in the release field. Surely the purpose of Matlab answers is to allow people to ask questions and get answers to them as smoothly as possible. So making it more difficult for the people answering the questions by not having release information just seems totally counter-intuitive. Obviously having the product compulsory for all questions would be a big help too, though again some users just put totally inappropriate products (Matlab Coder and Matlab compiler seem very popular!).
And the release ambiguity struck again: I should have noticed that the screenshots in this question showed an unusually dark background, looking an awful lot like HG1. If the release was a compulsory field, a lot of back and forth (leading to the discovery that the release in question was R2013a) would have been avoided.
on the tag note: if requiring, can there at least be a character limit warning "this is a bit long for a tag, are you asking a question in a tag?"
You get the same nuisance when you raise a bug through their web interface and it's just as annoying there.
I've suggested before to the developers to allow users to enter just a version number and if no product is select to default to matlab. I do think that version should be a compulsory field (with maybe a Not Applicable option for where it doesn't matter like this answer).
For what it's worth we (the CAB) have had several discussions with Mathworks on how to improve answers.
It is a nuisance that if I add another product to the list that the release information is discarded.
I disagreed with the reasoning then and I disagree with the reasoning now. Especially with the larger language changes it is important to know the release. Otherwise users with older releases are getting errors or users of newer releases don't take advantage of new syntax options.
- HG2 in R2014b
- implicit expansion in R2016b
- dot indexing of temporary variables in R2019b (the syntax myFunction(data).fieldA is now valid)
I want a button for spoiler
Can't believe there is no such option on this forum
Can someone please vote for my answer?
It might be used for homework answers where you give a hint first, then the hidden spoiler below it. However I don't see any student who would just take the hint and not reveal the answer hidden by the spoiler button.
Or maybe for riddles/jokes??
Automatically collapsing code blocks that contain more than 10 lines or so might indeed be a useful thing. I would argue against something like that being user-controlable because than we get the scenario Guillaume is describing.
The asnwer could be shorter and clearer
Some comment1
[spoiler]LONG CODE[/spoiler]
Some comment2
[spoiler]LONG CODE[/spoiler]
Whether it would be useful or not is debatable and considering that lots of people struggle to use the formatting tools that are already there, I fear it would be another thing we (editors) would spend time fixing.
In any case, the answer editor is using the matlab online editor, so the feature would have to be implemented by the matlab online team first. I don't see that happening.
Would that just be for making answers look shorter initially, like collapsing code or a tree? I don't use all that many forums so apart from obvious purposes where the term 'spoiler' makes more sense I'm not too familiar with its usage. I wouldn't have thought spoilers are really a concept in a Matlab forum?!
What would be your use case on this forum?
Maybe this idea has been suggested before, but maybe it would be good to have a down vote button. I sometimes see answers of questionable quality, where I don't know where to start to explain why it is such a bad idea. I don't think they should be outright deleted, and a flag doesn't really seem the solution either.
Is this something that I will just have to learn to deal with? Or is there some feature that would solve this?
(obviously I will not link to any recent examples, but you could look up some of my embarrassing first answers)
If I recall correctly we decided against downvotes early on, feeling that it would be better to comment or to post better answers (that might include material showing that the alternative would not work)
In Firefox v67, if you click on the m-file attached to a question, it offers to open it in MATLAB. But if I say to open it in MATLAB, it opens a new instance of MATLAB instead of using the existing, already open instance. Plus to make things worse, it does not even open the m-file at all. It just launches MATLAB with all your old m-files open.
It does however set the current folder to the temporary folder where the m-file gets downloaded to, however it doesn't go so far as to actually open the file in an editor window.
This is not happening for me on Mac.
Whenever a text is edited by mobile [safari browser] , the click produces superfluous three letters " ltr " , which is really frustrating.
True ;), hope it gets fixed soon as well.
I think it is odd how untested this editor feels for mobile. They probably put hours into testing for mobile as well, but as an end-user it doesn't feel that way.
Editor support on mobile seems not fully tested. (I'm using Android 9 (Lineage OS), with Chrome as browser and Swiftkey as the keyboard)
This morning I tried editing an answer, but I got the new editor, which meant I couldn't select text and click the code button. When posting a comment I suddenly got the workaround (the old style editor with a preview window).
I tried setting the browser to desktop mode, but then all the admin tools disappeared, so I couldn't edit the answer anymore.
The current implementation was implemented as a workaround for the fact that the new editor was completely unusable on mobiles. It's certainly not supposed to be like that but until the new editor actually works on mobiles that's what we're stuck with.
Hmm. I can understand the compatibility-issues this would prevent, but it is still something that is waiting for a more optimal solution.
The old style editor can be used for new content and for editing content that was created before the new style editor was turned on.
Firefox scrolling issue not fixed. I don't know if this happens in other browsers but if I go to comment or answer, the top of the edit box is off the top of the screen, so if I start typing immediately I can't see what I typed. I need to scroll down. It updates the screen with a nice sized edit box, but the top of it should not be above the viewable area.
I'm not experiencing the scrolling off the top of the screen issue anymore. I think I've maybe updated Firefox since then. So maybe it was a Firefox issue that's been fixed. I'm now using Firefox version 68.0. I'll continue to see if the issue arises again.
I just panicked for a moment when I saw the comment with a bug crawling ;)
Thanks, I thought something was crawling over my screen XD
They fixed the one bug where every time you typed a letter it would scroll to the top if your message got longer than the viewing window, but there is still a bug where right when you start a reply, the top of the edit box is above the viewing window in the browser. Not sure if they're related or if it's a new bug.
I used to run in the scrolling bug fairly often and it really made writing answers a pain (I gave up a few times). However, since we were told that the bug had been fully fixed, I've not seen it even once.
Nonetheless, I've alerted the developers of this discussion. It would be nice if they could tell us the cause of the bug before, so we know if it's still the same bug.
I think the issue is similar on Explorer (not sure if that is even still supported these days). Specifically, if I type a long response, it seems like once I reach a certain length then I get the same typing below my screen issue. I can scroll down to view what I have typed, but as soon as I enter or remove a new character then the view jumps back up too high.
I don't remember if viewing other tabs, or scrolling up to not be looking at the edit window is also a factor, but I know that length is 'consistent.'
Sometime on Chrome I scroll up to read a part of the question. Normally if I start typing again, the browser will scroll me to the text box, but under some circumstances which I can't seem to reproduce, this doesn't happen correctly. Maybe the two are related, although browsers being browsers they probably aren't.
When we insert a hyperlink into Answers from chain link button tool on the tool ribbon, the focus/cursor is not in the "Display Text" or "Target URL" field. It should be in one of them, preferably the Target URL field because I have a link in the clipboard all ready to be pasted in and I'd like to do that as soon as possible. Save us a step and put the cursor in one of the edit fields.
These days the focus is in the target URL section -- that is, this is implemented.
On the rare occasion that I do use the dialog, I've not encountered that problem either. Firefox on Windows (various FF versions on various computers with either win7 or win10).
Jan: Interestingly, I do not encounter that problem on Firefox for Mac.
When I press the icon for insterting a link in Firefox/Windows, I get a greyed out page only, but not any dialog. I have to click in the background and press escape to get control over the page again. Which browser is working better?
Yes, as I complained early on, I find the hyperlink dialog completely useless.
On the other hand, I don't bother with it. It's much easier to insert a url by typing [text to display ](actual url) which gets autoconverted into a url when you type the closing ). Much faster as it doesn't require reaching for the mouse.
Sign in to participate
Posts by this author
-
Discussion
-
Discussion
-
Discussion
-
Discussion
-
Discussion
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom(English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)