回答済み
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...

10年弱 前 | 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...

10年弱 前 | 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...

10年弱 前 | 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...

10年弱 前 | 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); ...

10年弱 前 | 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 ...

10年弱 前 | 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...

10年弱 前 | 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...

10年弱 前 | 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 ...

10年弱 前 | 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...

10年弱 前 | 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 ...

10年弱 前 | 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...

10年弱 前 | 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...

10年弱 前 | 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...

10年以上 前 | 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...

10年以上 前 | 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 ...

10年以上 前 | 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,...

10年以上 前 | 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...

10年以上 前 | 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-...

10年以上 前 | 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...

10年以上 前 | 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...

10年以上 前 | 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...

11年弱 前 | 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: ...

約11年 前 | 0

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

約11年 前 | 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...

約11年 前 | 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...

約11年 前 | 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...

約11年 前 | 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...

約11年 前 | 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...

約11年 前 | 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...

約11年 前 | 2 件の回答 | 0

2

回答

さらに読み込む