답변 있음
For-Loop for multiple plots or histograms
Put the data into a cell array and then loop through the cell array. figure tlo = tiledlayout (1,3); data = {SPNL, EXNL, NKN...

5년 초과 전 | 0

| 수락됨

답변 있음
Find minimum of single-variable function
Hint: [x,fval] = fminbnd(___) gives you the (x,y) values at the minimum. You could plug the x values into both of your optio...

5년 초과 전 | 0

답변 있음
error messeges in MATLAB app designer
There isn't a pretty solution and there is no solution that doesn't involve touching the code itself. I've often wished there w...

5년 초과 전 | 1

답변 있음
How to select different indices for each column in an array
Check out sub2ind.

5년 초과 전 | 0

답변 있음
Generating a range of curves that fit inside a set of fixed limits
1. A sophisticated way would be to fit the curve, perhaps to a sigmoid or logistic fcn, and then adjust the fit parameters to pr...

5년 초과 전 | 0

답변 있음
How can I change the line color in an 'animatedline' plot in a manner that scales with one of the variables?
There are other ways to create animation. You can segement the line and conrol the color of each segment (see "segmentation de...

5년 초과 전 | 0

| 수락됨

답변 있음
Issues with labelling bar graph along the x axis?
This shows how to convert a numeric vector to x tick labels. It includes an assertion that will throw an error if the number o...

5년 초과 전 | 0

| 수락됨

답변 있음
comparing categorical arrays in terms of content
ismember alone can answer the first point (common elements of A and B) but not the 2nd since it only tests whether elements of A...

5년 초과 전 | 1

| 수락됨

답변 있음
UIAxes plot vs Axes plot in App
> Are there any advantages in creating separate plots in UIFigure and UIAxes, versus figure and axes? My opinion: If your exis...

5년 초과 전 | 1

| 수락됨

답변 있음
How to normalize a discrete signal?
Audio data are typically already normalized between [-1,1]. Are you getting values outside of that range? min(y) max(y) Anyw...

5년 초과 전 | 0

| 수락됨

답변 있음
Subtracting XYZ coordinates defined by matrices
I think what you're asking is how to remove rows of A that are nearly equal to rows of B. Removal is different from subtraction...

5년 초과 전 | 0

| 수락됨

답변 있음
Writing the built in matlab function in simple code(like for loop, etc.)
You can use implicit expansion which is supported in Matlab r2016b and later (more info). y=[1 2 3 4]; OccurancesParameter= 5...

5년 초과 전 | 0

답변 있음
How can I find the max value and location within a matrix
[maxval, idx] = max(M);

5년 초과 전 | 1

답변 있음
Find ascii numbers from cells
Matlab stores characters as Unicode characters which incorporates the ASCII character set as the first 128 sumbols. Convert c...

5년 초과 전 | 1

| 수락됨

답변 있음
Plotting a smooth curve from points
You could add values to the beginning and end to make the curve continuing in both directions. The example below uses hard-coded...

5년 초과 전 | 2

답변 있음
How to formulate elegantly and performant functions that depend on a lot of input variables
A set of inputs like the example you shared is not inelegent. Some may argue that it's more elegant than the alternatives. Wha...

5년 초과 전 | 0

| 수락됨

답변 있음
how do correct the error in this line? print is nor recognised
"Print" is not a name-value option for that function. I think you're looking for, X1fit = estimate(modelX, Xest(:,1),'Display...

5년 초과 전 | 0

| 수락됨

답변 있음
Size issue in Matlab App Designer
If you want more flexibility over how your app automatically resizes, use Grid Layout Managers or the auto-reflow options in App...

5년 초과 전 | 0

답변 있음
How do I replace elements of an array with letters?
Sounds like you're describing this, number_cycles = 10; labels_I03 = categorical(repmat({'N'},1,number_cycles)); % set all as...

5년 초과 전 | 0

| 수락됨

답변 있음
Manipulate amplitude without using linspace
Since square returns values in the range of [-1,1], rescaling to [-2,1] is as easy as multiplying by 1.5 and subtracting 0.5 whi...

5년 초과 전 | 1

| 수락됨

답변 있음
setting axis ticks on heatmap
If you want to change the tick labels, h = heatmap(__); h.XDisplayLabels = % string array or cell array of character vectors ...

5년 초과 전 | 0

| 수락됨

제출됨


Draw randomly centered circles of various sizes
Set the range of radii, density, and other parameters to create a plot that draws randomly centered polygons with or without ove...

5년 초과 전 | 다운로드 수: 4 |

5.0 / 5
Thumbnail

답변 있음
generating random , non uniform fiber distribution of circle in square
Using bubblebath() from the file exchange (see another demo here), figure('Color','w') ax = axes(); axis off S.axisHandle...

5년 초과 전 | 0

| 수락됨

답변 있음
Remove duplicate rows in table
Follow the demo. T is a table T.Test contains the test names which can be strings, character vectors, categoricals, or numeric...

5년 초과 전 | 0

| 수락됨

답변 있음
Why is one of my tiled plots not being displayed? MATLAB UI App Designer
plot(ax4,theta(1:length(theta)-3),jerk,'c') % ^^^ you forgot this part

5년 초과 전 | 1

| 수락됨

답변 있음
How do I measure density of random point with a fixed area in MATLAB?
Use histogram2() or histcounts2() to compute 2D density. Demo: xy = randi(400,50,2); subplot(1,2,1) plot(xy(:,1), xy(:,2),...

5년 초과 전 | 1

| 수락됨

답변 있음
Creating matric of multiple arrays
Perhaps this (scroll down to see vectorized version)? x=0:12; k=5; a=k+x; b=k+2*x; c=k+4*x; d=k*x; Z = nan(2,2,numel(...

5년 초과 전 | 1

답변 있음
Butterworth filter design calls bilinear and fails
You likely had another file on your Matlab path with the same name as butter. If the error happens again, the following command...

5년 초과 전 | 1

| 수락됨

답변 있음
Generate a geographical heat map
I think this is what you're looking for. heatmap Note the change in inputs from matrix to vector of unique values. rng('def...

5년 초과 전 | 2

| 수락됨

답변 있음
creating one output and 2 inputs function in script file
> Write a function in a scirpt file that has two inputs: a scalar z and the matrix M, hence y =f(z,M) Hint: z is not scalar in ...

5년 초과 전 | 0

| 수락됨

더 보기