Answered
Strain measurement
If you explain your use case and your data (maybe with an image to help!) I think I can help you. Strain is notoriously hard to...

14 years ago | 0

Answered
How to create a vector with the same string elements?
repmat('hi',[1 5]); ?

14 years ago | 2

| accepted

Answered
datatransfer between 2 GUIs
The dataset class is a value class so unfortunately you can't just pass its handle around. For data xfer, see the FAQ: <ht...

14 years ago | 1

Answered
genetic algorithm
Formulate your segmentation goal as an objective (cost) function to be minimized. Come up with any contraints or bounds you may...

14 years ago | 0

Answered
memmpafile R2008b vs R2010b
<http://www.mathworks.com/support/bugreports/745694 Bug Report>

14 years ago | 0

| accepted

Answered
contourf change plot color
contourf(magic(5)) colormap([1 1 1]) %set the colormap to one level - white

14 years ago | 0

| accepted

Answered
How to Evaluate Value In Array in Cell Mode
Put a break point on that line and inspect the variables.

14 years ago | 0

Answered
lsqnonlin question
It is _x_, the output from |lsqnonlin|. It doesn't look like the above code ever uses the actual optimized value.

14 years ago | 0

Answered
FFT on dim > 1 returning negative values?
This is caused because you are taking the complex conjugate transpose ('). If you take the regular transpose (.') you will see ...

14 years ago | 0

| accepted

Answered
GUI control, fwrite, and file control
The error is occuring because you don't have a |uiwait/uiresume| in your GUI to pause execution. Thus the file opens, the gui o...

14 years ago | 0

| accepted

Answered
call mfile on clickl of puch button
The name of the *.m file. function pushbutton_callback(stuff); my_mfile_that_I_want2run;

14 years ago | 0

Answered
Execute a callback function from outside of the GUI
look at the help for the GUI. I.e, if your file is names MyGUI: help myGUI or look that commented text at the top of th...

14 years ago | 3

| accepted

Answered
Change face colors of tetrahedron mesh
what is: class(x1) class(x2) class(x3) class(c) One of those will not be 'double' or 'single'. Convert that on...

14 years ago | 0

| accepted

Answered
Nested For Loop Puzzle
Golf: reshape(['THISWATSOAHGGGDT'],4,4)' Okay with for-loops: for ii = 1 for jj = 1 m = reshape(['THIS...

14 years ago | 1

Answered
gray to hot
colormap(hot) ?

14 years ago | 0

| accepted

Answered
cell array into 3d matrix
Or the pure matrix manipulation approach: %Sample Data: X = reshape(magic(50),1,[]); C = cell(100,100); C(:) = {X}; %100...

14 years ago | 0

Answered
unit normal vector
doc norm will probably be your friend

14 years ago | 1

| accepted

Answered
How to execute a piece of code if a condition is verified for 'n' seconds
Sounds like you will inevitably want timers at some point: doc timer You might get lucky and be able to use |tic/toc| th...

14 years ago | 0

Answered
cell plot
So you want to see it as one image? or one plot? Please clarify: imagesc(cell2mat(your_cell)); *More per coments* ...

14 years ago | 0

Answered
Code housekeeping: cmmds 'which' and 'cd'
# I would guess |which| isn't showing them because they're not on the MATLAB path at that time. # Which syntax is working? ...

14 years ago | 0

Answered
Working with even rows
X = magic(4); max(X(2:2:end,:))

14 years ago | 1

| accepted

Answered
ListBoxTop property not updating displayed listbox line
Because it's an _edit_ uicontrol and not a _listbox_ uicontrol. Change line seven to: 'Style','listbox',... and watch t...

14 years ago | 0

Answered
The Collatz Problem, help writing a program for this?
docsearch collatz Might be a good place to start

14 years ago | 0

Answered
data cursor function for 3D slice
Use |datacursormode| and set a your own |updatefcn| to display the value. doc datacursormode Provide us with a small exa...

14 years ago | 1

| accepted

Answered
>> Matlab program to read stock price data and run live algorithm.
<http://www.mathworks.com/help/toolbox/datafeed/bq4htf5.html Datafeed Toolbox>

14 years ago | 0

Solved


Most nonzero elements in row
Given the matrix a, return the index r of the row with the most nonzero elements. Assume there will always be exactly one row th...

14 years ago

Answered
Looking for information on sinking mismatched time series
Fill those points with |Nan|. doc nan

14 years ago | 0

Solved


Count photos
Given n people, everyone must have pictures taken with everyone, each photo includes only two persons, please count the total nu...

14 years ago

Answered
axes plot
doc axis

14 years ago | 0

| accepted

Answered
Prime number or its nearest prime numbers
|isprime()| will be your friend.

14 years ago | 0

Load more