Réponse apportée
regexp usage for cellArray data which includes both characters and numbers.
Try not to use lookaround operators in Matlab. If you only want the first column: first_column_string = regexp(cellArray...

plus de 12 ans il y a | 0

Réponse apportée
How do I randomly assign two integers to an array of strings?
I like to think of the solution as involving grouping the strings into two different groups. One way of doing this is to sort an...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Random elements of a vector which sum near a specific number
Here's a solution. Some notes: # Remove calculations from your loops, like the mean of the data, this doesn't change # s...

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Problem with scatter plot over pcolor
Actually I think this is a bug. I am by no means a patch expert but it appears that scatter is implemented as a hggroup with a s...

plus de 12 ans il y a | 1

Question


XData, YData, CData, Fun Data! - single pixel image width
What would you expect the image limits to be from this function? (before running it): imagesc([0 1],[1 20],rand(1,10)) Am ...

plus de 12 ans il y a | 1 réponse | 0

0

réponse

Question


Hide package from tab completion
Is it possible to hide a package from tab completion?

plus de 12 ans il y a | 1 réponse | 1

0

réponse

Réponse apportée
Set Methods for Dynamic Properties with Unknown Names
You could add a listener that on pre set assigns the name to the object ... Basically just before you actually set the proper...

plus de 12 ans il y a | 0

Réponse apportée
How to generate a matrix whose rows numbers are not elements of a given row vector
The following code should do what you want. use_row = true(1,size(A,1)); use_row(v) = false; B = A(use_row,:);...

plus de 12 ans il y a | 0

| A accepté

Question


Interrupt Java Execution in Matlab Using Ctrl-C
Is it possible to interrupt execution of a Java method in Matlab using ctrl-c? The only thing I could find from TMW is: <htt...

plus de 12 ans il y a | 2 réponses | 0

2

réponses

Question


Cell array concatenation rules
I feel a bit silly asking this, but could someone explain the reasoning or thoughts behind the concatenation of cell arrays with...

plus de 12 ans il y a | 1 réponse | 1

0

réponse

Question


close file and quit debugger
Hi all, Normally I code with "dbstop if error" enabled. Sometimes I type something which I know is an error (like forgettin...

plus de 12 ans il y a | 1 réponse | 0

0

réponse

Réponse apportée
Matlab File Exchange on github
I agree. I think the main problem is that the somewhat authorative presence of a place to share Matlab files by TMW lends itself...

plus de 12 ans il y a | 0

Réponse apportée
Unique function cell array conflict
I just stumbled upon this weird behavior recently. See: <http://www.mathworks.com/matlabcentral/answers/74169-unique-rows-cell...

presque 13 ans il y a | 0

Question


Unique rows cell array ignored
I recently tried to find the unique rows of a cell array and got the following *warning*: Warning: The 'rows' input is not su...

presque 13 ans il y a | 1 réponse | 2

0

réponse

Réponse apportée
how to find unique rows in cell array in matlab
The solution above works since the contents concatenate into a hyperrectangle. Put more plainly, in this case, the solution work...

presque 13 ans il y a | 4

Question


Static class call via string variable
Is it possible to call a static method or Constant property from a class whose name is represented by a string without using eva...

presque 13 ans il y a | 3 réponses | 2

3

réponses

Réponse apportée
Unable to clear classes
This is a bug: <http://www.mathworks.com/support/bugreports/893538 893538> It has been fixed in 2013a

presque 13 ans il y a | 0

| A accepté

Réponse apportée
What is missing from MATLAB?
*Create a formal website for Matlab suggestions.* This isn't necessarily for Matlab as much as it is TMW in general, but what...

presque 13 ans il y a | 4

Réponse apportée
Pull String out of Edit Text without user hitting enter
Here's another approach involving changing control focus. Here's some relevant documentation, with summaries for 2013a: <h...

presque 13 ans il y a | 1

Question


Why is calling constructor from class above package allowed?
I just noticed that I can call a constructor from an instance of a class that is situated just above the package that the class ...

environ 13 ans il y a | 1 réponse | 1

1

réponse

Réponse apportée
How to Restore Focus to Matlab after another process steals it
Here's my solution, which only restores focus to the command window. Restoring focus to the command window is easy, the tricky ...

environ 13 ans il y a | 0

| A accepté

Question


How to Restore Focus to Matlab after another process steals it
I am launching a java process which unfortunately steals the focus away from Matlab. When typing in the command window this is r...

environ 13 ans il y a | 1 réponse | 0

1

réponse

Question


Unable to clear classes
At times I am unable to clear classes in Matlab without restarting the program. This seems to be related to errors being thrown ...

plus de 13 ans il y a | 8 réponses | 4

8

réponses

Réponse apportée
FEX not recognizing functions
Looks like a spacing issue to me. Specifically it looks like there is no space following the word "function". function[args] ...

plus de 13 ans il y a | 0

Question


Tab Complete seems to silently execute code
I have a class which launches a process in Windows (using .NET) which brings up the command window. The class name is also the n...

plus de 13 ans il y a | 1 réponse | 3

1

réponse

Question


3d extrapolation of smooth function
I have a 3d set of evenly spaced points, at which I would like to evaluate some function. Evaluation of the function is costly. ...

plus de 13 ans il y a | 3 réponses | 0

3

réponses

Réponse apportée
Managing Public Key Certificates in Matlab
I ended up entering the url being requested in Chrome. On the left side of the address there is a lock indicating the presence o...

plus de 13 ans il y a | 6

| A accepté

Question


Managing Public Key Certificates in Matlab
Hi all, I recently tried to request a secure web page via https and got a Java error when trying to validate a certificate, s...

plus de 13 ans il y a | 1 réponse | 0

1

réponse

Question


Determine current stack level
The goal is to be able to write a function which opens the editor to the current stack level. This is fairly easy to do for the ...

plus de 13 ans il y a | 1 réponse | 1

0

réponse

Réponse apportée
Matlab function to get text for display of object property
It seems like avoiding eval for so long I've forgotten that the input needs to be a string! The evalc approach isn't the greates...

plus de 13 ans il y a | 1

| A accepté

Charger plus