photo

Philip Borghesani

MathWorks

Actif depuis 2011

Followers: 0   Following: 0

Message

Developer on the MATLAB language team from 1997 through Feb 2019. Now an independent agent with interest in MATLAB Consulting. Look for an additional profile here.

Any opinions stated are my own and not those of MathWorks. I do not make policy, or official statements on behalf of the MathWorks.

Statistiques

All
  • Thankful Level 2
  • Knowledgeable Level 5
  • 36 Month Streak
  • Thankful Level 1
  • Pro
  • Revival Level 1
  • First Answer
  • Solver

Afficher les badges

Feeds

Afficher par

Réponse apportée
mex file only found when in working directory, but not when in search path
Is the mex file dependent on other dlls in the same directory? It sounds to me that Matlab is finding the mex file but not some...

plus de 5 ans il y a | 1

| A accepté

Réponse apportée
Matlab encoding issue?
Could you have a corrupted font file? What happens if you change the default fonts?

plus de 5 ans il y a | 0

| A accepté

Réponse apportée
Ηow to properly measure the execution time of a piece of code
Matlab's JIT compiler performs different optimizations for code that runs multiple times and it may take many runs of a block of...

presque 6 ans il y a | 0

Réponse apportée
Why is Matlab slow with large objects in the workspace even when RAM is not limited?
Close the workspace browser or hide its tab. It may be that changing the workspace preference for calculating statistical values...

presque 6 ans il y a | 2

| A accepté

Réponse apportée
Slow readtable and low disk activity
With 64GB ram Windows can easily cache a 4GB file. The first time you run the code, or when another program accesses the file ...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
How to call .dll functions?
Mex files are normaly called just like other Matlab functions there is no need for loadlibrary. On Windows all mex files are ac...

presque 6 ans il y a | 0

Réponse apportée
Replace all pointer to handle object by pointer to a different handle object
How about one extra level of indirection?: classdef node < handle properties X Y Z end en...

presque 6 ans il y a | 1

| A accepté

Réponse apportée
Warning: A value of class "x" was indexed with no subscripts specified
Break the line into two or remove the extra parentheses. java.awt.Toolkit.getDefaultToolkit.getDesktopProperty("awt.multiClickI...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Undefined function or variable 'profile'.
Per is correct. The profiler is not currently supported by the compiler. However the primary reason for this is that there hav...

presque 6 ans il y a | 1

Réponse apportée
How to find the mode of a string array (no longer works in 2018b)
Use a character vector instead of a string array: mode(['A','A','B'],2) % or mode('AABBCCC',2) I belive it was a bug th...

environ 6 ans il y a | 0

Réponse apportée
Documentation on JIT compiler?
For the most part I belive your question has been answered well in the comments above. One reason for limited availability of de...

environ 6 ans il y a | 2

| A accepté

Réponse apportée
How to pass a string (LPSTR) command to my C++ function?
There are two ways to work around this and you almost got it. Option 1: When casting from a char to a uint8 type in matlab to p...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
error using loadlibrary on delcom.dll/.h - any idea why this is not working?
It appears that delcom.h requires a #include of windows.h. <https://www.mathworks.com/matlabcentral/answers/95236-how-can-i-acc...

environ 6 ans il y a | 0

Réponse apportée
Handle object does not beheave as expected
To clear a property set it to [] instead of using the clear function. Clear only works for variables in the workspace not part ...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
Loren says class properties can be the same as keywords but how?
Yes they can be but only sometimes. I believe at one point we considered loosening this up a bit more but there were other iss...

environ 6 ans il y a | 0

Réponse apportée
How to store .m files within a package folder
Not the way you are thinking of it however you can organize it this way: myCommonStuff/+mypackage %basic stuff myAddO...

environ 6 ans il y a | 2

| A accepté

Réponse apportée
Alternatives for using EVAL to access data in multi-layered struct?
I think this is where you went wrong: "To access specific data I use a recursive function to return the structure tree as string...

environ 6 ans il y a | 0

Réponse apportée
Matlab on AWS doesn't seem to recognize (@)Class-folders
You must add the complete @foldername folder. The clue here is |Caused by: Undefined function 'list' for input arguments of typ...

environ 6 ans il y a | 0

Réponse apportée
libstruct does not create the complete struct
It appears that there is a bug in the inspector. It does not seem to show all fields of a libstruct. Try accessing the fields ...

environ 6 ans il y a | 0

| A accepté

Réponse apportée
"profile on -history" error help: "Cannot change the history while logging is enabled."
The error message could probably be better. Could you figure it out if the error was: _"Error cannot change history while profil...

plus de 6 ans il y a | 0

Réponse apportée
clear MEX not unloading DLLs in 2016b
Clear mex and |clear all| should still unload mex files that are not in use or locked (see <https://www.mathworks.com/help/matla...

plus de 6 ans il y a | 0

Réponse apportée
cellfun changes in R2017b
There was no change to cellfun. You are (were?) misusing eval inside of an anonymous function, In R2015b and later MATLAB will...

plus de 6 ans il y a | 1

Réponse apportée
preallocating a structure with fieldnames in the form of a string from another structure
Don't use strings and don't think about eval. This could be done with |colon expansion| and a cell array to produce a |comma se...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
Is it possible to override "Unsupported Version of Windows" message?
It appears that your server is running Server 2008 sp2 which is based on Vista and probably wont run any MATLAB more recent then...

plus de 6 ans il y a | 1

Réponse apportée
string variable and command prompt
Short answer: yes. Long answer: Any MATLAB function that takes one or more character vectors as input can be called in _comm...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Different speed of execution of the same code in different versions Matlab. 2014b and 2017a
This feels like a bug to me and I filed a bug report. Walter is correct that coding this as a function is expected to produce f...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
How can I combine two objects of different subclasses into the property of another class?
Two ways to do this: # Make player a cell array instead of an array of of human players. This is the simplest solution but m...

plus de 6 ans il y a | 1

Réponse apportée
while debugging, one core constantly running
It appears you have encountered this issue: <https://www.mathworks.com/support/bugreports/1736753 Bug report 1736753> I suggest...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
Histogram gives different BinCounts while appending BinEdges
The differences in histograms are due to slightly different algorithms used in the two functions. |Hist| uses the input points ...

plus de 6 ans il y a | 0

Réponse apportée
How to preallocate tables using the table-function???
That syntax requires MATLAB R2018a. In most situations there is no need to pre-allocate a table. Just construct it from effi...

plus de 6 ans il y a | 1

| A accepté

Charger plus