Answered
Error using speech2text
Update: checklist of requirements I am not a contributor to the speech2text FEX submission. Here is a list of requirements sum...

6 years ago | 0

Answered
How to make the legend fully shows in the plot
Reduce the vertical position of the legend. legend(. . .,'location',[0.32,0.97,0.37,0.05]); % [1] [2]...

6 years ago | 0

| accepted

Answered
How do I change the pointer property on a UI Figure?
As of r2019b the Pointer functionality is not supported for UIFigures. However, you'll notice that there is a Pointer property ...

6 years ago | 1

| accepted

Answered
How to zoom in/out on the figures in app designer
Zooming and panning was supported in MATLAB R2017a but you had to turn those interaction on. Starting in R2018b, those interat...

6 years ago | 0

| accepted

Answered
app designer how to make zoom out for my plot ?
Review of zoom methods in App Designer UIAxes This topic continues to come up in the forum. The solution varies between Matla...

6 years ago | 2

Answered
How to access app designer variables in the script file
Don't use assigning() or eval(). That opens a can of worms. Here are two alternatives. Each method includes a demo but you'll...

6 years ago | 0

Answered
How to write values from two different cell arrays to a text file in a specific format?
Hi Matthieu, in your example, { "audioData":[5972,20250,22901,31500,41650,51342,54028], "distractorData":[3379,42...

6 years ago | 0

Answered
From cell array to matrix
This produces a 100x10 matrix and can be applied to several fields of rsk.data. tstamp = [rsk.data.tstamp]; For fields that co...

6 years ago | 0

| accepted

Answered
Adding a column every nth column without replacing existing one
The variable n indicates every n-columns that should be 0s. It must be an integer greater than 1. See inline comments for de...

6 years ago | 1

| accepted

Answered
Filling area with pattern
Hi shane, filling with a pattern isn't trivial so I recommend the functions listed in the file exchange. However, here's a fai...

6 years ago | 0

| accepted

Answered
Stem plot with minimal spaces between lines
"The Only things that make me in trouble is now the legend problem, I have three data 1, data 2, data 3." Method 1: turn off Ic...

6 years ago | 0

| accepted

Answered
Avoiding many if-Statetments in a for-loop
I'm assuming the local functions provided are just demo functions. If those functions can be vectorized, it's very likely that ...

6 years ago | 1

| accepted

Answered
How can I find the parcentage of values in a vector that are bigger than 5.
" I want to calculate the number of values in that vector that are bigger than 5" p = sum(v>5)/numel(v); If there are NaN val...

6 years ago | 0

Answered
Correct way to detect Zero crossing
The entire function can be replaced with y = I<1e-8; which will return a logical (true | false). If you want a double (1 | ...

6 years ago | 0

Answered
Why does polyfit not exist in r2019b?
It does exist in r2019b. https://www.mathworks.com/help/matlab/ref/polyfit.html You have a variable with the same name so Matla...

6 years ago | 0

| accepted

Answered
Why do I get an NaN error with the ttest?
Rather than copying the answer to here, see this review of possible causes of NaN output in ttest().

6 years ago | 0

Answered
ttest NaN result is NaN and i am a beginner
Since this topic continues to surface within the forum, here's a summary of reasons why NaN values may appear in a ttest() outpu...

6 years ago | 3

| accepted

Answered
Matlab considers different two equal numbers!
You could limit the values in your matrix to the first 4 decimal places but this is usually not a good idea unles there's a reas...

6 years ago | 1

Answered
Why am I getting "Array indices must be positive integers or logical values"?
This line below implies that you're trying to index values from an array N where the index values must be positive integers or l...

6 years ago | 1

Answered
How to create 2D sub arrays by sampling every n by n points
The iter-loop is completely unnecessary and is merely doing the same exact work 1000 times. numIter=1000; tic % for iter=1:n...

6 years ago | 0

Answered
How can I put a display that shows changing variables in a plot?
Use h=text(. . .) to create the text object and then update the handle as needed. Here's a demo clf() axh = axes(); h =...

6 years ago | 0

Answered
Change bar colors based on date
The only place in your data where I see moon phase is in column F of your spreadsheet and only the first month is indicated. Th...

6 years ago | 0

| accepted

Answered
Figure colorbar is not refreshed
Control the limits of the colorbar using caxis(). This line adjusts the colorbar limits to the range of your data. caxis([min...

6 years ago | 1

| accepted

Answered
how expand plots with different x-axis ranges
Specify the edges for both histograms rather than letting that funciton choose the bins. histogram(X,edges) If the data fro...

6 years ago | 0

| accepted

Answered
Resize plot to fit text
Get the extent of the text objects after plotting the text. Add the vertical position and height to get the upper position of ...

6 years ago | 1

| accepted

Answered
Error using plot Vectors must be the same length.
The cross correlation function xcorr() will produce an output with 2*M-1 elements where M is the number of elements in the input...

6 years ago | 1

| accepted

Answered
Non linear least square fitting
Create noisy circular data This section creates the noisy data we're fitting. % Create randome points along a circle r = 22...

6 years ago | 4

| accepted

Answered
How to read file .txt?
Assuming your text file is named myTextFile.txt and contains only that matrix, A = readmatrix('myTextFile.txt'); % for Matlab ...

6 years ago | 0

| accepted

Answered
How do I shade the xy plane at z=0 of my plot and how to stop the plot after it passes z=0?
The easiest solution is simply zlim([0,inf]) I also added grid on so we can see the 3D coordinates better. However, the data b...

6 years ago | 0

| accepted

Answered
How to display result in Text Area in Matlab Appdesigner
It's unclear whether you're working with numeric or text values. App designer has edit fields that return text and edit fields ...

6 years ago | 1

| accepted

Load more