Question


Implementing an hgsetget subclass
I would like to create a subclass of <http://www.mathworks.com/help/techdoc/ref/hgsetget.html hgsetget> that would show this kin...

15 years ago | 4 answers | 1

4

answers

Answered
Notimplemented GE function
If Walter is right and it's a cell array, you could do this: ipos = [A{:}]>0; if any(ipos) Asum = sum(A{ipos}); else...

15 years ago | 0

Answered
uitable: Can the headers be made clickable?
A reasonable substitute for clicking on the column headers would be to create a context menu using UIContextMenu. But clicking o...

15 years ago | 0

Question


uitable: Can the headers be made clickable?
I would like to sort the entries in a table by by clicking on the column header for the variable I want to sort. Is there a way ...

15 years ago | 2 answers | 0

2

answers

Answered
Basic Function Error (Plot Related
You've got the dot and the star in the wrong order, and you don't need the dot anyway for multiplying by a scalar. Try this: ...

15 years ago | 0

Answered
Iterating to find value S
Jason, here is a sketch of what you need to do. First, you need to create a function y = f(S,Q,W,etc.) in a separate file ...

15 years ago | 0

Answered
Inversion of ill Contioned Matrices
If you have the <http://www.mathworks.com/products/symbolic/ Symbolic Toolbox>, you could try variable precision arithmetic: ...

15 years ago | 0

Answered
image processing
Try reading <http://blogs.mathworks.com/steve/2006/06/02/cell-segmentation/ this article on cell segmentation>.

15 years ago | 0

Answered
Load a Text File in a GUI
Try <http://www.mathworks.com/help/techdoc/ref/xlsread.html xlsread>. *EDIT:* Simply A = importdata(filename) might do the ...

15 years ago | 0

Answered
Some Foreign Matlab forums
LinkedIn has a "MATLAB Users and Integrators" group, but it's not very active. As with other LinkedIn sites, it has more to do w...

15 years ago | 2

Answered
Evaluating a double integral using the trapezoidal rule
How about this: N = 101; x = linspace(0,2,N)*pi; y = linspace(1,10,N); dx = diff(x(1:2)); dy = diff(y(1:2)); [x,y] = ...

15 years ago | 0

| accepted

Answered
Dumb mistakes we make with MATLAB.
Trying to edit a command already visible in the Command Window: >> x=3 x = 3 Now put the cursor up beside x...

15 years ago | 17

Answered
Questions about median, medfilt1, medfilt2
Question 1: I get [3 3 5 0 0]. Maybe you have another medfilt1 on your path. What do you get if you type which medfilt1 -al...

15 years ago | 0

Answered
How do i execute expanding bracket problems?
If you have the <http://www.mathworks.com/help/toolbox/symbolic/ Symbolic Toolbox>, you can do this: syms a b expand((a+...

15 years ago | 1

Answered
please help me in loading data to matlab
You can use <http://www.mathworks.com/help/techdoc/ref/textscan.html textscan> to read in the data as a comma-delimited set of s...

15 years ago | 2

Answered
Dumb mistakes we make with MATLAB.
The case of the misplaced transpose: v1'*v2 instead of v1*v2'

15 years ago | 1

Answered
Dumb mistakes we make with MATLAB.
While in the debugger, typing *quit* instead of *dbquit* kills Matlab! (My earlier version of this answer may have been too cry...

15 years ago | 0

Answered
Dumb mistakes we make with MATLAB.
Rejoice - now you can do it object-oriented style! >> ME = MException ??? Error using ==> MException Not enough input arg...

15 years ago | 0

Answered
how to control program output in the way warning() does
You could use <http://www.mathworks.com/help/techdoc/ref/disp.html disp>.

15 years ago | 0

Answered
A question on minimizing a composition function with multiple variables how to min g(f(x), k(x),w(x))?
It's just the use of round parentheses to gather the variables. Is this what you're trying to do? f = @(x) x; k = @(x) x...

15 years ago | 0

Answered
Radial basis function and gradiant descent
You could try <http://www.mathworks.com/matlabcentral/fileexchange/22173-radial-basis-function-network Radial basis function net...

15 years ago | 0

Answered
eval inside arrayfun gives strange error
If you put the function function y = f(x) y = eval(sprintf('vec_%d',x)); in a separate file and run the debugger, you'll ...

15 years ago | 0

| accepted

Answered
Convert .txt to .spc
If you have the <http://www.mathworks.com/products/statistics/ Statistics Toolbox>, you could try <http://www.mathworks.com/matl...

15 years ago | 0

Answered
What is missing from MATLAB?
The *ungroup* action for a compound graphics object like *lineseries*.

15 years ago | 1

Answered
[DISCONTINUED] Wish-list for MATLAB Answer sections.
There should be a way of uploading a data file so that people can retrieve it but it doesn't take up a lot of space on the displ...

15 years ago | 3

Answered
directional filter for detecting edges on a circle and rectangle
Do you have the Image Processing Toolbox? If so, you could detect edges using the <http://www.mathworks.com/help/toolbox/images/...

15 years ago | 1

Answered
STEM3 plot with different colors
I think the short answer is - not easily. Let's take this example from the stem3 documentation: figure X = linspace(0,1,10...

15 years ago | 0

Answered
using relational operators with the symbolic math toolbox?
If you have assigned numeric values to your symbolic variables, you could do something like this: syms x y x = 1; y = 2; ...

15 years ago | 0

Answered
Trying to find the area of a complex-shaped hysteresis loop
Your data are not very smooth, so I would just use this: Area = polyarea(displacement,force)

15 years ago | 0

Answered
Numerical integration while keeping the parameters
Now that we know that you are integrating a function f(a,b,x) from zero to infinity, you can do something like this: f = @(...

15 years ago | 1

Load more