How to find specific function changes / run code as old version of Matlab without redownloading old version of Matlab (specifically tables in 2018a -> 2015a)?

6 ビュー (過去 30 日間)
My current problem is that I'm trying to help a coworker (same building, different division) with their Matlab code, but I'm using a newer version and am having trouble manipulating tables in their version.
So how can I take my knowledge of tables in newer Matlab and apply it to tables in their version? I can't seem to find a function specific changlelog, online documentation of older versions (without hogging their computer), or a way to run my code as if running an older form of Matlab (in some older questions answers reference a "file->export as" option that doesn't seem available to me).
As to his specific problem itself, he has an array of structs that he wants to sort, or convert to a table and sort (since the variable display of the struct array makes it seem accessible like a table, when it actually isn't);

採用された回答

Guillaume
Guillaume 2018 年 7 月 3 日
The only way to get a changelog is to trawl through the release notes unfortunately. It would be nice if each function documentation had a changelog to go with the version it was introduced and I've suggested that to mathworks but they weren't very receptive.
There is no way to run code as if it were on an older version. You would have to download that older version.
You can, however, easily browse older version documentation.
As for sorting a struct array by a field, it's goint to depend on the content of the field. For a field that contains scalar numeric:
[~, order] = sort([yourstruct.yourfield]);
orderedstruct = yourstruct(order);
For a field that contains char arrays:
[~, order] = sort({yourstruct.yourfield});
orderedstruct = yourstruct(order);

その他の回答 (1 件)

Hussam Jassim
Hussam Jassim 2021 年 12 月 9 日
Dear Developer,
I am using MATLAB R2017b. The code that I work on it was built in 2008. When I import it to the MATLAB, many functions are working, but other are not working.
Is there any suggestion to modify this problem?
Yours sincerely

カテゴリ

Help Center および File ExchangeInstall Products についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by