Answered
How to load in variable if it is present in a matfile?
<http://www.mathworks.com/matlabcentral/fileexchange/42159-matwho> Use this to determine what's in the MAT file, then use the...

10 years ago | 1

Answered
Matlab doesn't recognize all cores on my desktop
pool = parpool('local',24)

10 years ago | 0

| accepted

Answered
Is there a function that can plot data points (Z) as a 3D bar based on their individual coordinates (X, Y)?
Or if not on a grid: <http://www.mathworks.com/matlabcentral/fileexchange/1420-scatterbar3>

10 years ago | 1

| accepted

Answered
Matlab function inside Simevents gives parse error
You don't need to define VFT1:n as doubles with the double command, this is default: VFT1 = 0; What you're doing: d...

10 years ago | 0

Answered
how to use matlab image in MS documents
You can always |print| your figures to images and insert them into a document manually. You can also |publish| a MATLAB file ...

10 years ago | 0

Answered
Matlab does not recognize my subclass unless my current folder is that class' folder?
Add the directory containing the class to the path: doc pathtool doc addpath Or in the Current Folder browser, right-cl...

10 years ago | 0

Answered
replace elements in an Array with other elements
A=[1 2 3 4 4 4 5 8 7 4 6 4] idx = find(A~=4); B = interp1(idx,A(idx),1:numel(A),'previous','extrap') Gotta love the _'pre...

10 years ago | 1

Answered
loadlibrary mfilename put in sub folder
To your second question, Yes: web(fullfile(docroot, 'matlab/ref/mex.html')) Look at the _'outdir'_ option.

10 years ago | 1

Answered
Which regression method may give better R^2 values on this scattered data?
Have you tried using one of the Machine Learning Regression techniques on it? doc fitlm doc stepwiselm doc fitrtree ...

10 years ago | 1

| accepted

Answered
Matlab command history question
Search it directly! <</matlabcentral/answers/uploaded_files/34274/2015-07-17_7-58-36.png>>

10 years ago | 0

Answered
is it possible to define global title on figures?
If you have the Bioinformatics Toolbox you can also use |suptitle|. suptitle('I''m a Super Title')

10 years ago | 7

Answered
Error messagge for controlchart() for p chart
You have four points, and five replicates (columns). You will need at least five points for this.

10 years ago | 0

Answered
Backslash for solving very big sparse matrix in Ax=b
# No, MATLAB Coder doesn't yet support sparse. <http://www.mathworks.com/help/releases/R2015a/coder/ug/matlab-language-features-...

10 years ago | 1

Answered
Efficient implementation for loops
Preallocating C will make this much faster: Before the loop: C = zeros(4,10);

10 years ago | 1

Answered
One function for an infinite amount of pushbuttons in matlab
You can compares src directly to a list of handles to identify the button used and then make your decision based on this: f...

10 years ago | 0

| accepted

Answered
Constrain results of curve fitted equations to never exceed target data?
You'd have to write your own least squares objective function and then use |fmincon| (or |MultiStart| with |fmincon|, or |patter...

10 years ago | 0

Answered
Is there any way of shaping inputdlg in GUI?
I might suggest just using a |uitable| as your input source.

10 years ago | 0

Answered
Quick way to sum array elements based on flag in another array?
accumarray(interp1(find(lost),1:nnz(lost),1:numel(lost),'next')',clean)

10 years ago | 1

Answered
My map does not have a correct ratio of scale.
My guess is the projection that was used to create X/Y was not an equal area one and thus you are seeing the distortion because ...

10 years ago | 0

Answered
Find the Monday preceding the third Friday of the month
If you have the Financial Toolbox, you can do this with <http://www.mathworks.com/help/releases/R2015a/finance/nweekdate.html |n...

10 years ago | 0

| accepted

Answered
Scalar dot product in sym environment
dot product of two 2x1 syms works for me: syms x y q z XY = [x;y] QZ = [q;z] dot(XY,QZ) _q*conj(x) + z*conj(y)_ Br...

10 years ago | 0

Answered
saving edited colormap data
Is |gcf|, the same as |fig|?

10 years ago | 0

Answered
Problem with input for the datetime function
|datetime| was released in R2014b so if you're using an earlier release, you'll need to upgrade to use it. This works fine fo...

10 years ago | 0

| accepted

Answered
How can I get which tab is selected?
tg = uitabgroup; tabs = gobjects(3,1); for ii = 1:3; tabs(ii) = uitab('Parent',tg); end % Select a tab tabNumber...

10 years ago | 2

Answered
probably a dumb question - logical indexing
tau = find(T(4001:end)-T(1:end-4000)<=0.1,1,'first') Something like this (not tested in ML) Though this won't be faster ...

10 years ago | 1

| accepted

Answered
Controlling the elevation (Z value) of vector plots
Adjust the _'ZData'_ of the lines In the |quiverm| plot: load coast axesm('eqaconic','MapLatLimit',[30 60],'MapLonLimit',[...

10 years ago | 0

| accepted

Answered
Need Way to calculate Line-of-Sight through Terrain that is faster than los2
You could consider using the Parallel Computing Toolbox to calculate multiple lines-of-sight at the same time with |parfor| or |...

10 years ago | 0

Answered
Aerospace blockset examples are now broken with Gauges blockset removed in R2015a
Contact tech support. I'm running into the same issue.

10 years ago | 0

Load more