Réponse apportée
How do I set a limit for a line on a plot?
Matlab is going to plot whatever you pass it. So e.g. if you want your plot only to exist between -2 and 2, then you should pa...

presque 9 ans il y a | 0

Réponse apportée
How to get 2D view of an ellipsoid?
Hi You could use the "view" function for that, which allows you to set the viewing angle (azimuth and elevation). Note that t...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
Running Simulink simulation with input signals from matlab - I've got a working command but can't find it in documentation
Hi You cannot find it because it's deprecated (although should still work, even in the new versions of matlab). This is the h...

presque 9 ans il y a | 1

| A accepté

Réponse apportée
What's the difference between hleg = legend(...) and [hleg, a, b, c] = legend(...)?
Running set(0, 'DefaultLegendInterpreter', 'latex') before plotting fixes the legend textinterpreter for me. You could g...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
!!!Very challenge - copy one row to following two row
Well, once you have the data in matlab ( use xlsread ), let's say in matrix A, you could do: [N_rows, N_cols] = size(A); ...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
How can I make multiple max in elegant way?
you could do max(max([ x1 x2 x3 x4 x5 .... ])) Since the first max is evaluated along the columns, I think it should be ...

presque 9 ans il y a | 0

| A accepté

Réponse apportée
How do I alter a row of numbers based on when the number changes?
Maybe something like this? Not pretty, but not fully brute force either. Since you are looking at fairly big chunks (1000), this...

presque 9 ans il y a | 1

| A accepté

Réponse apportée
Can I eliminate loop from this function?
Do your genes have upper and lower case letters? Otherwise, use strcmpi for a minor speed-up. instead of strcmp. Small du...

presque 9 ans il y a | 0

Réponse apportée
Why I get error during analysis ?
It means that you defined "turns" as being an output argument in "PlotTrajectories", but you never assigned any value to it (it ...

presque 9 ans il y a | 0

Réponse apportée
Is it possible to find corresponding row from other matrix's row??
I am not sure I understood the full question, but in short, you want to delete rows in which there is an element < 2 ? You basic...

presque 9 ans il y a | 1

Réponse apportée
Convert logical variable into integer number
You can usually use logicals and numerical values interchangeably in matlab (for most operations), no need to convert them. But ...

presque 9 ans il y a | 3

| A accepté

Réponse apportée
plotting two curves/planes, one on top of another in Matlab?
hold on is still the way to go. Matlab will (should) always plot things where you define them. So, if you define sin(x) and cos...

presque 9 ans il y a | 0

Réponse apportée
Centroid plotting k-means
Hi It looks like you got a bit mixed up in your indices: clr = lines(k); creates a matrix with *k* colors, but you on...

presque 9 ans il y a | 0

Question


legend ignores leading whitespace, thus ignoring field width and messing up alignment
Hi! I am creating a legend where each entry has the same number of characters, padded if necessary by leading whitespace. Whe...

environ 9 ans il y a | 1 réponse | 2

1

réponse

Réponse apportée
I can´t get the matrix dimension right
That's a typical matlab error. In your case, you are asking for a matrix multiplication (*, /) where in fact you want an element...

plus de 9 ans il y a | 0

Question


stepplot: Add curve to subplot of step response
Hi I have a system with 1 input and 3 outputs for which I visualize the step response using *stepplot*, which returns a plot ...

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

1

réponse

Réponse apportée
hello everyone, i have a problem in labeling the matrix.
This is ugly, but should do the trick. Not sure why you want this though... function print_my_mat(A) nrows = size(A,...

plus de 9 ans il y a | 0

Question


rlocus pole assignment in plot does not match output matrix
As far as I understand, using [R, ~ ] = rlocus(sys); should return the positions of the poles for different Kp. R has on...

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

0

réponse

Question


Sampling Time issue for linearization of continuous time model
I am trying to follow these steps ( <http://www.mathworks.com/help/slcontrol/ug/specify-portion-of-model-to-linearize-in-linear-...

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

0

réponse

Question


Best practice for simulink variable sharing
This is less of a question and more of an opinion poll. It's about the best practice for sharing data needed in a simulink model...

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

0

réponse

Question


Mouse cannot interact with undocked windows in Linux for Matlab 2014b+
Hi Using Linux, when I have undocked windows (e.g. figures), my mouse cannot interact with them. Instead, my mouse pointer is...

plus de 9 ans il y a | 1 réponse | 1

1

réponse

Réponse apportée
Unnest a Matrix of strings
I'm afraid that this is a bit unavoidable. L = [M{:}]; would return you a 3x3 cell with the desired strings. If you con...

presque 10 ans il y a | 0

Réponse apportée
Attempting to alter the color used by the legend.
I'm assuming you want to change the color in the plot too, not just the legend? To define a color for a plot, simply use: ...

environ 10 ans il y a | 0

Réponse apportée
to find zero crossing rate for a signal
Sure... it's 0, because your signal is always negative.

environ 10 ans il y a | 0

| A accepté

Réponse apportée
Undefined function or method 'gaussian1D' for input arguments of type 'double'.
The function gaussian1D does not exist, therefore you cannot call it. If you are looking to get a sample from the 1D Gaussian di...

environ 10 ans il y a | 0

| A accepté

Réponse apportée
matrix Question and row operations with a condition
Your "M" is just the number of columns of your matrix, and does not containt any information about the values of the elements in...

environ 10 ans il y a | 0

Question


Mouse stops working in undocked editor since last patch
Hi Ever since the patch from <http://www.mathworks.com/support/bugreports/1184018?s_v1=4143&elq_cid=3345607 Bug Report ID 118...

environ 10 ans il y a | 1 réponse | 0

0

réponse

Réponse apportée
How to compare a matrix rows such as:
As an alternative, I came up with this code which seems to do the same thing. [ ~, ind_sort ] = sort(A(:,1)); B = A(in...

environ 10 ans il y a | 0

Réponse apportée
Selecting elements of logically pruned vector (concatenating indices)
@Star Strider: Sure thing, thanks. Just for clarity: b is an arbitrary vector. v_log is a logical vector, hence b(v_log) returns...

environ 10 ans il y a | 0

Question


Selecting elements of logically pruned vector (concatenating indices)
Hi Given a vector b and a logical vector v_log, is there a straightforward way to extract particular indices of the partial v...

environ 10 ans il y a | 2 réponses | 0

2

réponses

Charger plus