Answered
Highlight a point in plot
Option 1: hollow markers If you use hollow markers such as 'o', 's', 'd', with MarkerFaceColor set to None and LineWidth set to...

7 years ago | 1

| accepted

Answered
what do lines that double back on themselves mean box plots
It's not a dumb question. The notches on the sides of a box plot can be interpreted as a comparison interval around the media...

7 years ago | 10

| accepted

Answered
Converting a table of mixed numeric-string content to an array
Change non-cells to cells and then convert. M.rep = num2cell(M.rep); M.corrAns = num2cell(M.corrAns); table2array(M)

7 years ago | 0

| accepted

Answered
uigetfile function error when one file selected!
If you select >1 file, the output of uigetfile() is stored in a cell array which your for-loop is designed to handle. If you se...

7 years ago | 1

| accepted

Answered
hi every one ,
Use histcounts() instead. It's designed for this purpose. A=[ 1 1 1 2 2 3 3 3 1 1 4 4 4 2 2 3 3 3 4 3 ]; counts = histcoun...

7 years ago | 1

Answered
Serach whether numbers of different arrays are close to each other
A = [20 51 870]; % Input vector w = 50; % Distances less than this are considered "close" dA = ...

7 years ago | 0

| accepted

Answered
What's the best way to shorten this?
This should get you started but it's not tested and there will likely be some kinks to work out. I'd be glad to help more if ne...

7 years ago | 1

| accepted

Answered
Reset value in cumsum matrix when reachin limit, and move the value to another matrix
First interpretation I believe the OP wants to integrate over B but not allow the cumulative sum to exceed a threshold of 5. So...

7 years ago | 0

| accepted

Answered
GUI graph with strings as axis
Here's a demo ax = axes(); %Instead of this line, use the axis handle from your GUI handles xTickVals = [2,4,6]; %<-- where ...

7 years ago | 0

| accepted

Answered
Display different graphs from a dropdown menu
This should do what you're describing. Let me know if you have any questions. % create figure and components fig = uifigure; ...

7 years ago | 2

| accepted

Answered
How to represent axis values are multiple of thousand
To apply exponential notation to the y axis, ax = gca ax.YAxis.Exponent = 2; Here is a Demo.

7 years ago | 1

Answered
How to add a description text on top of a plot without it being written all of my plot
Why not just reduce the height of your first axes a little? See the comments below (I also made some additional improvements). ...

7 years ago | 0

| accepted

Answered
Ignoring comments in lines when parsing
I think you'll have to clean up the text after you've imported it. Use regexp() to find the location of '#' in each element of...

7 years ago | 1

Answered
Add a number of variable values next to their corresponding vertical lines in a plot
Here's a demo you can adapt to your code. y = [1 25 8 15 5 6 10 5 3 1 20 7]; x = 2:2:24; plot(x,y) [pks, idx] = findpeaks(...

7 years ago | 1

Answered
Why do I get the error "Undefined function or variable" using cwtfilterbank ?
The function was released in r2018a (you mentioned you're using r2017b). https://www.mathworks.com/help/wavelet/ref/cwtfilterba...

7 years ago | 0

| accepted

Answered
Why am I getting the error "Invalid or Deleted Object"
Problem First you produce a plot and assign the handle to hp hp = plot(Mean_step, Model, 'r-', 'Linewidth', 1.5); Then you de...

7 years ago | 1

| accepted

Answered
Pulling a specific element out of a cell?
To convert an array of file names to datetime d = { ';Start_time, 2007-01-01, 00:48:23.729' ';Start_time, 2007-02-01, 00:48:2...

7 years ago | 0

| accepted

Answered
sort a 2x4 matrix
[~, sortIdx] = sort(V(1,:)); Iwant = V(:,sortIdx);

7 years ago | 0

| accepted

Answered
create y using x, without loop
No loop method (assuming consecutiveness) This solution assumes the indices defined in columns 1&2 are consecutive and without ...

7 years ago | 3

| accepted

Answered
How to remove the white blank in Axes when using the imagesc function in the Appdesigner?
Option 1: tight axes The easiest solution would be to set the axes to 'tight'. axis(app.UIAxes, 'tight') Option 2: set x/ylim...

7 years ago | 4

| accepted

Answered
Error ploting a graph with EdgeTable
Correct way to include labels Following this example, you must include the edge labels when you construct the graph object by i...

7 years ago | 1

| accepted

Answered
Unable to change label text via code
(Continuing from comments under question) That's not matlab syntax. Looks like cpp. If you have this opened in your matlab edi...

7 years ago | 0

| accepted

Answered
How can I split up hourly data into seasons?
The code below creates a vector of date-time starting at "t1", ending at "t2" at intervals of "interval" as you decribed as a po...

7 years ago | 2

Answered
How to input numeric array into Edit Filed using App Designer
To assign vector of numbers to an Edit Field There are two types of edit fields in app designer: numeric and text. Numeric edi...

7 years ago | 7

Answered
How to set missing fields in a structure array to default values stored in another structure array (with same field names)?
This solution lists the field names in each structure, determines which ones are missing in 's', and then uses dynamic field nam...

7 years ago | 0

| accepted

Answered
how to full fill the diagonal of a matrix by a vector
This approach uses circshift() to circularly shift the columns of matrix. m = zeros(5,5); v = [1,2,3]; % Loop through ea...

7 years ago | 2

| accepted

Answered
Loading a generated array into a visible table in AppDesigner
"How do I pass the results obtained from one function to the next function. for example, how do I get my imported data to plot w...

7 years ago | 1

| accepted

Answered
How to make upper (1) and lower (0) words of a text using 0's and 1's
Here's a demo that converts a single string into upper and lower case defined by a logical vector. The vector has one element f...

7 years ago | 1

| accepted

Answered
heatmap function doesn't work (Error in heatmap (line 138))
The problem was caused by a file named heatmap.m that overshadowed Matlab's built-in function of the same name. This was disco...

7 years ago | 0

| accepted

Load more