Answered
How to tell matlab to go to the next iteration of loop when loop started in different code file?
Just return a variable from calculation.m that determines whether to continue with the iteration or not and use that variable in...

11 years ago | 0

Answered
How do I assign specific numbers (and letters) to the tick marks of a figure?
You can edit: hAxes.XTickLabel hAxes.YTickLabel hAxes.YDir for an axes hAxes. The yDir property can be either 'no...

11 years ago | 0

Question


Labelling edges in an image
I am trying to do what should be a really basic image processing task, but don't seem to be able to find a particular neat solut...

11 years ago | 1 answer | 0

1

answer

Answered
I have a question about FFT
The sample frequency will be determined by how long your signal is in e.g. seconds. This then gives a hard link between frequen...

11 years ago | 0

Answered
How to keep lines on a changing plot ?
Do you always have an image on the axes? If so then you don't need to keep replacing the image (and by the way, be careful us...

11 years ago | 0

| accepted

Answered
How do I make an if-statement execute only if the value is an integer?
I have a utility function for this since it is something I have needed on a couple of occasions: function valIsInt = isInte...

11 years ago | 0

Answered
How to get first 3 maximum number in a matrix
temp = sort( m, 'descend' ); n = temp(1:3);

11 years ago | 1

| accepted

Answered
How to save the value, a string, of a variable as a variable name of an array ?
s_fieldnames = 'aaa'; a_nums = [1, 2, 3, 4, 5, 6]; temp.( s_fieldnames ) = a_nums; save( 'filename', '-struct...

11 years ago | 3

Question


R2014b GUIDE performance issues
Is anyone else finding that performance of GUIDE in R2014b is really bad? In particular with respect to copying, pasting and mu...

11 years ago | 2 answers | 2

2

answers

Answered
error : minus matrix dimention
It's very hard to work out when you don't give any information about the error, but in your attached .mat file 'pdof' has size 6...

11 years ago | 0

Answered
Hello, ı have a problem with Z factor, although ı have different Pr values which plays as a variable in finding Z factor,ı still have the same value for Z factor as 1.0001 each time .Can anyone help me ı will be grateful
You seem to just keep reassigning to ZFactor inside a for loop. If you want multiple answers you need someting like: ZFa...

11 years ago | 0

Answered
save size of Matlab environment variable
If you want to resize a variable and have it stay resized next time you run a program you would have to do the resize in code, o...

11 years ago | 0

| accepted

Answered
Assigning some matrices to 1 matrix
Are all your matrices the same size - i.e. 1-by-3? If so then f = [f1; f2; f3;...; fn]; will work to give you an n-by...

11 years ago | 0

| accepted

Answered
Link ranges in a contour plot comparison
hLink = linkprop( axesHandles, 'CLim' ); should work I think, if you create an array of the two axes handles in question. ...

11 years ago | 2

| accepted

Answered
error when call function
cos([1:floor(n/2)]*y will only be valid syntax for y being a vector in very specific circumstances - i.e. if they are the s...

11 years ago | 0

| accepted

Answered
Passing arguments to varargin
Picking up from your idea you should just be able to use varargin{:} inside your function after passing in options rathe...

11 years ago | 0

| accepted

Answered
I am getting error as " Too many input arguments" . i am trying develop a neural network based model .
This is just a basic case of reading what the error message tells you. Even in the unformatted form you posted it it is easy to...

11 years ago | 1

| accepted

Answered
Finding maximum values for one 2D matrix in a loop but then finding the minimum value of that remaining vector? Help please!
This looks identical to a question I have just been answering. Unless you really need to, don't keep track of maxima within t...

11 years ago | 0

Answered
Hello ! its urgent can u please help me with this error in the MATLAB Code
To expand a little on what I put in my comment despite my general dislike of responding to anything that claims to be "urgent"! ...

11 years ago | 0

Answered
Storing Maximum values from each row
At a glance... F_max(k) = F_new; looks to be what you need, but with simply F_new = F(i,:); inside your if sta...

11 years ago | 0

| accepted

Answered
Subscript indices must either be real positive integers or logicals.
I assume alpha is meant to be a function? Are you also naming a variable alpha within the same workspace? If so then that va...

11 years ago | 0

| accepted

Answered
Getting rows from dataset with particular value
I'm not too familiar with the 'dataset' structure if that is what you are using (incidentally Matlab R2014b notes this may be re...

11 years ago | 0

Answered
Indexing cannot yield multiple results error
Check that you do not also have a variable called 'coupler' which will stop Matlab from being able to see your function. If y...

11 years ago | 1

| accepted

Answered
Using the min and max function for form a new variable
If your data is (24,365) then you can just use the normal form: dailyMins = min( data ); dailyMaxes = max( data ); to...

11 years ago | 0

Answered
How do you import excel data and plot it
I've never used it, but there is a function called csvread which I assume will read a .csv file into Matlab. doc cs...

11 years ago | 0

Answered
tic toc inside a timeit
I've never tried outputting to screen in a function wrapped in a timeit call, but I suspect the reason is simply because timeit ...

11 years ago | 0

| accepted

Answered
Plotting different vectors (length) into one single plot grpah
x1300 and y1300 are different lengths. There is no problem plotting lines with different numbers of points on the same graph,...

11 years ago | 1

Answered
Keep Only Cells With a String Beginning with a Certain Letter
s = ['ABC'; 'ABC'; 'ABC'; 'DEF'; 'DEF'; 'DEF'; 'XYZ'; 'XYZ'; 'XYZ']; s = s( s(:,1) == 'D',: ); assuming you stated the f...

11 years ago | 0

Answered
unexpected xlim behavior - where is the documentation/code for how xlim gets updated
Try setting: hAxes.XLimMode = 'manual'; for an axes handle object hAxes. This should stop any automated changing of the...

11 years ago | 0

Answered
Iterative plotting with symbol change
You can change the marker type for a plot in a loop if that is what you mean, though there are only 14 pre-defined ones so far a...

11 years ago | 0

| accepted

Load more