已回答
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...

8 years 前 | 0

已回答
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...

8 years 前 | 0

| 已接受

已回答
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...

8 years 前 | 1

| 已接受

已回答
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...

8 years 前 | 0

| 已接受

已回答
!!!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); ...

8 years 前 | 0

| 已接受

已回答
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 ...

8 years 前 | 0

| 已接受

已回答
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...

8 years 前 | 1

| 已接受

已回答
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...

8 years 前 | 0

已回答
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 ...

8 years 前 | 0

已回答
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...

8 years 前 | 1

已回答
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 ...

8 years 前 | 3

| 已接受

已回答
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...

8 years 前 | 0

已回答
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...

8 years 前 | 0

提问


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

9 years 前 | 1 个回答 | 2

1

个回答

已回答
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...

9 years 前 | 0

提问


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

9 years 前 | 1 个回答 | 0

1

个回答

已回答
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,...

9 years 前 | 0

提问


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

9 years 前 | 0 个回答 | 0

0

个回答

提问


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

9 years 前 | 0 个回答 | 0

0

个回答

提问


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

9 years 前 | 0 个回答 | 0

0

个回答

提问


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

9 years 前 | 1 个回答 | 1

1

个回答

已回答
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...

9 years 前 | 0

已回答
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: ...

10 years 前 | 0

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

10 years 前 | 0

| 已接受

已回答
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...

10 years 前 | 0

| 已接受

已回答
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...

10 years 前 | 0

提问


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

10 years 前 | 0 个回答 | 0

0

个回答

已回答
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...

10 years 前 | 0

已回答
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...

10 years 前 | 0

提问


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

10 years 前 | 2 个回答 | 0

2

个回答

加载更多