Answered
Code for Multimodal Histogram Segmentation of images
doc multithresh doc imquantize

11 years ago | 0

Answered
Can you do this calculation any faster?
Another (small) improvement you can make here is to pull some of the static computations out of the loop. For example [2*N...

11 years ago | 0

| accepted

Answered
how to generate sin signal in simulink?
Use a sine wave source block: <http://www.mathworks.com/help/releases/R2014b/simulink/slref/sinewave.html>

11 years ago | 0

| accepted

Answered
If I don't know Linear Algebra can I still take the MATLAB Fundamentals class for beginners?
Yes. The majority of the class is focused on workflows etc. and not on math or anything very specific. You will see some f...

11 years ago | 0

| accepted

Answered
How to stop closing Excel in a programmatic GUI?
Are you accessing Excel through the COM API? If so, don't close the application unless all of the criteria are met.

11 years ago | 0

Answered
Problem with my code, any help?
b = bwlabel(logical(a))

11 years ago | 0

Answered
Is their the way we could put constraints for variables in ODE15s such that simulated values of these variables are always greater than 0.
It sounds like you need to add this to your odefun that ode15s is calling. If that values cannot be negative, then this functio...

11 years ago | 0

Answered
Work online with Neural networks using real time inputs
In NNTOOL there is an option to generate a simple or advanced script. Have you done this? At that point, I would save the ne...

11 years ago | 1

| accepted

Answered
how to use PreLoadFcn
You'll need to add the directory containing |my_param.m| to the MATLAB path so MATLAB and SIMULINK can see it: <</matlabc...

11 years ago | 0

Answered
The greatest common divisor
Use a for loop over the elements in the matrix for ii = 1:numel(A) b(ii) = existing_gcd_algorithm(A(ii),c) end

11 years ago | 0

| accepted

Answered
Why am I getting an error while using intlinprog
IntCon is a function handle. It cannot be. It has to be a vector showing which elements are integer constrained. For example:...

11 years ago | 0

| accepted

Answered
Convert ordered date to formal matlab date
Or in R2014b you can do this with the new and improved datetime class: datetime(2014,1,1:365,0,0,0)'

11 years ago | 0

Answered
Debug mode in code with blocks(cells)
No. There is no way to do this. When you run a section, it essentially copies and pastes it to the command line to run, thus t...

11 years ago | 0

| accepted

Answered
Matlab 2014b: figure() dbstops
Have you tried: dbstop if error To see the error where it is happening to figure out what is being called and how?

11 years ago | 0

Answered
How to do a contour plot of a matrix C with respect to matrices A and B as X and Y axis?
A and B need to be monotonically increasing grids as would be the result from |meshgrid| [xx,yy] = meshgrid(linspace(0,1,40...

11 years ago | 0

Answered
P-Code Generation Segmentation Fault
Please <http://www.mathworks.com/support/contact_us/index.html contact MathWorks' Technical Support>

11 years ago | 0

| accepted

Answered
cumulative sum that restarts whenever it reaches certain level
rng default x = randi(3,[20 1]); thresh = 6; while 1 xc = cumsum(x); k = find(xc > thresh,1,'first...

11 years ago | 0

| accepted

Answered
Set and enforce axis properties immediately
If you don't need the intermediate updates in the loop, pull the drawnow out of the loop and call it once after setting xdir rev...

11 years ago | 0

Answered
How to reshape a matrix from a vector?
If you want a 100x2 from a 105 element vector, padding with zeros, this should do it: buffer(1:105,100)

11 years ago | 0

Answered
FMINCON Curve fitting
|fmincon| is overkill. Use |lsqcurvefit| which already has the objective function framed for you. doc lsqcurvefit % for mo...

11 years ago | 1

Answered
How do I remove specific markers in scatter plot?
You can use data brushing if you want to do it interactively: <</matlabcentral/answers/uploaded_files/19397/Capture.PNG>>...

11 years ago | 0

Answered
Fitting surface to 3D data from a CT stack
Try using |lsqcurvefit| in the Optimization Toolbox or NonLinearModel.fit in the Statistics Toolbox. These allow for an arbitra...

11 years ago | 0

Answered
show values as <mxn> instead of <mxn double>
Richt click on the workspace toolbar and it'll show you what's available. It sounds like you might want to select size instead ...

11 years ago | 0

Answered
How can I change the axes properties in GUI created by guide?
Calling plot will clear some of the axes settings. You could either use |hold on| to hold the axes properties or instead of cal...

11 years ago | 0

Answered
i want to save cell data as csv format ,but il shows there is a error,how can i save these cell array as csv format? thanks
The File Exchange is your friend :) <http://www.mathworks.com/matlabcentral/fileexchange/index?utf8=%E2%9C%93&term=cell+csv>

11 years ago | 0

Answered
How to use a module with .mexw64 using a 32 operating system
You'll need to install a <http://www.mathworks.com/support/sysreq/current_release/ supported compiler>.

11 years ago | 1

Answered
What is the limit of workers I can have using Parallel computing toolbox?
As of R2014a, you can open up to 512 workers on a single computer with Parallel Computing Toolbox installed. If you would lik...

11 years ago | 2

| accepted

Answered
"No help found" for built-in functions or user defined functions in R2014a
You need to reset the path: restoredefaultpath rehash toolboxcache This should take care of it.

11 years ago | 4

| accepted

Answered
New Version Matlab means Users Need New MCR?
When you compile code with the new release it will require a new version of the MCR to be downloaded. Old applications can cont...

11 years ago | 0

| accepted

Answered
Error 1,731 Can not progress after selecting license
Contact MathWorks' Installation support, it's free, and they know what type of license configuration you have that can cause lic...

11 years ago | 0

| accepted

Load more