Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

如果在函数调用和返回​时,需要传递的参数体​量比较大,有什么比较​高效的方法?

1 visualización (últimos 30 días)
Zhang Qingyang
Zhang Qingyang el 24 de Dic. de 2020
Cerrada: Zhang Qingyang el 29 de Dic. de 2020
我有一些涉及深度的小型实例想在自己的本地电脑上跑,过程中部分函数需要传递的参数和返回的结果的大小都达到了几百MB,实际运行的耗时非常非常长,除了减小数据量外有什么办法能缩短这个时间?
举例说明:
function a = Myfunction(b)
如果a和b的大小在几百兆时,调用这个函数会变得非常慢。有没有什么方法能提升这个效率?
  1 comentario
Rik
Rik el 24 de Dic. de 2020
Have a read here and here. It will greatly improve your chances of getting an answer.

Respuestas (0)

La pregunta está cerrada.

Productos


Versión

R2019a

Community Treasure Hunt

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

Start Hunting!