Submitted


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

ongeveer 8 jaar ago | 23 downloads |

Thumbnail

Submitted


num2sepstr
num2str with thousands separators

ongeveer 8 jaar ago | 3 downloads |

Thumbnail

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

ongeveer 8 jaar ago | 1

| accepted

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

ongeveer 8 jaar ago | 0

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

ongeveer 8 jaar ago | 0

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

ongeveer 8 jaar ago | 0

| accepted

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

ongeveer 8 jaar ago | 0

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

meer dan 8 jaar ago | 0

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

meer dan 8 jaar ago | 1

| accepted

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

meer dan 8 jaar ago | 0

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

meer dan 8 jaar ago | 3

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

meer dan 8 jaar ago | 1

| accepted

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

meer dan 8 jaar ago | 0

| accepted

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

meer dan 8 jaar ago | 1

| accepted

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

meer dan 8 jaar ago | 0

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

meer dan 8 jaar ago | 0

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

meer dan 8 jaar ago | 0

| accepted

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

meer dan 8 jaar ago | 0

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

meer dan 8 jaar ago | 0

| accepted

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

meer dan 8 jaar ago | 0

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

meer dan 8 jaar ago | 0

Solved


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

meer dan 8 jaar ago

Solved


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]

meer dan 8 jaar ago

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

meer dan 8 jaar ago | 0

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

meer dan 8 jaar ago | 0

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

meer dan 8 jaar ago | 1

| accepted

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

meer dan 8 jaar ago | 0

| accepted

Submitted


manipulate
MATLAB interactive function caller

meer dan 8 jaar ago | 1 download |

Thumbnail

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

meer dan 8 jaar ago | 7

| accepted

Question


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

meer dan 8 jaar ago | 2 answers | 0

2

answers

Load more