Réponse apportée
Problem with Imhist method
I'm not familiar with imhist, but from a quick look it appears to always use the data type limits for its histogram range so I g...

presque 12 ans il y a | 0

Réponse apportée
For loops and vectorisation?
Well, if you went straight to the vectorisation solution it is a bit silly to also require a for loop solution, but I guess if t...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
Zoom behavior in figure embedded in GUI
What is the value of the 'Clipping' property of both the axes and the objects in question? By default axes clipping should be...

presque 12 ans il y a | 0

Réponse apportée
GUI changing axes and using handles struct
Unless I am missing something obvious, the behaviour you get is because of what I said above in the comment. When you plot the ...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
flip certain columns in matrix
n = 2; colIdx = 2:n:size(A,2); A(:,colIdx) = flip( A(:,colIdx) ) assuming you want to flip even columns (in the cas...

presque 12 ans il y a | 1

| A accepté

Réponse apportée
Saving matrix after each for loop, note size of n(k) is not constant
I can't quite work out from glancing at your code exactly what n is, but can you not just calculate the n(k) ahead of the loop a...

presque 12 ans il y a | 0

Réponse apportée
How to solve error for Non-cell array object.?
Your matrix is of type double. { } is for accessing a cell of a cell array which yours isn't. if you want the whole datase...

presque 12 ans il y a | 0

Réponse apportée
How do I suppress the splash screen for compiled applications in 2014b?
If you are using Matlab Compiler (the App) there is a section at the bottom entitled 'Files installed for your end user'. One...

presque 12 ans il y a | 0

Réponse apportée
how can i rotate an N-dimensional matrix?
doc permute is the n-dimensional equivalent of translation although I'm not 100% sure what you mean by looking at it from t...

presque 12 ans il y a | 2

Réponse apportée
How to find elements equal to specific values?
[m, i] = min( abs( v - 0.95 ) ) m there is the distance of the nearest value in the vector from 0.95 and i is its index. ...

presque 12 ans il y a | 2

| A accepté

Réponse apportée
Summation and array indexes
c = bsxfun( @rdivide, A, B ); a = squeeze( sum( sum( c ) ) ); should give the answer you want. Obviously you could do i...

presque 12 ans il y a | 1

Réponse apportée
Help with array and standard deviation
.mat files or text or binary files? dirInfo = dir( folderName ); fileNames = { dirInfo( ~[dirInfo.isdir] ).name }; sh...

presque 12 ans il y a | 0

Réponse apportée
Increasing precision when parsing float values using textread()
The help page (R2014b) suggests you should use textscan now instead of textread, but I assume the following works for either whi...

presque 12 ans il y a | 0

Réponse apportée
Is there easier way to assign structure data
struct1 = struct( 'A', 1, 'B', 2, 'C', 3 );

presque 12 ans il y a | 0

| A accepté

Réponse apportée
Matrix loop multiplication warning
Try: Eout(n,:)=coupler*E; though I can't tell if that is the only problem with the code you posted. Which line is act...

presque 12 ans il y a | 1

| A accepté

Réponse apportée
I have trouble with cell arrays
res = C{:}; where C is your cell array would work in this case.

presque 12 ans il y a | 1

Réponse apportée
Opening .mat files no longer works in R2013b
If it is just a folder issue then you can probably achieve it by adding the folder containing it to your path which it may alrea...

presque 12 ans il y a | 1

Réponse apportée
Bubbels not connecting in plot command
Something more like this to replace your bottom section (i.e. starting from your for j = 1:100 loop) should give you joined up p...

presque 12 ans il y a | 0

Réponse apportée
Changing the Save as directory
The directory used for 'Save As' should be your current directory in Matlab so if you just navigate to C:\myFiles in the Current...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
Find string within cell array
I wanted to do this recently and was surprised none of the built-in string-based functions worked for this so I delved into rege...

presque 12 ans il y a | 1

Réponse apportée
I want to empty a variable q, i used q={} or q=[ ],but why it doesn't work , thank you
q = cell.empty; will give you an empty cell array if that is what you want. I don't know what you whole code looks like, b...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
Interpolation techniques available in matlab?
doc interp2 It has a 'spline' option which uses cubic interpolation

presque 12 ans il y a | 0

Réponse apportée
Why does this keep giving me the error "Not enough input arguments"
You seem to be using tan(x) rather than cos(x). Also you need to use .* rather than * i.e. y = cos(x) .* sin(x); I wo...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
How change the base of the log??
Defining your own using an equality such as log9(x) = log(x) / log(9) looks to be your best option.

presque 12 ans il y a | 5

| A accepté

Réponse apportée
What do the words ParseInput and Varagin mean ?
doc InputParser may also be of use depending what context you heard of parse input. I have never used InputParser myself t...

presque 12 ans il y a | 1

Réponse apportée
Inserting data of one matrix into another
a(a ~= 0) = b

presque 12 ans il y a | 3

| A accepté

Réponse apportée
convert data celll array to double array and write to .xls or .csv
You could just set the missing values to NaN and have a 18263 * 10 matrix of doubles (or whatever size your real problem is) wit...

presque 12 ans il y a | 0

Réponse apportée
GUI position issue: I can't make buttons of an upper panel visible.
Check your 'Position' settings for the buttons. I did a bit of quick testing and when I created a new control as: uicont...

presque 12 ans il y a | 0

Réponse apportée
GUI set parameters to .mat file (loading and saving parameters)
handles.nreal and handles.mreal are numeric, you need to wrap them in num2str to put into a string as e.g. ...

presque 12 ans il y a | 1

| A accepté

Réponse apportée
How to get MATLAB to stop being Busy and function correctly?
See if any of the options mentioned here are relevant to you: http://www.mathworks.co.uk/matlabcentral/answers/92566-why-does...

presque 12 ans il y a | 0

Charger plus