Answered
Anyone that can find what is wrong about the function?
"if I want to be able to run the function (by clicking "Run"), how do I need to change my function to be able to achive this?" ...

6 years ago | 0

| accepted

Answered
AnnotationPane errors on Guide
Are you referring to the problem described here? If so, TMW is aware of this bug but since GUIDE GUIs will be phased out, I'm n...

6 years ago | 1

| accepted

Answered
matlab 2019b - bug in data tips accuracy
The values reported in the datatips are accurate, judging from the png image. Precision seems to be the issue, not accuracy. N...

6 years ago | 4

| accepted

Answered
Traversing Text Document Matlab
Reading from word doc Here's the general approach to reading a Microsoft word document. directory = 'C:\Users\AOC\Documents\M...

6 years ago | 0

Answered
How to enable data tips?
The optional input to datacursormode() is a figure handle, not an axis handle. Data cursor mode has only recently been supporte...

6 years ago | 1

Answered
Plotting missing data in different colour
years=[1;2;3;4;5;6;7;8;9;10]; price1=[1;1;1;2;3;4;5;6;7;10]; price2=[2;2;2;3;4;5;6;7;8;11]; price3=[1.5;1.5;1.5;nan;2;nan;6;7...

6 years ago | 1

| accepted

Answered
reset the counter in for loop
You cannot alter the for-loop counter. It is possible to temporarily override the value of the loop variable but it will reset ...

6 years ago | 0

Answered
Marking x intercepts on graph
Method 1: solve equation for y=0 Use the Symbolic Math Toolbox to solve for y=0; see inline comments for details. % Solve for ...

6 years ago | 6

| accepted

Answered
save GUI fig by name from edit text
Place this code in a callback function designed to save the figure. See inline comments for details. newFig = figure(); ...

6 years ago | 0

| accepted

Answered
yyaxis not working in app designer.
The problem (r2019b) A warning is thrown when clicking on UIAxis objects that were plotted with yyaxis. To recreate the proble...

6 years ago | 1

| accepted

Answered
How to automatically shift a graph back
If you don't have access to xcorr() you can easily set up a loop the circularly shifts signal-2 one unit at a time and computes ...

6 years ago | 1

| accepted

Answered
How to convert arrays out of cells
Generating variables within a loop involves dynamic variable naming which should be avoided at all cost. Instead, since your ar...

6 years ago | 0

Answered
Error bar with CI 95 on bar graph
Here's an anonymous function that computes the 95% CI based on the tinv method which requires that your data approximately form ...

6 years ago | 0

Answered
Allow user to draw a line using mouse
If you have the image processing toolbox, use drawline(). Something will have to trigger the function such as a button press or...

6 years ago | 0

| accepted

Answered
Draw diagonals of rectangle
If you're looking for a function, check out interconnections() rectPos = [1 2 5 6]; %[left, bottom, width, height]; intercon...

6 years ago | 0

| accepted

Submitted


interconnections
Produce lines that interconnect all coordinates.

6 years ago | 1 download |

0.0 / 5
Thumbnail

Answered
Random display of 'even' or 'odd'
Here are the 5 steps you need to take. Since this is your assignment, this answer isn't complete. Each step shows what you nee...

6 years ago | 0

| accepted

Answered
Link axes with different Y-Scales
Currently (r2019b) the UI stack cannot be controlled with yyaxis axes which always results in right-axis objects at the top of t...

6 years ago | 0

| accepted

Answered
how do bins in histograms work?
What you're describing sounds like a bar chart rather than a histogram. 1000 bars is quite a lot of bars. data = logical(randi...

6 years ago | 0

| accepted

Answered
List of built-in data sets, please
I started a list of built-in mat files and a brief description of their variables (r2019b). Since numeric variables are fairly ...

6 years ago | 1

Answered
Merging table rows, keep all columns
% Read in the data files = {'RESULTS_SAMP1.CSV', 'RESULTS_SAMP2.CSV'}; %Full paths are always better T1 = readtable(files{1},...

6 years ago | 0

| accepted

Answered
How i can change the x-axis labels and ticks like that
If you're using Matlab r2019b or later, you can use tiledlayout() to create your subplots (see examples in that link). For earl...

6 years ago | 0

| accepted

Question


List of built-in data sets, please
It would be great if Matlab documentation included a list of built-in data sets. This question has been asked before (2012, 201...

6 years ago | 4 answers | 5

4

answers

Answered
How to calculate mean of values based on bins created from a corresponding vales?
Generally the edges should cover the span of your data, no more and no less with the exception that the final edge should be sli...

6 years ago | 2

| accepted

Answered
How to represent each grid numerically?
% Inputs xrng = [0,9]; % [left, right] bound of x axis yrng = [0,8]; % [lower, upper] bound of y axis gridInt = ...

6 years ago | 0

Answered
Sort matrix based on values in the first row from small to large
newM = sortrows(m.').'; That's pretty straightforward ;)

6 years ago | 0

| accepted

Answered
Regular expression for 1*1 cell array
c = {'<string_attribute name="country"><s>CHINA5</s></string_attribute>'}; out = regexp(c, '(?<=name="country"><s>)(.*)(?=</s>...

6 years ago | 1

| accepted

Answered
My Matlab opens several files on startup R2018
My bet is that you have a startup.m file which is run upon matlab startup. Within that file are commands to do some stuff that ...

6 years ago | 0

| accepted

Answered
Pad a table without variable names
Update: use paddata starting in R2023b This can not be achieved using Tpad = paddata(T,10,'side','leading') Before R2023b C...

6 years ago | 0

| accepted

Answered
reduce density of a time series
" I imagined a code which compares two values (e.g. a_i - a_i+1) and if the result is below a certain threshold the second valu...

6 years ago | 1

Load more