フィルターのクリア

Run time issue

1 回表示 (過去 30 日間)
Pankaj
Pankaj 2012 年 2 月 15 日
編集済み: Greg Heath 2013 年 10 月 13 日
I have a code that returns 200X200 matrix with each element as a structure. The code calculates each structure and stores it. for each of this data point the code scans a 3000 points array and generates some statistics. each structure further stores that all the data. some off it has overlap but not much.
the problem is that it is all too slow - takes 4 hours of execution time. can i make it fast somehow. Is there anything that i can do to make my code run faster? also what are the general tips to make a program run fast?
Lastly, during execution time can i store the data from RAM to physical memory? there is a space issue at times.

回答 (1 件)

Jan
Jan 2012 年 2 月 15 日
If your RAM is low, install more. If you are running a 32 bit Matlab, install a 64 bit version.
Without seeing the code it is impossible to create a specific advice. In general you can use profile to find the bottlenecks of the program. Unfortunately the JIT-acceleration is influenced in the profiling-mode, such that e.g. actually fast loops seem to use more time.
  2 件のコメント
Pankaj
Pankaj 2012 年 2 月 15 日
alright...another thing, if i run a program and get a data set. can i save/store it somewhere and lad it later. the system seems to lose it when i close matlab.
Jan
Jan 2012 年 2 月 15 日
See: "help save" and "doc save".

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by