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

más de 11 años hace | 0

| aceptada

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

más de 11 años hace | 0

| aceptada

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

más de 11 años hace | 0

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

más de 11 años hace | 0

| aceptada

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

más de 11 años hace | 0

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

más de 11 años hace | 0

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

más de 11 años hace | 0

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

más de 11 años hace | 0

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

más de 11 años hace | 0

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

más de 11 años hace | 0

| aceptada

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

más de 11 años hace | 0

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

más de 11 años hace | 1

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

más de 11 años hace | 0

| aceptada

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

más de 11 años hace | 7

| aceptada

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

más de 11 años hace | 1

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

más de 11 años hace | 0

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

más de 11 años hace | 0

| aceptada

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

casi 12 años hace | 0

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

casi 12 años hace | 0

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

casi 12 años hace | 0

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

casi 12 años hace | 1

| aceptada

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

casi 12 años hace | 2

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

casi 12 años hace | 0

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

casi 12 años hace | 0

| aceptada

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

casi 12 años hace | 0

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

casi 12 años hace | 0

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

casi 12 años hace | 1

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

casi 12 años hace | 0

| aceptada

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

casi 12 años hace | 0

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

casi 12 años hace | 0

Cargar más