Réponse apportée
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...

plus de 11 ans il y a | 0

Réponse apportée
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...

plus de 11 ans il y a | 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...

plus de 11 ans il y a | 1 réponse | 0

1

réponse

Réponse apportée
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...

plus de 11 ans il y a | 0

Réponse apportée
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...

plus de 11 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 0

Réponse apportée
How to get first 3 maximum number in a matrix
temp = sort( m, 'descend' ); n = temp(1:3);

plus de 11 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 11 ans il y a | 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...

plus de 11 ans il y a | 2 réponses | 2

2

réponses

Réponse apportée
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...

plus de 11 ans il y a | 0

Réponse apportée
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...

presque 12 ans il y a | 0

Réponse apportée
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...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
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. ...

presque 12 ans il y a | 2

| A accepté

Réponse apportée
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...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 12 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 12 ans il y a | 0

Réponse apportée
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"! ...

presque 12 ans il y a | 0

Réponse apportée
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...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
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...

presque 12 ans il y a | 0

Réponse apportée
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...

presque 12 ans il y a | 1

| A accepté

Réponse apportée
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...

presque 12 ans il y a | 0

Réponse apportée
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...

presque 12 ans il y a | 0

Réponse apportée
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 ...

presque 12 ans il y a | 0

| A accepté

Réponse apportée
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,...

presque 12 ans il y a | 1

Réponse apportée
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...

presque 12 ans il y a | 0

Réponse apportée
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...

presque 12 ans il y a | 0

Réponse apportée
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...

presque 12 ans il y a | 0

| A accepté

Charger plus