Réponse apportée
Can't find the function "cholinc" in MATLAB 2014a
At some point it was replaced by <http://www.mathworks.com/help/releases/R2014a/matlab/ref/ichol.html |ichol|>

presque 12 ans il y a | 0

| A accepté

Réponse apportée
How can I instruct MATLAB editor to open a file with focus on specific line/function?
This can be done using the editor api. edit your_class.m hEditor = matlab.desktop.editor.getActive; hEditor.goToLine(line...

presque 12 ans il y a | 3

| A accepté

Réponse apportée
griddata Parameter must be a 'double matrix'
What is the class of the variables? class(X) If it's not double, convert it to double using |double()|

presque 12 ans il y a | 0

Réponse apportée
How to connect and retrieve data from Interactive Brokers
Have you copied that entire example into a MATLAB file and called it? I would expect the example to work and if it doesn't ...

presque 12 ans il y a | 0

Réponse apportée
Programs communicating with Matlab
What are the other external programs? The Builder products allow you to build for specific environments (.NET Java Excel) and t...

presque 12 ans il y a | 0

Réponse apportée
Multiply image with vector
|bsxfun| does exactly that :) >> bsxfun(@times,vec,img) (I use this really frequently for applying operations to RGB ima...

presque 12 ans il y a | 1

| A accepté

Réponse apportée
sum of vector by group
a=[1 4 1 -3 -6 9 9 1 1 1 -1 -1 -4]; idx = cumsum([0 abs(diff(sign(a)))==2])+1; res = accumarray(idx.',a.')

presque 12 ans il y a | 0

| A accepté

Réponse apportée
Changing stop criteria for vpasolve
How about <http://www.mathworks.com/help/optim/ug/fsolve.html |fsolve|> in the Optimization Toolbox? With |fsolve|, the toler...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
How do you publish an internet link to a pdf from a Matlab editor?
<http://www.mathworks.com/help/releases/R2014a/matlab/matlab_prog/marking-up-matlab-comments-for-publishing.html> Probably a ...

presque 12 ans il y a | 0

Réponse apportée
Stop/Delete Timer Issues While Closing GUI
Another thing you can do is inside of the |timerfcn|, validate that it won't error by checking the whether the axes (or whatever...

presque 12 ans il y a | 0

Réponse apportée
To calculate or estimate a center of a convex hull
<http://www.mathworks.com/matlabcentral/fileexchange/8514-centroid-of-a-convex-n-dimensional-polyhedron FEX> has (at least) one

presque 12 ans il y a | 1

| A accepté

Réponse apportée
generating a usable Matlab variable from csv file
In R2014a, we introduced <http://www.mathworks.com/help/releases/R2014a/matlab/ref/matlab.io.savevariablestoscript.html |matlab....

presque 12 ans il y a | 0

| A accepté

Réponse apportée
why my regression plot is inverse
You've likely overfit your model to your data. Try changing the amount of data in each of the fields (less in training, more in...

presque 12 ans il y a | 1

Réponse apportée
adjusting color in colorbar automatically
You could also try the colormap editor: >>colormapeditor (Also available in the figure under *"Edit"* -> *"Colormap"*)

presque 12 ans il y a | 0

Réponse apportée
Matlab “Index exceeds matrix dimensions" when I was forming momentum strategy
The easiest way to debug this kind of error is with "Stop on Errors". Run the following to turn it on: >>dbstop if error ...

presque 12 ans il y a | 0

Réponse apportée
Vector y seems to change without my modifying it
Use the <http://www.mathworks.com/help/releases/R2014a/matlab/matlab_prog/debugging-process-and-features.html debugger>! Put ...

presque 12 ans il y a | 0

Réponse apportée
What is changing in R2014b?
Hi Chad, First, one of the purposes of the prerelease is to provide you with an opportunity to test your code against up and ...

presque 12 ans il y a | 2

| A accepté

Réponse apportée
Programming: I can not update inside my function
tdot is not a persistent variable so it will not persist across function calls. It will be cleared out at the end of each itera...

presque 12 ans il y a | 0

| A accepté

A résolu


Wind Chill Computation
On a windy day, a temperature of 15 degrees may feel colder, perhaps 7 degrees. The formula below calculates the "wind chill," i...

presque 12 ans il y a

Réponse apportée
Iterate through two matrices and get the item with the same index
for ii = 1:numel(A) Aii = A(ii) Bii = B(ii) do_whatever_with(Aii,Bii) end

environ 12 ans il y a | 0

| A accepté

Réponse apportée
How is a try catch block evaluated?
My understanding is that the JIT does work with try/catch and that they do not affect performance *as long as no exceptions are ...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
Asign data with index or something...
You've defined matrix to be a 3x3 but want to reference the 7th and 10th row. How big should it be? If you just want it to b...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
Add a vector to a struct array
You could use a |for|-loop (which would be the easiest to understand) and may be the fastest. Or you could use comma-separated ...

environ 12 ans il y a | 1

| A accepté

Réponse apportée
Image Acquisition Toolobox : Why Stop(vid) is so slow?
Have you profiled it to see if anything else happens when the video stops? A graphics update? A file-write, etc.? doc pro...

environ 12 ans il y a | 0

Réponse apportée
Breakpoint is cleared w/o using "clear all"
My guess is you are unknowingly calling |clear all| or possibly |dbclear all| :(. To find out, one thing you can do is over...

environ 12 ans il y a | 0

Réponse apportée
Detect color gradient to do measures.
doc edge doc imgradient doc imgradientxy

environ 12 ans il y a | 0

Réponse apportée
How can I average points with just the same x-coordinate?
Sure! % Sample x y x = randi(10,100,1); y = rand(100,1); % Unique x's and their locations [ux,~,idx] = uniq...

environ 12 ans il y a | 2

Réponse apportée
Question on CATEGORICAL and Help files
I usually preallocate tables or categoricals dynamically by running my loop backward T = table; for ii = 10:-1:1; T(i...

environ 12 ans il y a | 0

| A accepté

Réponse apportée
Using export_fig with publish
You could |export_fig| to save it to a file and then use the image markup tag to add it to the published report. export_f...

environ 12 ans il y a | 1

Réponse apportée
Seemingly a bug in lassoglm?
which -all zscore More than likely you have your own zscore function shadowing the builtin. Please rename this one and the...

environ 12 ans il y a | 0

| A accepté

Charger plus