Answered
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...

11 years ago | 0

Answered
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...

11 years ago | 0

| accepted

Answered
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...

11 years ago | 0

Answered
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 ...

11 years ago | 0

| accepted

Answered
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...

11 years ago | 1

| accepted

Answered
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...

11 years ago | 0

Answered
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...

11 years ago | 0

Answered
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...

11 years ago | 0

Answered
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...

11 years ago | 2

Answered
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. ...

11 years ago | 2

| accepted

Answered
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...

11 years ago | 1

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

11 years ago | 0

Answered
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...

11 years ago | 0

Answered
Is there easier way to assign structure data
struct1 = struct( 'A', 1, 'B', 2, 'C', 3 );

11 years ago | 0

| accepted

Answered
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...

11 years ago | 1

| accepted

Answered
I have trouble with cell arrays
res = C{:}; where C is your cell array would work in this case.

11 years ago | 1

Answered
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...

11 years ago | 1

Answered
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...

11 years ago | 0

Answered
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...

11 years ago | 0

| accepted

Answered
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...

11 years ago | 1

Answered
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...

11 years ago | 0

| accepted

Answered
Interpolation techniques available in matlab?
doc interp2 It has a 'spline' option which uses cubic interpolation

11 years ago | 0

Answered
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...

11 years ago | 0

| accepted

Answered
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.

11 years ago | 5

| accepted

Answered
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...

11 years ago | 1

Answered
Inserting data of one matrix into another
a(a ~= 0) = b

11 years ago | 3

| accepted

Answered
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...

11 years ago | 0

Answered
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...

11 years ago | 0

Answered
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. ...

11 years ago | 1

| accepted

Answered
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...

11 years ago | 0

Load more