Réponse apportée
Refering to a imported filename in a plot legend
doc fileparts doc sprintf

plus de 9 ans il y a | 0

Réponse apportée
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...

plus de 9 ans il y a | 1

| A accepté

Réponse apportée
How to reconstruct part of a matrix from logical array?
a( label == 1 ) = someFunctionForFirstSegment( ); a( label == 2 ) = someFunctionForSecondSegment( ); a( label == 3 ) = s...

plus de 9 ans il y a | 0

Réponse apportée
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,...

plus de 9 ans il y a | 0

Réponse apportée
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...

plus de 9 ans il y a | 2

| A accepté

Réponse apportée
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...

plus de 9 ans il y a | 0

Réponse apportée
??? 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...

plus de 9 ans il y a | 0

Réponse apportée
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 ...

plus de 9 ans il y a | 0

| A accepté

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

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 9 ans il y a | 0

Réponse apportée
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...

plus de 9 ans il y a | 0

Réponse apportée
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...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
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. ...

plus de 9 ans il y a | 0

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

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 9 ans il y a | 0

Réponse apportée
Vecotrizing a for loop
dataRow = [ dataCell{:} ]

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 9 ans il y a | 0

Réponse apportée
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...

plus de 9 ans il y a | 1

| A accepté

Réponse apportée
how to write array in binary file
doc fwrite

plus de 9 ans il y a | 0

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

plus de 9 ans il y a | 0

Réponse apportée
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 )...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
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);...

plus de 9 ans il y a | 0

Réponse apportée
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...

plus de 9 ans il y a | 0

Réponse apportée
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 ...

plus de 9 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 9 ans il y a | 0

Réponse apportée
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...

plus de 9 ans il y a | 0

Réponse apportée
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'), '...

plus de 9 ans il y a | 0

Réponse apportée
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], : );

plus de 9 ans il y a | 0

| A accepté

Charger plus