Answered
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|>

11 years ago | 0

| accepted

Answered
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...

11 years ago | 3

| accepted

Answered
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()|

11 years ago | 0

Answered
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 ...

11 years ago | 0

Answered
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...

11 years ago | 0

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

11 years ago | 1

| accepted

Answered
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.')

11 years ago | 0

| accepted

Answered
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...

11 years ago | 0

| accepted

Answered
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 ...

11 years ago | 0

Answered
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...

11 years ago | 0

Answered
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

11 years ago | 1

| accepted

Answered
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....

11 years ago | 0

| accepted

Answered
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...

11 years ago | 1

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

11 years ago | 0

Answered
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 ...

11 years ago | 0

Answered
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 ...

11 years ago | 0

Answered
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 ...

11 years ago | 2

| accepted

Answered
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...

11 years ago | 0

| accepted

Solved


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...

11 years ago

Answered
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

11 years ago | 0

| accepted

Answered
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 ...

11 years ago | 0

| accepted

Answered
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...

11 years ago | 0

| accepted

Answered
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 ...

11 years ago | 1

| accepted

Answered
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...

11 years ago | 0

Answered
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...

11 years ago | 0

Answered
Detect color gradient to do measures.
doc edge doc imgradient doc imgradientxy

11 years ago | 0

Answered
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...

11 years ago | 2

Answered
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...

11 years ago | 0

| accepted

Answered
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...

11 years ago | 1

Answered
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...

11 years ago | 0

| accepted

Load more