Answered
How do I continuously update data for two plots (plotted on the same axis using plot on)?
Can you not just keep hold of the output arguments of your two plot3 command so you have the handles to both the graphical objec...

9 years ago | 1

| accepted

Answered
How to reconstruct part of a matrix from logical array?
a( label == 1 ) = someFunctionForFirstSegment( ); a( label == 2 ) = someFunctionForSecondSegment( ); a( label == 3 ) = s...

9 years ago | 0

Answered
How to improve the speed of assembling matrices?
Without really knowing anything about FEM it is hard to suggest. I assume you are doing this instruction in a loop: K(dof,...

9 years ago | 0

Answered
Does conv() function use FFT inside ?
conv does not use fft, or at least not when I last checked, as I wrote my own convolution function to use the fft in place of it...

9 years ago | 2

| accepted

Answered
Using predefined multiple output matlab function in anonymous function definition: Not getting multiple outputs.
Have you tried calling as: [locationX, locationY]=arrayfun(@(x) ind2sub(sizeArr,x), listofX); ? Anonymous functions d...

9 years ago | 0

Answered
??? Undefined function or method 'ff_norm' for input arguments of type 'double'. Error in ==> plot_John at 8 imagesc([plist(1) plist(end)],[-180 180],squeeze(ff_norm(fcount,:,:))),
Check that ff_norm is on your path. It isn't a builtin Matlab function as far as I am aware so it must be one of yours and ther...

9 years ago | 0

Answered
Assign same panel to different tabs UITAB
Just reparent it in the 'SelectionChangedFcn' callback of the uitabgroup. It only needs to be parented by a tab if that tab is ...

9 years ago | 0

| accepted

Answered
imrect object - delete notification
Unfortunately imrect and its similar functions are rather arcaic and don't really conform to more modern Matlab graphics objects...

9 years ago | 0

| accepted

Answered
Determine continent given the country
If you have the list of continents then doc containers.Map should do the job. If you don't have the list of continent...

9 years ago | 0

Answered
Get columns from a matrix
mySubMatrix = myMatrix( :, 1:15:end ); etc. This smells of ending up with lots of ugly named variables, but they could b...

9 years ago | 0

Answered
hello i am working on GUI and i wrote a simple code that get the position of the pushbutton once it is pressed then send it thruogh the UserData property to the uipushtool which will display a resized picture on the pushbutton CData
Are the pushbutton's units pixels? If not then it won't work. If so then it is still an unsafe way to do things. You are rely...

9 years ago | 0

| accepted

Answered
How a generate random numbers within a probabilistic range?
You could just do a simple 2 layer approach if rand gives you an acceptable distribution within each of your ranges. e.g. ...

9 years ago | 0

Answered
adding new colormap to a saved set of colormaps
save( 'mycolormaps', 'myNewGray', '-append' ) This option is included in the help page: doc save

9 years ago | 0

| accepted

Answered
I am trying to make a GUI slider that will change the amount of black color that appears.
doc uicontrol using 'Style' 'slider' creates a slider. There are examples in the documentation that you can foll...

9 years ago | 0

Answered
Vecotrizing a for loop
dataRow = [ dataCell{:} ]

9 years ago | 0

| accepted

Answered
Undefined im2uint8
Whatever that code is is looking for a function called im2unit8, not im2uint8, which is a typo I also often make as my brain see...

9 years ago | 0

| accepted

Answered
How can I calculate the standard deviation of a LARGE set of values without using the' std' or 'mean' commands?
*std* divides by n-1 rather than n. You didn't post what kind of difference you are getting so I don't know if that is the only...

9 years ago | 0

Answered
In for loop, All the students are getting same grades?
You made the same mistake that people in the past have made asking this very same question. *Sum* is an array so in a loop yo...

9 years ago | 1

| accepted

Answered
how to write array in binary file
doc fwrite

9 years ago | 0

Answered
Handling the size of MATLAB GUI programmatically?
I use this: http://uk.mathworks.com/matlabcentral/fileexchange/38527-limit-figure-size

9 years ago | 0

Answered
Taking mean of values whose difference is smaller
a = [81,144,146,214,261,267,339,458,580]; d = diff( a ); idx = find( d < 40 ); a( idx ) = ( a( idx ) + a( idx + 1 )...

9 years ago | 0

| accepted

Answered
How can I keep figures invisible when going between different figures and different subplots?
hFigs(1) = figure(1); for sp=1:4 ax(sp)=subplot(2,2,sp, 'Parent', hFigs(1)); end hFigs(2) = figure(2);...

9 years ago | 0

Answered
M2014b+ graphics, changing legend orientation ex post
Well, that help for that particular overload does state: "Note: This syntax is not recommended. It creates a legend that do...

9 years ago | 0

Answered
I clicked fix on a MATLAB suggetion about the equal sign now the script is not showing the vectors.
I assume the thing you clicked 'Fix' on was an orange warning about having no ; at the end of a line. Without that your vector ...

9 years ago | 1

| accepted

Answered
How to give diferent colours to diferent values in a matrix?
scatter3(X,Y,Z,S,C) The final argument there is a colour vector, of equal length to the X and Y vectors. If you don't care...

9 years ago | 0

| accepted

Answered
How can I implement different structs in a cell
signal(i).( ['SIGNAL' num2str(i)] ) = dataset; 'dataset' is a type in Matlab though so not advisable as the name of a varia...

9 years ago | 0

Answered
replace find instruction for more fast precedure
myVec( myVec == x ); gives you a boolean indicator array of all those that match the expression, but it depends what you wa...

9 years ago | 0

Answered
How to enter an array in Matlab GUI front pannel....
Just enter the raw data in the edit box as e.g 5 -5 then use X = cell2mat( textscan( get(handles.edit8,'string'), '...

9 years ago | 0

Answered
i have a matrix of 5 rows and 3 columns and i want to select only 1st 3rd and 4th row with all column using an array how to do it?whats the script?
myArray = [1 2 3; 4 5 6; 7 8 9; 10 11 12; 13 14 15]; result = myArray( [1 3 4], : );

9 years ago | 0

| accepted

Answered
Imaginary part of a discrete time signal
Your signal is not sufficiently sampled. That is basically a Nyquist frequency curve so the real part is just peak-trough-peak-...

9 years ago | 0

| accepted

Load more