scientific notation in each element
Is it possible to display scientific notation independantly in each element of the matrix? Currently matlab has a global expone...
environ 3 ans ago | 1 answer | 0
importing a package is very slow
Say I have two packages: +pack1 -- func1.m -- func1_no_import.m +pack2 Pack1 contains the following code: ...
plus de 4 ans ago | 0 answers | 1
How to avoid importing the same package name repeatedly in all functions in this package?
I have a package that contains n functions +mypackwithlongname +mypackwithlongname/f1.m +mypackwithlongname/f2.m ......
plus de 4 ans ago | 1 answer | 3
How to run a default method if a class method is undefined?
Say I have a class called A. a=A(); b=A(); If we call foo123(a,5,b,6) and foo123 is not defined, there will be an err...
plus de 4 ans ago | 1 answer | 0
Check gpuArray double or single?
I'm pretty sure a gpuArray has a type (e.g., single or double). But i'm not sure how to check it. The function isa does not w...
presque 5 ans ago | 1 answer | 1
Easily Reproducible GPU Bug in R2017a
There is a GPU bug in R2017a, which can be reproduced by the following simple code: p=gpuArray(single(randn(1,4,10,2359...
presque 5 ans ago | 1 answer | 0
How to initiate a linux (shell) command from matlab but not wait for the output?
I know I can use the function unix (or system), but it has to wait the script to return. The script actually will run for a long...
environ 9 ans ago | 1 answer | 1
dbstop if error: manually fixing the error and continue?
Hi all, Let's say I toggle on the dbstop if error. And the matlab automatically stops at the error, is it possible for me to ...
environ 9 ans ago | 3 answers | 1
waitforbuttonpress do not respond to keyboard
Hi all, I have a program that calls waitforbuttonpress very frequently. (about 4 times per second). After running it for some...
plus de 9 ans ago | 1 answer | 0
Is it possible to have larger (than 16-by-16) pointer size?
Hi all, I'm designing a drawing program in matlab (just imagine a simplified Photoshop), where the paintbrush can have larger...
plus de 9 ans ago | 2 answers | 0