Community Profile

# L'O.G.

Aktiv seit 2022

#### Statistiken

Abzeichen anzeigen

#### Content Feed

Anzeigen nach

Frage

Numerical integral where the bounds change with each evaluation
I'm trying to take the following integral: I tried this symbolically, but I think that was throwing me off. I am attachin...

12 Tage vor | 1 Antwort | 0

### 1

Antwort

Frage

How to take an integral symbolically and then convert it to type double?
How do I take the following integral symbolically? And convert it to double? I have a 1000 x 1 numeric vector of type double for...

12 Tage vor | 1 Antwort | 0

### 1

Antwort

Frage

Inverse of a matrix
I want to solve the following for X2: A = B(X1+X2) where B is a matrix, and A, X1, and X2 are vectors. I can't divide by a matri...

13 Tage vor | 1 Antwort | 0

### 1

Antwort

Frage

Integration when some of the values change over time
I have a function of the form where is the position of the k-th object and is the corresponding force. The force has a functio...

17 Tage vor | 1 Antwort | 0

### 1

Antwort

Frage

How can I detect the object in this noisy image?
I'm trying to process images like the attached. In this case, there should be an object near the center of the image around test...

18 Tage vor | 2 Antworten | 0

### 2

Antworten

Frage

Cell arrays with a vector within a cell within a cell
I have a cell array where each element consists of a 1 x 1 cell containing a vector of type double, i.e., C{1,1} contains a vect...

21 Tage vor | 3 Antworten | 0

### 3

Antworten

Frage

How do you convert the cell within a cell to a vector?
I have a cell of cells. The inner cell is a 1 x 1 and contains a vector. The vector in each inner cell might be of different len...

21 Tage vor | 1 Antwort | 0

### 1

Antwort

Frage

How to output a cell array as a table where the arrays contain vectors of different length?
I have a cell array C that is 3 x 10, with each element containing a vector of numbers of type double. Each vector is of a diffe...

22 Tage vor | 2 Antworten | 0

### 2

Antworten

Frage

Working with cell arrays
I would like to separate columns in an array based on the unique values of the first column. I think the way to do this is a cel...

23 Tage vor | 1 Antwort | 0

### 1

Antwort

Frage

How do I read each frame of a video?

25 Tage vor | 2 Antworten | 0

### 2

Antworten

Frage

Finding first value in an array equal to each number in a vector
I can find the first value in test_array that is equal to 2 using the following: find(test_array==2, 1, 'first') But how d...

etwa ein Monat vor | 1 Antwort | 0

### 1

Antwort

Frage

What is the previous syntax for this function?
I can combine strings using something like str = append("Hello","world") But I have access only to Matlab 2018a. The append fu...

etwa ein Monat vor | 1 Antwort | 0

### 1

Antwort

Frage

How to remove repeating entries from a vector?
How do you remove repeating entries in a vector? For example: A = [1 1 1 0 0 1 1 1 1 0 0 0 0 0] should return B = [ 1 0 1 0]....

etwa ein Monat vor | 1 Antwort | 0

### 1

Antwort

Frage

Vectorization problem for grouping entries in an array
The data below are grouped into three different subgroups based on the value of B(:,3). If, however, B(:,2) <= 1, how do I indic...

etwa ein Monat vor | 1 Antwort | 0

### 1

Antwort

Frage

How do you reshape an array to preserve the order in each row of the original array?
How do you reshape an array into a 1-dim column such that the first row of the original array is the first set of numbers in the...

2 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

How do you set entries in a matrix for odd rows with odd columns to zero?
I want to set A(i,j) = 0 if both i and j are odd. Is this possible to do vectorially?

3 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

How do you make the diagonal and certain off-diagonal elements of a matrix zero?
I have a square matrix and would like to make the diagonal elements zero, as well as select elements that are off-diagonal. For ...

3 Monate vor | 2 Antworten | 0

### 2

Antworten

Frage

x values when taking a numerical derivative
I want to calculate the first derivative f(x) = dy/dx for data that is irregularly spaced in x. I think (correct me if I'm wrong...

4 Monate vor | 5 Antworten | 0

### 5

Antworten

Frage

Changing the position of a plot
How do you move everything in a figure (plot, axes, axis labels) up while preserving the aspect ratio of the plot? It seems I ca...

4 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

How can you shift the position of x axis labels?
I can generate a scatter plot with the x axis labels of type categorical or string. When I rotate them slightly, I would like th...

4 Monate vor | 1 Antwort | 1

### 1

Antwort

Frage

How do I remove the tick marks on a bar plot at the top and the right?
I can do this by box off but that also removes the lines. How can I keep the lines on the top and the right of the plot, but jus...

4 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

Centering labels in a bar plot
How do I center a string under each bar at in a bar plot? Something like the following is the best I can do, but it's a lot of t...

4 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

How to sample from a distribution?
How do you use randsample (or maybe something else?) to sample from a distribution? Can you define a non-standard distribution a...

4 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

Log-log plot with error band that has negative numbers
How do I make an error band? I am attaching some sample data. The fill function generates negative numbers, so that when I try e...

4 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

I have a plot with a lot of data points plotted using the loglog function. How do I add error bars as a light-shaded zone around...

4 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

How to add headers to an array and output to a text file?
I have an array of numbers of type double. Each row is of length 3xN where N is some fixed number. I want to reshape each row as...

4 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

How do you plot elements of a cell array?
Given a cell array where each element contains a vector of numbers of type double, I select a few elements to analyze. They are ...

4 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

Double integral over an anonymous function
I am trying to do the following double integral: where I attempt this by q = 0.01:0.01:50; % range is somew...

5 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

Doing a nested numerical integral in Matlab
How do I do the following nested integral in Matlab? The goal is to evaluate the following: where the function is defined as...

5 Monate vor | 1 Antwort | 0

### 1

Antwort

Frage

How do you do a sine transform in Matlab?
The sine transform is defined as How do you do a sine transform and its inverse? The functions dst and idst are not recomme...

5 Monate vor | 3 Antworten | 0

Antworten