Réponse apportée
summing the ith frequencies with the ith amplitudes^2 from a spectrogram of a Harmonic
It is not the vector that is being squared, but each component. A = [1 2 3 4]; A.^2 % Notice the '.' - it matters! % %...

environ 15 ans il y a | 0

Réponse apportée
fprintf
Something like this: fprintf('Mass\t\tTime\t\tError\n')

environ 15 ans il y a | 1

Réponse apportée
Bulk concatenation of cell array contents (without looping)?
There may be a way to do it with no loops, but I think this is fast anyway. Here is a full example. Just change the numbers ac...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
subdivide the axis into a grid without using subplot
Are you certain that your patch objects wouldn't just stack and obscure each other? In your example (assuming appropriate adjus...

environ 15 ans il y a | 0

Réponse apportée
Solving large linear systems, Ax = b
I recommend you read this whole post, and pay _particular attention_ to the comments by Tim Davis at the end. He co-wrote some ...

environ 15 ans il y a | 0

Réponse apportée
transparent plot
Not with a line object, but you can use an old graphics 'trick' to get it done: % Your data... x = 1:10; y = x.^2; ...

environ 15 ans il y a | 3

| A accepté

Réponse apportée
How to change the step value of a for loop during execution
You cannot change this once the loop starts. Instead use a WHILE loop and have the increment depend on an IF statement.

environ 15 ans il y a | 3

| A accepté

Réponse apportée
convert zeros to nan
Please do these three commands on your machine and paste the output, just like I did. Remember to use the {} Code button! >...

environ 15 ans il y a | 1

Réponse apportée
Generate a series
linspace(0,100,40)

environ 15 ans il y a | 1

| A accepté

Réponse apportée
Input/Output Function's, need content and display help
Here is how I would do it, if I was going to write to the file then display the file contents in two steps... fid = fopen(...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
how to make only one image as input for all buttons in gui?
Yes, it is possible. Once the user has selected an image, set the 'enable' property of the image selection button to 'inactive'...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
Using a for loop to fill up a matrix
Please go back and format your code using the '{} Code' button. *EDIT* Thank you for (partially) formatting your code! There...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
Changing grid lines to a solid line instead of dashed
Set the gridlinestyle property. set(gca,'gridlinestyle','-') As Matt Tearle has pointed out, you cannot change the grid line...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
How to define line colour in zplane plotting
To change the color of the lines easily with a mouse click, you could use <http://www.mathworks.com/matlabcentral/fileexchange/3...

environ 15 ans il y a | 0

Réponse apportée
Memory Issues: Almost like clear doesn't fully work
How are you clearing the files? Are you using FCLOSE and checking the return variable? *EDIT* I am not certain that clearing...

environ 15 ans il y a | 0

Réponse apportée
milliseconds
ms = s*1000

environ 15 ans il y a | 2

Réponse apportée
can't save image with transparent background
I don't know what you are doing wrong but I rarely ever rely on MATLAB to get these kinds of things right. I use this instead: ...

environ 15 ans il y a | 2

Réponse apportée
How to get rid of white box in figure exported from Matlab to eps format?
I recommend you abandon the built-in MATLAB export function and go for this award-winning FEX submission: <http://www.mathworks....

environ 15 ans il y a | 0

Réponse apportée
getting the axis position correctly
What changes is the tightinset property and plotboxaspectratio. figure,plot([0 1], [0 1]) axis equal AxesHandle=findobj(...

environ 15 ans il y a | 2

| A accepté

Réponse apportée
periodic functions
Yet another approach: x1 = .5; % x1 in image amp = 3; % amplitude n = 3; % number of periods. x = [reshape(bsxfun...

environ 15 ans il y a | 0

Réponse apportée
CONNECT TWO .FIG IN GUI
What do you mean by "link two .fig windows" exactly? Do you mean you want to pass data from one figure to another via a pushbut...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
Plotting Rotated Error Ellipses
Please go back and format your code using the {}Code button. *EDIT* Thanks for making your code readable! Change this line:...

environ 15 ans il y a | 1

| A accepté

Réponse apportée
lag with "figure" function
I have no idea why you are experiencing this huge delay. I put your exact code into an M-File and saved it. Then, pasting your...

environ 15 ans il y a | 2

| A accepté

Réponse apportée
How to implement a 'speed limit' for GUI button press?
Just set the 'enable' property to 'inactive' as the first command of the callback, then as the last command, set the 'enable' pr...

environ 15 ans il y a | 1

Réponse apportée
multiple matrix manipulation with different size matrices
It looks like you are basically doing a 2D convolution: C2 = conv2(B,A,'valid'); % Look at the corners...

environ 15 ans il y a | 1

| A accepté

Réponse apportée
Saving existing matrix
Why would P exist sometimes and not others? If it is created somewhere in the loop, presumably an IF statement or other such br...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
What's wrong with this code?
The code runs fine, what problem are you trying to solve? *EDIT* . . Try this. clear all %% Initialization of Parame...

environ 15 ans il y a | 0

| A accepté

Réponse apportée
Multiply large matrix by scalar - speed issue
help mex

environ 15 ans il y a | 0

Réponse apportée
Speed up a "logical matrix multiply"
For larger arrays, this should be faster. For even larger arrays, perhaps a transpose of A first would speed things up more. I...

environ 15 ans il y a | 1

Réponse apportée
align problem in multiple axes
When I run your code, with some made-up values for time, std, xcolor, leftcolor and t, I don't see any problem. How about you p...

environ 15 ans il y a | 0

Charger plus