Réponse apportée
How to disable minimize option in message box
If you are getting information, you might want to consider an iputdlg box. N = []; while isempty(N) N = str2d...

plus de 13 ans il y a | 0

Réponse apportée
Need a method to arrange data ?
I am sure there is a more efficient way to do this, but I cannot see it right off. I = find(a==1); b = []; for ...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Table in a modal window
It works fine here. Same specs as you have. Does this work? function [] = modal_gui % Help S.fh = figure('uni...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
How to delimit the number of decimal places in a colorbar?
Here is an example of how to do it. contourf(peaks(60)) colormap cool C = colorbar('location','southoutside'); % Get ...

plus de 13 ans il y a | 0

Réponse apportée
How to write a 'horizontal direct product' (*~) from Gauss in Matlab?
z = repmat(y,1,size(x,2)).*kron(x,ones(1,size(y,2)))

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
My problem is, the display of my plot were dots. how will i able to display it with a curve line. the main code shoud be inside of the for loop.
If I were making this plot, I would do as Jose has indicated. However, I want to show you a more proper way to get it done with...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
what is the uiwait?
uiwait(FIG_handle) blocks execution until either UIRESUME is called or the figure FIG is destroyed (closed). uiwait with no inp...

plus de 13 ans il y a | 2

| A accepté

Réponse apportée
lexical scoping and namespaces
From the documentation, " _As a rule, a variable used or defined within a nested function resides in the workspace of the out...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
Problem with array filling
The reason you get this error is because of floating point arithmetic. Look closely: isequal((0.1:0.1:1)*10,1:10) %...

plus de 13 ans il y a | 1

Réponse apportée
Saving particular datapoint from an array of numbers
In that loop you are making 101 files, each with exactly the same data in them. I doubt this is what you want to do! Are you...

plus de 13 ans il y a | 0

Réponse apportée
I have a rather large matrix. The data was sampled at 100 Hz. I want to the data to look like it was sampled at 5 Hz
Here is another example. You say the first column is time, so it is here. % Original data with columns: [time,signal] S...

plus de 13 ans il y a | 0

Réponse apportée
How to get the data from a popup menu and display the selected data in list box?
Here is a simple example. More basic GUI examples can be found <http://www.mathworks.com/matlabcentral/fileexchange/24861-41-co...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Filtering code- unknown filter
It is a forward moving average. That is, the value at index I is the average of the fL values I+1:I+fL. Like other moving aver...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
How can I withdraw a colon operator from a string
Here is another. str = 'WIND = NORTHEAST WINDS 8 : 13 KNOTS'; % Example string m = regexp(str,'\d+\s*:\s*\d+','ma...

plus de 13 ans il y a | 0

Réponse apportée
How can I fix graph title jittering in MATLAB movie.
Try this out. It stops the jittering on my machine. Still don't know about the .avi file, but the plotting is steady. I only ...

plus de 13 ans il y a | 0

Réponse apportée
How can I add a column vector to every column within a cell array?
T = {magic(3); ones(3); zeros(3)}; % Initial cell array. A = [1 2 3]; % The vector to add. Tnew = cellfun(@(x) bsxfun(...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
random number generation: MATLAB vs Fortran
Fortran 95 is listed having an implementation of the Mersenne algorithm available for use. <http://en.wikipedia.org/wiki/Mers...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
How can I multiply a vector (n*1) by each row of a matrix (m*v) to generate m (n*v) matrices?
If your matrix is 1000-by-72, you cannot multiply this by a 100-by-1. None of the dimensions match up. Each row of your matrix ...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Please can someone help me out with this code?
Where is this code located? If you have it in a script or at the command line, that would explain why you get that error.

plus de 13 ans il y a | 0

Réponse apportée
help for the Gaussian Quadrature Integration
For discrete data, I recommend you check out <http://www.mathworks.com/matlabcentral/fileexchange/24443-slm-shape-language-model...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
How to find a value in a list?
For large data sets, this is the fastest I could come up with: A = ceil(rand(19e4,3)*255); % Large data set on [1 255] ...

plus de 13 ans il y a | 0

Réponse apportée
Plotting multilines with multi colours
Here is an example. If you put a tic/toc around the loop and the call to PATCH you will see that the call to PATCH is several t...

plus de 13 ans il y a | 0

Réponse apportée
problem with repeating index values
If you have: idx = [1 1 2 2 2]; a = [0 0 0 0]; % Or any row vector, for generality. why not just do: a = a + hi...

plus de 13 ans il y a | 0

Réponse apportée
How many zeros do I have before a specific sting variable?
T = strfind(cellfun(@(x) ~x(1),A).',[1 0]) Notice that T will show you the index of every zero that is followed by a nonzer...

plus de 13 ans il y a | 0

Réponse apportée
adding vector entry after each element
x = [1,2,3,4,5,6]; y = cumsum(x) y = y(2:end) % To match your example....

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
dlmread of a cellarray already in workspace?
Will this work? F = {'1 3FF 123';'0 FFE 234524';'5 8BA 0458'}; G = cellfun(@(x) sscanf(x,'%d %x %d'),F,'Un',0);

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Help solving system of equations with initial value
You start out with: A = [1 -1 0;-1 2 -1;0 -1 1]; b = [-1 -1 2].' But you know x(1) = 2; x = [2;nan;nan]; So w...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
Can I force a radio button group to initialize with a certain button selected?
Have a look at the selectedobject property. h = uibuttongroup('Pos',[0 0 .2 1]); u0 = uicontrol(h,'Style','Radio','Strin...

plus de 13 ans il y a | 1

| A accepté

Réponse apportée
returning the indexes of an image displayed with a specific colormap
If I understand you correctly, you want (for example): A = rand(4); C = [0 0 0;.5 .5 .5;1 1 1]; imagesc(A); co...

plus de 13 ans il y a | 0

| A accepté

Réponse apportée
How do I replace data in a dataset?
Dat = [-1 2 3 4 5 6 -1 4.3 pi -1] Dat(Dat==-1) = nan

plus de 13 ans il y a | 0

| A accepté

Charger plus