MATLAB FEX now supports previewing files in a new standalone tab!


Over the past few days I noticed a minor change on the MATLAB File Exchange:
For a FEX repository, if you click the 'Files' tab you now get a file-tree–style online manager layout with an 'Open in new tab' hyperlink near the top-left. This is very useful:
If you want to share that specific page externally (e.g., on GitHub), you can simply copy that hyperlink. For .mlx files it provides a perfect preview. I'd love to hear your thoughts.
EXAMPLE:
🤗🤗🤗
Vijay Iyer
Vijay Iyer el 9 de Feb. de 2026 a las 13:36
Thanks for sharing, I'm quite excited by this too! I've recently worked with EXTRACT (recently led by @Fatih Dinc) and mTRF Toolbox (@Mick Crosse) on showing select/featured live script examples on their GitHub READMEs, but those links needed to be updated with new releases. This change brings stable links, so this 'example-forward' approach to a README can now be more widely recommended/suggested.
Yair Altman
Yair Altman el 6 de Feb. de 2026 a las 14:47 (Editada a las el 6 de Feb. de 2026 a las 14:52)
Nice indeed.
I suggest fixing the preview for images - it currently streches the images to 100% height even if the width does not fit the display pane's width, and enlarges the images to fit the height. I think it would be best to (1) only shrink the image as needed, not enlarge it, and (2) take into consideration the max-width as well as the max-height
For *.md files, the preview renders text styling as expected, but images are not displayed for some unknown reason.
Connor Delaney
Connor Delaney el 17 de Feb. de 2026 a las 21:11
The image scaling issue is fixed. Thanks @Yair Altman for noticing and @Kunal Sawlani for the fix!
Yair Altman
Yair Altman el 23 de Feb. de 2026 a las 12:14 (Editada a las el 23 de Feb. de 2026 a las 12:39)
@Connor Delaney @Kunal Sawlani - Images should be top-left aligned (or at the very least top-aligned vertically) in the preview pane - not center-center aligned as they are now. It's great that you fixed the scaling problem, but images now appear too far down the page on monitors where images are typically smaller than the preview pane. It looks ok on mobiles (no vertical margin), but not desktops/laptops.
The problem is evidently due to an underlying bug of setting the top-most iframe (in the all-tabs-container div)'s min-height to 100vh, instead of a calculated value that takes into consideration that the iframe takes up only about half the viewport's hight. This causes unnecessary vertical scrollbars, and pushes content (such as images and the MathWorks page footer) to the bottom of the webpage and beneath. So fixing the vertical alignment of images is only part of the solution - the underlying problem of the iframe's min-height:100vh should also be corrected.
On a related matter, HTML pages are shown as sytax-highlighted text rather than being rendered in a dedicated HTML iframe. For example: https://www.mathworks.com/matlabcentral/fileexchange/9647-grep-a-pedestrian-very-fast-grep-utility/files/html/grepdemo.html
For files that could be displayed either rendered or as text (HTML, MD, XML, JSON, PDF), I suggest adding a toggle control at the top of the preview pane to allow switching between rendered and syntax-highlighted text view. IMHO, for such files the default should be rendered view, not text.
Michelle Hirsch
Michelle Hirsch el 6 de Feb. de 2026 a las 15:15
Thanks for catching this, @Yair Altman. I reported the markdown issue to development a few days ago - they are working on it. I'll pass along your input on images now, too.
Adam Danz
Adam Danz el 6 de Feb. de 2026 a las 14:32
This is awesome!
David
David el 6 de Feb. de 2026 a las 13:34 (Editada a las el 6 de Feb. de 2026 a las 16:55)
@xingxingcui, the link you provided took a while to load for me - it's a big file. Here's one that loads quicker: https://viewer.mathworks.com/addons/182645/1.0.0/files/basic_TPS/example.mlx
xingxingcui
xingxingcui el 7 de Feb. de 2026 a las 1:34 (Editada a las el 25 de Feb. de 2026 a las 4:31)
When the .mlx file is larger it does open slowly — at first I thought the link was broken because it took over 10 seconds for my link to open.
--------update-------
However, I found that if you use the traditional built-in publish to output HTML for preview, it's very fast and the interface looks quite nice (this kind of preview does not require loading the MATLAB virtual engine).
For example:
--------older update-----
But given the current situation, even though I successfully published an HTML document using publish and can open it perfectly in my local web browser, the FEX no longer allows viewing the HTML rendering directly as before, which is a bit unfortunate. Below is my updated repository:
-----------latest update------
Another very effective approach is to render HTML directly using GitHub.
Below are preview links showing MATLAB rendered to HTML using the built-in publish function and exporting from an .mlx file, respectively.
  • use publish built-in function to html preview,
  • use export built-in function to html preview,
The two loading methods above are both relatively fast, provided an HTML file is generated; by contrast, MATLAB previewing an .mlx file requires launching a virtual machine and is slower.
Kunal Sawlani
Kunal Sawlani el 19 de Feb. de 2026 a las 16:48
Hi @xingxingcui, thanks for the note. We are looking into the HTML rendering behavior you mentioned.
goc3
goc3 el 6 de Feb. de 2026 a las 15:06
David, both the link that you and @xingxingcui provided do not work for me in Safari (macOS 13.7.8).
However, both your links DO work for me in Chrome, Firefox, and Brave... The broken-link problem appears to be browser-specific.
Kunal Sawlani
Kunal Sawlani el 6 de Feb. de 2026 a las 17:17
Hi @goc3, if possible, could you check your version of Safari ?
I believe the latest version of Safari available on macOS 13.7.8 is Safari 18.6. If your version is an earlier version, could you update Safari to 18.6 (if this is an option for you) and try again?
goc3
goc3 el 6 de Feb. de 2026 a las 18:49
I had been running Safari 16.6 (18615.3.12.11.2). I just updated it to 18.6, and now both links work for me in Safari.
Michelle Hirsch
Michelle Hirsch el 6 de Feb. de 2026 a las 15:14
I had issues, too. I've passed along to the development team. They are investigating.
David
David el 6 de Feb. de 2026 a las 16:55
Turns out I just didn't wait long enough for the file to load.