Answered
UITable Scrollbars not showing and scrolling semi-INOP
The last line of your code is resizing the UITable and pushing the vertical scroll bar out of the figure boundaries. When you...

6 years ago | 0

| accepted

Answered
Editor Tabs Moved to Bottom of Window
Click on an area of the tabs-bar to the right of the tabs and drag it to the top.

6 years ago | 1

| accepted

Answered
Appdesigner: Loading a MAT file - Difference between doing it from MATLAB vs from within Appdesigner.
1) I don't understand why there is a difference - when it is exactly the same command. The load command loads the data into the...

6 years ago | 0

Answered
Interp3. Error using griddedInterpolant. The grid vectors do not define a grid of points that match the given values.
Follow this tutorial and if you get stuck or come across a problem that isn't already addressed in the forum I'd be glad to dig ...

6 years ago | 0

Answered
how to create a .txt file from char vector using matlab?
T=['x=2;',newline,'y=3;',newline,'z=x*y;']; filename = 'myTextFile.txt'; % better to use fullfile(path,name) fid = fopen(...

6 years ago | 0

| accepted

Answered
Cross-correlation questions
Perhaps working through one of the examples in the xcorr documentation would be helpful. https://www.mathworks.com/help/matlab...

6 years ago | 1

| accepted

Answered
How do I add a for loop to do subplots
The general template to build subplots within a loop nrows = 2; % number of subplot rows ncols = 1; % number of subplot column...

6 years ago | 1

| accepted

Answered
how to add a label to a specific point on a fplot
This command will add a text label with a leftward arrow pointing to the coordinates text(0.5607, 0, '\leftarrow My Favorite Po...

6 years ago | 1

| accepted

Answered
Create Error bar and title into the bar chart
Here's a simple demo you can follow to add errorbars to your bar plot. https://www.mathworks.com/matlabcentral/answers/420926-...

6 years ago | 0

Answered
getting a NaN in correlation coefficient
When NaNs appear in the output but are not present in the inputs Notice that all of the values in y are identical y=[-0.414...

6 years ago | 6

| accepted

Question


Dealing with flags that are really comments
I've noticed an increase in the number of flagged answers/questions/comments in the forum from less active users treating flags ...

6 years ago | 1 answer | 0

1

answer

Answered
Average values from timeseries
Below is a general scetch of what you need to do. Give it a shot and if you get stuck, share the code and let us know where you...

6 years ago | 1

| accepted

Answered
Bar chart legend and colour
There are two approaches below. I recommend using the first one where the bars and labeled by the xtick labels. You can rotate...

6 years ago | 0

| accepted

Answered
How can I create a 3D plot of data with dots of different color?
Use scatter3() to create the 3D scatter plot and scale the colors based on a vector of mean values. % Create 100x3 matrix of [...

6 years ago | 1

| accepted

Answered
shows table in gui panel
"Error using matlab.ui.control.Table/set; Functionality not supported with figures created with the figure function." handles.T...

6 years ago | 1

| accepted

Answered
how to know if a char vector contains unwanted characters?
Following the description from your question, here's an anonymous function allCharsGood() with two inputs, c is a 1xn char arr...

6 years ago | 1

Answered
Scatter Plot with different "markers" and "data labels"
"I need a scatter plot with different markers" The scatter() function only allows one marker definition so the data are plotted...

6 years ago | 2

| accepted

Answered
How do i select a point on matlab UIaxes and then get data for it?
The brush tool is not (yet?) available on UIAxes as of r2019b; neither is rbbox. Update: the brush tool is now available as of r...

6 years ago | 2

| accepted

Answered
How can I automatically assign figure title in doubled for loop
Use sprintf() Example for lauf7 = [5 6 8 29 30] for lauf6 = 19:30 figure('name',sprintf('lauf7_%d_lauf6_%d',lauf...

6 years ago | 1

| accepted

Answered
legend has same colors
Use the function outputs to get the line object handles. Then, use the object handles in legend(). sem1 = semilogy([1:101],rR...

6 years ago | 1

| accepted

Answered
Find index of array of cell
If you want to delete the file names from the files array.... load('example.mat') select = strcmp(out, 'F'); files(select) = ...

6 years ago | 0

| accepted

Answered
Find Second Closest Datetime
This is a slight modification from the answer in your previous question. It uses [B,I] = mink(A,k) to locate the k_th small...

6 years ago | 0

| accepted

Answered
Finding nearest tables based on latitude and longitude columns
Inputs A is a 1xn or n1x cell array of tables; each table contains the headers 'lat' and 'lon' which are constants. B is a 1xm...

6 years ago | 1

| accepted

Answered
How to extract all the elements in a vector whose index is 1?
x = R(ranks == 2) Indexing is one of the most important tools in Matlab. This is a good resource to get you started. https:...

6 years ago | 0

Answered
how can i implement the Gaussian potential value code?
x is a vector of length n. I'm assuming sigma is std(x) phi = sum(exp(-(vecnorm(x(:)-x(:).',2,1) / std(x)).^2)); phi(i) is t...

6 years ago | 0

Answered
if statements, keep getting error can someone explain why?
if you open this file in the editor you'll see red markings indicating the lines that contains an error. The orange lines indic...

6 years ago | 0

Answered
Is it possible to set the position of a uialert within app designer?
"Is it possible to set the position of a uialert within app designer?" As of r2019b, no. Alternatives include using a msgb...

6 years ago | 0

Answered
How to scatter plot a cell array
Input: data, an 18x1 cell array where each element is a 1xn double precision vector varying in size. Output: a figure with x...

6 years ago | 0

| accepted

Answered
How to assign point to multiple circles
The first block of code below identifies which circle center is closest to each pts_positions using pdist2(). It then assigns t...

6 years ago | 0

| accepted

Answered
How do I relabel classes into one sub group?
load fisheriris idx = ~ismember(species, 'setosa'); species(idx) = {'abnormal'};

6 years ago | 1

| accepted

Load more