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 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Micholas Rivera
el 3 de Jul. de 2018
Respondida: Hussam Jassim
el 9 de Dic. de 2021
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);
0 comentarios
Respuesta aceptada
Guillaume
el 3 de Jul. de 2018
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.
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);
Más respuestas (1)
Hussam Jassim
el 9 de Dic. de 2021
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
0 comentarios
Ver también
Categorías
Más información sobre Install Products en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!