Community Profile

# Allen

##### Last seen: 3 días ago
473 total contributions since 2017

View all

Contributions in
View by

Solved

Recaman Sequence - I
Recaman Sequence (A005132 - <http://oeis.org/A005132 - OEIS Link>) is defined as follow; seq(0) = 0; for n > 0, seq(n) ...

11 días ago

Solved

Breaking Out of the Matrix
Do you want to take the Red Pill, or the Blue Pill? If you take the Blue Pill, you will simply pass along to the next problem...

11 días ago

I have a data set (matrix), having three columns, How can I find if this dataset follows a specific pattern or any relation exists?
Take a look at how to use MATLAB's cross-correlation function, xcorr. Depending on what specifically you are trying to determine...

18 días ago | 0

Creating an XY Scatter plot with ActX
The below method works similar to calling invoke, but does not expressly call the invoke function. There are also a few addition...

18 días ago | 2

Remove unwanted data above the line
This can be accomplished using conditional indexing and reassigning values to the blue-line data. The following example assumes ...

21 días ago | 0

Findpeak from the graph in specific range
[pks, locs]= findpeaks((x2(90:120)),'Npeaks',1) In your above line of code, you are indexing x2 from elements 90 through 120 an...

22 días ago | 0

Dot indexing is not supported for variables of this type.
It appears that you are initializing a new variable M_ at the start of your code and by default it is just an empty double-class...

22 días ago | 0

Scanning a txt file
Mohamad, A solution to your question has been provided in an older thread. See the link below for more details. https://www.ma...

22 días ago | 0

Getting mean row vector from a cell array of row vectors of the same size
It is not entire clear to me what you are trying to average. However, if I am understanding correctly, the following example att...

22 días ago | 0

I want to save my figure in another path. Every time I used the command save figure it saved in Desktop how I can change it
If your filename does not indicate the filepath in front of the filename, then MATLAB used your default directory location to sa...

22 días ago | 0

| accepted

Passing input variables from .txt or .xlsx or .csv into MATLAB Standalone Application
Kevin, One approach would be to create a pushbutton object with a callback to browse and import data. The following callback ex...

22 días ago | 0

| accepted

Dynamically adding to an excel sheet
It looks like your issue using the append feature has to do with your data being a table. Try using writematrix with your data a...

22 días ago | 0

How do I convert this string to a date ?
Try running a string replacement to remove "T" and "Z" from your string before reformatting to datetime. str = "2021-05-11T14:1...

22 días ago | 0

Array idx bug when resizing it
Ciro, It has to do with the way that the length function works. It will find and return the largest dimension in a 2-D array. S...

22 días ago | 1

| accepted

App Designer Tab Duplicated with properties
MATLAB requires that you manually create a callback for each object in App Designer. I say manually, but this is simply done by ...

22 días ago | 0

Reading csv files ignoring header info and text in between
Iroquois, The line numbers that you are referencing do not quite match up with your descriptions, and is making your needs a bi...

22 días ago | 0

Question

Launch a custom App Designer application when opening a file.
I am looking for a way to program my data files, that I generate and save via a custom App Designer application, in such a way t...

23 días ago | 0 answers | 0

### 0

Question

Uitable editable cells not updating at first key value
I have a uitable setup that allows the user to enter values in one of its columns. However, the issue is that MATLAB appears to ...

3 meses ago | 1 answer | 0

### 1

Addition of 2 matrices with different dimensions
In this instance your are describing, MATLAB is assuming element-wise addition between the rows and columns. Where Where, x = ...

3 meses ago | 1

| accepted

How do I get a function in a for loop so it applies it to an entire table?
A relatively general approach to extract max values by year for each table variable (stations in this case) assuming the first v...

3 meses ago | 0

Solved

Is the Point in a Triangle?
Check whether a point or multiple points is/are in a triangle with three corners Points = [x, y]; Triangle = [x1, y1; x...

4 meses ago

Solved

Height of a right-angled triangle
Given numbers a, b and c, find the height of the right angled triangle with sides a and b and hypotenuse c, for the base c. If a...

4 meses ago

Solved

Find the sides of an isosceles triangle when given its area and height from its base to apex
Find the sides of an isosceles triangle when given its area and the height from its base to apex. For example, with A=12 and ...

4 meses ago

Solved

Can we make a triangle?
Given three positive number, check whether a triangle can be made with these sides length or not. remember that in a triangle su...

4 meses ago

Add vectors in loop
I am certain that there is a much better method using vectorized indexing, but without seeing an example of the values in TimeSe...

4 meses ago | 0

| accepted

How can I hide the App Designer Slider Control's built in label programmatically?
In App Designer the label handles are created in conjunction with, but separately from the main object. The handles for the labe...

4 meses ago | 0

| accepted

Create multiple files via for loop
You can use uigetfile to easily select mutliple files and make the filename acquisition process a little more simple. % Prompts...

4 meses ago | 0

How to make 2 gui sharing the same handles structure
If you are using GUIDE to build your applications, then my suggestion would be to create a separate "Parameters" GUI application...

4 meses ago | 1

| accepted