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

fast 12 Jahre vor | 0

| akzeptiert

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

fast 12 Jahre vor | 3

| akzeptiert

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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 1

| akzeptiert

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

fast 12 Jahre vor | 0

| akzeptiert

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

fast 12 Jahre vor | 0

| akzeptiert

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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 0

Beantwortet
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

fast 12 Jahre vor | 1

| akzeptiert

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

fast 12 Jahre vor | 0

| akzeptiert

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

fast 12 Jahre vor | 1

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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 2

| akzeptiert

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

fast 12 Jahre vor | 0

| akzeptiert

Gelöst


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

fast 12 Jahre vor

Beantwortet
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

fast 12 Jahre vor | 0

| akzeptiert

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

fast 12 Jahre vor | 0

| akzeptiert

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

fast 12 Jahre vor | 0

| akzeptiert

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

fast 12 Jahre vor | 1

| akzeptiert

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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 0

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

fast 12 Jahre vor | 2

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

fast 12 Jahre vor | 0

| akzeptiert

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

fast 12 Jahre vor | 1

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

fast 12 Jahre vor | 0

| akzeptiert

Mehr laden