Answered
Accumarray strange behaviour when working on characters.
It looks like at some point there is a data type conversion and saturation occurs: uint8(A) ans = 255 255 255 0 ...

11 years ago | 0

| accepted

Answered
curve fitting tool is from which matlab version existing ?
It's been around for a very long time but requires the Curve Fitting Toolbox. If you can't find it, not having that toolbox ins...

11 years ago | 0

| accepted

Answered
How can I add points one by one in a graphic?
<http://www.mathworks.com/matlabcentral/answers/57446-faq-how-can-i-process-a-sequence-of-files>

11 years ago | 0

Answered
yosemite and matlab 2013a
<http://www.mathworks.com/matlabcentral/answers/159016-is-matlab-compatible-with-mac-os-x-10-10-Yosemite>

11 years ago | 0

| accepted

Answered
Replace NaNs with next real value.
x = [NaN 1 1 3 NaN NaN 4]; idx = isnan(x); idxnan = find(idx); idxnotnan = find(~idx); fillv = interp1([-flintmax i...

11 years ago | 0

Answered
[datacursermode] Counter for data tips in a figure
In R2014b, you can look for found parts of the axes that are PointDataTips fig = figure; ax = gca; plot(rand(1,10)) ...

11 years ago | 0

Answered
How to get back Color image from gray scale image?
You could use |rgb2ind| with an applicable map. This will color based on the map though, not based on the original colors. ...

11 years ago | 0

Answered
Grouping legend entries and adding group identification
Are you using R2014b? In older releases, Kelly's LegendFlex does a decent job and she mentions that it's been updated for R20...

11 years ago | 0

Answered
from .mat to .txt
As of R2014a, you can also use <http://www.mathworks.com/help/releases/R2014b/matlab/ref/matlab.io.savevariablestoscript.html sa...

11 years ago | 0

Answered
remove row from matrix
This is how I'd do it. % Bounds lb = [10 0 1]; ub = [60 inf 4]; % Simulate data n = 1000; data = [randi(...

11 years ago | 0

| accepted

Answered
Question to MATLAB profiler and speed of code (spline calculation during optimization)
Interior point is usually the best algorithm (hence why we made it the default!). I question if the spline calculations are...

11 years ago | 0

Answered
MATLAB is not recognizing .h5 files; do I need a different version?
Are you using <http://www.mathworks.com/help/releases/R2014b/matlab/ref/h5read.html |h5read|>?

11 years ago | 1

Answered
Is it possible to set azimuth and elevation for 2D image?
In r2014b you can do this: <</matlabcentral/answers/uploaded_files/20229/Capture.PNG>> In older releases you need to u...

11 years ago | 0

| accepted

Answered
Cannot support cell arrays containing cell arrays or objects.
You can use comma-separated list expansion here: B = [A{:}]

11 years ago | 7

| accepted

Answered
Greek symbols (esp. ยต) not italic
Use the _'tex'_ interpreter instead of the latex one: >> xlabel(['c_{O2} [',char(181),'mol/l]'],'Interpreter','tex');

11 years ago | 1

Answered
Question to MATLAB profiler and speed of code (spline calculation during optimization)
You can do this with one call to griddedInterpolant or interp1 (which builds a griddedInterpolant under the hood). Build it onc...

11 years ago | 0

Answered
Compile version of program doesn't recognise a file location
Use |ctfroot| for this.

11 years ago | 0

| accepted

Answered
Question about parforloop in matlab
Rather than writing results to the same file, write to N files and concatenate them later where N is the number of workers you h...

11 years ago | 0

Answered
How to Perform integration in MATLAB without using 'int ' Function
doc integral And friends.

11 years ago | 0

Answered
How to create a switch until released button in Matlab GUI
There's not really a straight-forward way to do that. It can be done with a patch made to look like a uicontrol whose buttondow...

11 years ago | 0

Answered
How to remove mammogram tags automatically?
I would use my <http://www.mathworks.com/matlabcentral/fileexchange/29175-shrinkwrap |shrinkWrap|> function with the _'biggest'_...

11 years ago | 1

| accepted

Answered
Passing arguments to varargin
Have you tried inputParser? It provides a good framework for what you're trying to do. <http://www.mathworks.com/help/rele...

11 years ago | 2

Answered
I need programming the standard gossip algorithm please help me
<http://www.mathworks.com/matlabcentral/fileexchange/20290-update-twitter-status This should help>

11 years ago | 0

Answered
If/Else statement within a For loop statement
First, the easy way: theta=[-pi/2: pi/100: pi/2]; G=abs((sin(4.*theta))./(4.*theta)); G(theta==0) = 0.5 polar(theta,G) ...

11 years ago | 0

| accepted

Answered
Compute permutations of vector and output as cell arrays
A = [1 2 3] num2cell(perms(A),2)

11 years ago | 0

Answered
Measure Increasing Diameter in Video File - Simulink
Something along these lines? The interpreted ML function would check if the diameter is big enough and ping the tcpip command...

11 years ago | 0

Answered
Plotting a Truss System
>>truss And to see the code >>edit truss

11 years ago | 1

Answered
Anonymous function from for loop
Although it is showing i, as the variable, this is actually hardwired to the numeric value. for ii = 1:n feval(f{ii},p...

11 years ago | 0

| accepted

Answered
Creating function with two vector inputs?
This should help you getting started. <http://www.mathworks.com/help/releases/R2014b/matlab/ref/function.html>

11 years ago | 0

Answered
tic toc inside a timeit
This is actually mentioned in the tips at the bottom of the doc for timeit <http://www.mathworks.com/help/releases/R2014b/mat...

11 years ago | 0

Load more