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

fast 10 Jahre vor | 0

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

fast 10 Jahre vor | 0

| akzeptiert

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

fast 10 Jahre vor | 1

| akzeptiert

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

fast 10 Jahre vor | 0

| akzeptiert

Beantwortet
!!!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); ...

fast 10 Jahre vor | 0

| akzeptiert

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

fast 10 Jahre vor | 0

| akzeptiert

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

fast 10 Jahre vor | 1

| akzeptiert

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

fast 10 Jahre vor | 0

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

fast 10 Jahre vor | 0

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

fast 10 Jahre vor | 1

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

fast 10 Jahre vor | 3

| akzeptiert

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

fast 10 Jahre vor | 0

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

fast 10 Jahre vor | 0

Frage


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

etwa 10 Jahre vor | 1 Antwort | 2

1

Antwort

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

mehr als 10 Jahre vor | 0

Frage


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

mehr als 10 Jahre vor | 1 Antwort | 0

1

Antwort

Beantwortet
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,...

mehr als 10 Jahre vor | 0

Frage


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

mehr als 10 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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

mehr als 10 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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

mehr als 10 Jahre vor | 0 Antworten | 0

0

Antworten

Frage


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

mehr als 10 Jahre vor | 1 Antwort | 1

1

Antwort

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

fast 11 Jahre vor | 0

Beantwortet
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: ...

etwa 11 Jahre vor | 0

Beantwortet
to find zero crossing rate for a signal
Sure... it's 0, because your signal is always negative.

etwa 11 Jahre vor | 0

| akzeptiert

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

etwa 11 Jahre vor | 0

| akzeptiert

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

etwa 11 Jahre vor | 0

Frage


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

etwa 11 Jahre vor | 0 Antworten | 0

0

Antworten

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

etwa 11 Jahre vor | 0

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

etwa 11 Jahre vor | 0

Frage


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

etwa 11 Jahre vor | 2 Antworten | 0

2

Antworten

Mehr laden