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

casi 12 años hace | 0

| aceptada

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

casi 12 años hace | 3

| aceptada

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

casi 12 años hace | 0

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

casi 12 años hace | 0

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

casi 12 años hace | 0

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

casi 12 años hace | 1

| aceptada

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

casi 12 años hace | 0

| aceptada

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

casi 12 años hace | 0

| aceptada

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

casi 12 años hace | 0

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

casi 12 años hace | 0

Respondida
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

casi 12 años hace | 1

| aceptada

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

casi 12 años hace | 0

| aceptada

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

casi 12 años hace | 1

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

casi 12 años hace | 0

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

casi 12 años hace | 0

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

casi 12 años hace | 0

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

casi 12 años hace | 2

| aceptada

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

casi 12 años hace | 0

| aceptada

Resuelto


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

casi 12 años hace

Respondida
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

casi 12 años hace | 0

| aceptada

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

casi 12 años hace | 0

| aceptada

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

casi 12 años hace | 0

| aceptada

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

casi 12 años hace | 1

| aceptada

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

casi 12 años hace | 0

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

casi 12 años hace | 0

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

casi 12 años hace | 0

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

casi 12 años hace | 2

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

casi 12 años hace | 0

| aceptada

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

casi 12 años hace | 1

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

casi 12 años hace | 0

| aceptada

Cargar más