You are now following this question
- You will see updates in your followed content feed.
- You may receive emails, depending on your communication preferences.
Matla quite slow while display 1024x1024 matrix
1 view (last 30 days)
Show older comments
Good morning,
I face an issue while displaying simple matrix using such a script:
N=4096; a=ones(N,N);
figure(); mesh(a)
Matlab take minutes to display the surface and once dislayed it takes some more minutes to get out a frozen state.
I am not an expert at all but it seems to me it can be connected to the Graphical processor.
mine is NVIDI Quadro P1000, I don"t know whether this is a well sized one.
Many thanks for your feedback
Frederic
13 Comments
Rik
on 24 Feb 2021
When I try this, I mainly see my CPU doing something.
You should note that the array you create is 4096x4096, not 1024x1024.
Frederic Cleva
on 24 Feb 2021
Many thanks for the fast feedback Rick,
4096x4096, yes indeed, did I suggest that it was a 1024x1024 one?
I check the information given through the task managr and it says that the processor is occupied at 15% and memory requires 5 Go while the GPU is not that active. You are right.
I thought it could be related to graphical issue because any trial to move the 3D surface within the plot takes more than few minutes...
Did you get the same feature? Or does the 3D image gently follow when you drag with your mouse?
Thanks again for the help
Frederic
Walter Roberson
on 24 Feb 2021
For me the 4K mesh takes a small number of seconds to bring up (roughly 8 seconds.) . Spinning it is a bit laggy but not so bad.
Frederic Cleva
on 25 Feb 2021
Many thanks Walter,
is your computer something specifically boosted?
my laptop is a DELL recision 5530 with Intel Core i7-8850H CPU@ 2.6GHz / 16 Go RAM and two Graphics cards "NVIDIA Quadro P1000 " and Interl UHD Graphics 630. At least this is what mentionned from the peripheric manager.
I guess those values are not that bad
Frederic
Frederic Cleva
on 25 Feb 2021
Hum...
I run it on the laptop of a colleague with the same disapointing results. (for 4096^2 matrix)
Frederic Cleva
on 1 Mar 2021
Hi everyone,
Some tracks:
when I run my script (4096x4096 matrix display) with matlab 2012 it takes only 10sec when I run whith older relaease (2018) it takes ages (minutes...).
Walter, do you run matlab 2012? or some not recent version?
In this specific case it seems worth to make the calculation with maltalb and ask another application fr the display
Many thanks
Frederic
Bjorn Gustavsson
on 1 Mar 2021
In my experience matlab becomes very slow when tasked to plot large number of lines. That might also affect mesh. Could you aviod this irritation by using imagesc, surf or some other plotting-function?
Frederic Cleva
on 1 Mar 2021
Many thanks Bjorn,
you make the point!!
Indeed with imagesc() it runs within few seconds instead of minutes for mesh() and surf() .
Frederic
Frederic Cleva
on 2 Mar 2021
Edited: Frederic Cleva
on 3 Mar 2021
what I know now:
matlab2020b + mesh(4096) + Imac2012 = few sec
matlab2012 + mesh(4096) + laptop DELL Precision5530 = few sec
matlab2018b + mesh(4096) + laptop DELL Precision5530 = few minutes
matlab2019a + imagesc(4096) + laptop HP ProBook (very basic) = few sec
I just installed matlab2020b, and now:
matlab2020a + imagesc(4096) + laptop DELL Precision5530 = few sec
and back to matlab2018b:why
matlab2018b + imagesc(4096) + laptop DELL Precision5530 = few sec
Conclusion:
my pb is solved but I don't understand how.
(By the way it is not specific to my laptop since a colleague faces the same issue)
Answers (0)
See Also
Categories
Find more on Graphics Performance in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!An Error Occurred
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom(English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)