送信済み


symlog
bi-symmetric logarithmic axes scaling (allows negative values)

4年以上 前 | ダウンロード 29 件 |

Thumbnail

送信済み


num2sepstr
num2str with thousands separators

4年以上 前 | ダウンロード 1 件 |

Thumbnail

回答済み
how to convert wind direction to degrees?
You could store the names and values in arrays and look up the angle corresponding to the matching name. directionValues = ...

4年以上 前 | 1

| 採用済み

回答済み
splitting dataset to groups with equal means
If your variables are sized similarly to your example, you can take the brute force approach and use |perms| to test every possi...

4年以上 前 | 0

回答済み
How do I create a vector array out of certain values of a matrix?
Using some example data, here is the code using logical indexing to grab all the values of the matrix whose column index is grea...

4年以上 前 | 0

回答済み
Scanning Matrix For Changes In Polarity
You could use |diff| and |sign| to create a logical array, then |cumsum| to convert that to a group index. % where x is you...

4年以上 前 | 0

| 採用済み

回答済み
How to use AND in an if loop to find the first repeated value
You can accomplish this with |intersect|. To illustrate, let's make an example file: mydata = randi(9,[100,6]); myfile =...

4年以上 前 | 0

回答済み
how to turn "points" in scatter diagram into "lines"
You could display the data as an image. I see that your x values are all integers in your text files. If this will always be tru...

4年以上 前 | 0

回答済み
Plotting two vectors for a period of time
% From your question: N = 100; x = [1.1 2.4 5.0 6.00 9.6]; y = [0.2 0.3 0.5 0.67 0.9]; % A little more setup ...

4年以上 前 | 1

| 採用済み

回答済み
How to Write Each Each Expression in a Separate Row
You can use three dots (ellipsis) to extend MATLAB code onto the next line. <http://www.mathworks.com/help/matlab/matlab_prog...

4年以上 前 | 0

回答済み
Matlab, can you create a separate font size for the x tick mark label and y tick mark label?
In R2016a (and probably anything R2014b or after), you can set different font sizes for each axis using ax = gca; ax.XAx...

4年以上 前 | 2

回答済み
Vectorization of matrix multiplication with scalar (Scalar is value of other matrix at index i) and expm() operation
I don't think this problem is well suited for vectorization since you are already doing matrix multiplication at each iteration ...

4年以上 前 | 1

| 採用済み

回答済み
Problem with plotting/updating the graph in the GUI.
Your callback appears to be wrapped in single quotes. When the callback is a string, MATLAB evaluates the string. Your string ev...

4年以上 前 | 0

| 採用済み

回答済み
Simulink: How do I change the value of a gain block with code?
From our conversation in the comments: * You have 50+ gain blocks scaling signals in your model. * You intend to generate C ...

4年以上 前 | 1

| 採用済み

回答済み
algebraic loop warning despite using algebraic constraint block
That warning is simply telling you that you have an algebraic loop. I imagine that algebraic loops are created more often by acc...

4年以上 前 | 0

回答済み
Buildig a model with .m file
The default type for |logsout| is a <http://www.mathworks.com/help/simulink/slref/simulink.simulationdata.dataset-class.html#zmw...

4年以上 前 | 0

回答済み
How can I set a color gradient on my bar plot?
The most direct way in my opinion is to call |bar| once for each bar in your plot, assigning individual colors that way. y ...

4年以上 前 | 0

| 採用済み

回答済み
How to generate stair function ?
If you have the DSP System Toolbox, you can use the included block |Mean| to calculate a running mean of your signal, then reset...

4年以上 前 | 0

回答済み
How to draw a circle with a red annulus and green center?
How about a simpler implementation without the loops: xpix = 1140; ypix = 912; rad = 150; % Use zeros to initi...

4年以上 前 | 0

| 採用済み

回答済み
Transform content of cell array to strings
If all the lines of your data take the format of your example line, you could use x = regexp(myCellArray,'([\d.]*)','match'...

4年以上 前 | 0

回答済み
How can i draw a previously specified dimensions lattice ?
Using x as your list of x coordinates and y as your list of y coordinates of the circle centers: R = 1; % or whatever y...

4年以上 前 | 0

解決済み


Summing digits
Given n, find the sum of the digits that make up 2^n. Example: Input n = 7 Output b = 11 since 2^7 = 128, and 1 + ...

4年以上 前

解決済み


Reverse the vector
Reverse the vector elements. Example: Input x = [1,2,3,4,5,6,7,8,9] Output y = [9,8,7,6,5,4,3,2,1]

4年以上 前

回答済み
how to display three one dimensional vectors as a 2 dimensional image
To create a mesh from your data, you could use |delaunay| and |trisurf|, which don't need the |x| and |y| values to be evenly sp...

4年以上 前 | 0

回答済み
How to calculate average time over a given period?
You could # convert your times to numeric values using |datenum| # trim your times to an even multiple of |step| # reshape ...

4年以上 前 | 0

回答済み
Merge matrices by matching first column values in MATLAB?
A= [4 5.3 5 7.3 8 2.5 9 4.7]; B= [1 3.6 0.4 2 3.9 0.6 3 9.2 0.9 4 5.1 0...

4年以上 前 | 1

| 採用済み

回答済み
How to use the data, but no polar function, to make polar plot?
I would use |polar| to plot the data; however it looks like R2016a has a preferred option -- |polarplot| ( <http://www.mathworks...

4年以上 前 | 0

| 採用済み

送信済み


manipulate
MATLAB interactive function caller

4年以上 前 | ダウンロード 3 件 |

Thumbnail

回答済み
How can I plot negative value with log scale?
Rather than use the transform you mentioned in your comment, t = sign(x)*log(abs(x)) you could use t = sign(x)*log(1+...

4年以上 前 | 2

| 採用済み

質問


Why is my simulation signal logging output is empty in parfor loop (but not in for loop)?
I am running a simulation in Rapid Accelerator mode with the intention of running it in a |parfor| loop. I am running MATLAB r20...

4年以上 前 | 2 件の回答 | 0

2

回答

Load more