Answered
Sequentially naming figures or objects
for ii = 1:3, figure('Name',sprintf('g%i',ii),'NumberTitle','off'); end ?

14 years ago | 0

Answered
remove all the spaces from a string.
Pre_CRC(isspace(Pre_CRC)) = []

14 years ago | 1

| accepted

Answered
Pass newly created object's function to a timer object
Here is a class that does what you want from the description above. The only difference is that I placed the call to writeProge...

14 years ago | 1

| accepted

Answered
how can send image with matlab ?
doc sendmail and specifically look at the _'attachments'_ options. This is of course assuming you have a smart phone. I k...

14 years ago | 0

| accepted

Answered
Index exceeds matrix dimensions for 5 dimensional matrix
dbstop if error Then run the code using the play button or from the command line. It will stop with the debugger on the of...

14 years ago | 0

Answered
Evalutionary Algorithm for Multiobjective optimization in area coverage problem
<http://www.mathworks.com/help/releases/R2012a/toolbox/gads/gamultiobj.html doc gamultiobj> (the website isn't happy right no...

14 years ago | 1

| accepted

Answered
Recommended steps to deal with a slow loop
* Listen to |mlint|. If it is warning you about a variable changing size within a loop, that will slow it down immensely * R...

14 years ago | 0

Answered
Cumulative sum by group
Using a |for|-loop here may be your best option. However, my unconditional love for |accumarray| forces me to present you with ...

14 years ago | 1

Answered
Matlab Project for Linear Algebra Course
Since you seem to be looking for the _ez_ way out: syms x y ezsurf(2*sin(x*y),[-2.5 2.5])

14 years ago | 1

Answered
Structure fields in Matlab
It sounds like you will want to use |fieldnames| to get a cell array of the fields. You could then use |ismember| with _'Signal...

14 years ago | 0

Answered
Creating a Button Group in Guide
Right click on the |uibuttongroup| panel and select "View Callbacks" -> "SelectionChangeFcn".

14 years ago | 0

Answered
Listening for a property to be linked to.
It's working for me: %The example from doc linkaxes load count.dat figure ax(1) = subplot(2,1,1); bar(ax(1),count(:,1),...

14 years ago | 1

| accepted

Answered
cell2mat simple manipulation question
How about: x={'000','101.5'}; x2=str2double(x) or: x3 = cellfun(@str2double,x)

14 years ago | 0

| accepted

Solved


Magic!
Check whether the input matrix is a normal magic square: <http://en.wikipedia.org/wiki/Magic_square> Output the logical va...

14 years ago

Answered
Programming Sliders Using Guide
'visible','on',...

14 years ago | 1

Answered
Check if filename is valid.
|regexp| it!

14 years ago | 3

| accepted

Answered
What is wrong with my timer function? (Too many input arguments?)
The |TimerFcn| is essentially a callback that receives the two default input argunments: _source, eventdata_. You are passing i...

14 years ago | 1

Answered
Why does button group not work?
First, the keyword is the American spelling of _'color'_ :) Second, you don't want to set the figure's color but rather the h...

14 years ago | 0

| accepted

Answered
How can I use gamultiobj for optimizing a function with parameters besides the gamultiobj parameters?
<http://www.mathworks.com/help/toolbox/optim/ug/brhkghv-7.html Passing Extra Inputs>

14 years ago | 0

| accepted

Answered
cell array converts to matrix, how?
B = [A{:}]; B = [B{:}];

14 years ago | 8

| accepted

Answered
Solving Symbolic Equations and maximizing a function
If you are trying to solve a linear programming problem, howw about using |linprog| and solving it in the numerical world?

14 years ago | 0

Answered
Trying to Program a Switch-Case Expression for a Pop-up Menu in a MATLAB GUI
Rather than using |switch| I would package this as a cell array of function handles and then extract the value: ops={@imdil...

14 years ago | 0

Answered
disp the symol of triangle in figure
plot(1,1,'r^')

14 years ago | 2

Answered
How to stop simulation in a GUI?
If you want the gui to close, just call its |CloseRequestFcn|.

14 years ago | 0

Answered
getting a max of a matrix without repetition of index
A=[0.33 0.57 0.004 0.11; 0.39 0.01 1.00 0.003; 0.06 0.10 0.05 0.09;]; sz1 = size(A,1); m = zeros(sz1,1); idx = m; A2 = A; ...

14 years ago | 0

| accepted

Answered
Substituting matrices into symbolic equations
So you basically want the inverse of |vectorize|? edit vectorize And do the reverse of this. I would recommend using th...

14 years ago | 0

Answered
Extract values from Histogram
y = x(x>-0.1 & x<0.1);

14 years ago | 0

| accepted

Answered
why would a complex number appear when taking the natural log of real elements in a vector column?
log(-2) The natural log of anything negative will create a complex number even if it is real.

14 years ago | 2

| accepted

Answered
Optimization: Which algorithms I should choose when it's difficult to define an objective function?
If the function will be discontinuous and have local minima you want to avoid then a genetic algorithm or pattern search is prob...

14 years ago | 0

| accepted

Answered
Boolean Indicator for GUI
How about a checkbox? *More* This would probably be a fairly simple class to write: an |axes| on a |uipanel| with the posi...

14 years ago | 0

Load more