Community Profile Last seen: 3 días ago Active since 2019

#### Statistics

• • • • #### Content Feed

View by

Question

How to obtain and plot perpedicular lines using the gradient of a function
Hi all, I have a simple function (quadratic in this case) where I would like to plot the lines perpedicular to its tangent for...

5 días ago | 1 answer | 0

### 1

Question

Import data from text file with lines of unequal length as fast as possible.
Hi all, I wish to import data from a text file which has 6,000 lines. The data in the .txt file is structured in lines of uneq...

4 meses ago | 2 answers | 1

### 2

Question

Uigetfile returns zero without opening window
Hi all, I am using uigetfile in a GUI I designed in the AppDesigner. After a couple of times of running the GUI, running other...

4 meses ago | 0 answers | 0

### 0

Question

Make a 3D matrix block diagonal
Hi all, I have a 3-D matrix which I would like to make block-diagonal on its 2nd dimention. In my case I have: clear ; clc ...

6 meses ago | 0 answers | 0

### 0

Question

How to save the last four iterations in a for-loop
Hi all, I have a basic for-loop and I would like to know how I can only save (or retain) the last 4 iterations of the loop ins...

7 meses ago | 2 answers | 0

### 2

Question

Extract indices from other matrix corresponding to the minimum
I currently have a matrix in which I want to determine the column which corresponds to the minimum of each row, which I can do t...

8 meses ago | 1 answer | 0

### 1

Question

Why is sec(theta) different than sqrt(1+tan(theta).^2) in MATLAB?
Hi all, I just run into an odd problem; we all know the trigonometric identity . I use this identity in my code where I have a...

10 meses ago | 3 answers | 0

### 3

Question

How to extract vectors from strings
I have the following two strings from which I would like to extract the numbers in two respective vectors: A = 'REAL 1.001...

11 meses ago | 1 answer | 0

### 1

Question

How to solve a linear ill conditioned system of equations
Hi all, I have a typical linear problem to solve , where is a tridiagonal, illconditioned matrix. Using the solution of said sy...

11 meses ago | 1 answer | 1

### 1

Question

Using cellfun to extract numbers from strings in a cell array
Hi all, I currently have the following code which extracts numbers from strings found within a cell array. Cel = {'1-2-3-4-5...

11 meses ago | 1 answer | 0

### 1

Question

How to obtain the frequency response of a linear Multi-Degree of Freedom system
Hi all, I have the following Multi-Degree of Freedom (MDOF) system for which I would like to find its frequency response: w...

12 meses ago | 0 answers | 0

### 0

Question

How to create a vector of symbolic variables with specific labeling
I currently have a vector of unevenly spaced increasing values similar to this one: v = [1 2 3 5 7 9 10 12 18 29] What I would...

alrededor de 1 año ago | 3 answers | 0

### 3

Question

How to find all possible combinations between the numbers of two vectors where order does matter
I have the following two vectors a = [1 2 3 4] b = [2 4] and I would like to find all possible combination between the number...

alrededor de 1 año ago | 1 answer | 0

### 1

Question

How to split a cell array into individual rows
I have a cell array of the following format: C = 2×2 cell array {3×2 double} {3×18 sym} {5×2 double} {5×...

alrededor de 1 año ago | 1 answer | 0

### 1

Question

Save checked items from uitree in a cell array
Hi all, I have just started using the uitree for a basic app that I am designing. What I would like to do is save the NodeData...

alrededor de 1 año ago | 1 answer | 0

### 1

Question

How to trim a surface intersecting with another
Hi all, I have two surfaces Z1 and Z2 (a surface and an extruded line) that intersect with each other, in point format with two ...

más de 1 año ago | 1 answer | 0

### 1

Question

How to vectorise code involving matrix multiplications with vectors
Hi all, I have a large number of matrices and an equally large number of corresponding vectors. For the matrix and vector I ...

más de 1 año ago | 1 answer | 0

### 1

Question

How to find the indices within a matrix where its elements are identical along the third dimension
Hi all, I am scratching my head to determine a way where I can find the indices within a multi-dimensional matrix where its el...

más de 1 año ago | 1 answer | 0

### 1

Question

Integrate definite integral with system of differential equations
Hi all, I have a fairly complex system of differential equations, and a part of which depends on a criterion that uses defini...

más de 1 año ago | 1 answer | 0

### 1

Question

Alternative to blkdiag and mat2cell functions
Hi all, I currently have a code which takes some matrix A and stacks each row of the aforementioned matrix in to a block diago...

casi 2 años ago | 3 answers | 0

### 3

Question

Input a repeating jacobian pattern in ode23tb
Hi all, I have been using ode23tb to solve a large system of about 1,312 differential equations where . I do not know the Jaco...

casi 2 años ago | 0 answers | 0

### 0

Question

What is the interpolation function used to interpolate the ODE solution using deval?
Hi all, I am currently making a custom ODE solver, and one functionality which I find useful in default ode solvers, and I woul...

casi 2 años ago | 0 answers | 0

### 0

Question

Exponential Integrator in MATLAB?
Hi all, I wanted to ask if anyone happens to know of a package/code in MATLAB which solves equations utilising exponential int...

casi 2 años ago | 1 answer | 0

### 1

Question

ODE Events Function Using Persistent Variables
Hi all, I am solving an ODE with an events function, which requires that it gets stopped after a certain criterion is reached ...

casi 2 años ago | 2 answers | 1

### 2

Question

Calculating the exponential matrix.
Hi all, I have a matrix exponential , where: In specific, is an arbitrary constant, is the identity matrix, and , ...

casi 2 años ago | 0 answers | 0

### 0

Question

How to share on Matlab Online
Hi all, I have been working with MATLAB on my desktop for some time now. I have recently come accross MATLAB online which se...

casi 2 años ago | 1 answer | 0

### 1

Question

How to multiply 3D matrices without using for loop
Hi all, I would like to know if there is a way to multiply 3D matrices, preferably without using a for loop. The reason I do no...

casi 2 años ago | 1 answer | 0

### 1

Question

How to use blkdiag in 3D matrix
Hi all, I would like to know how I can use the blkdiag function for the case of a 3D matrix. In specific, what I mean is the f...

casi 2 años ago | 2 answers | 0

### 2

Question

Cannot calculate gradient of contour plot
Hi all, I am currently attempting to draw a quiver plot on top of a contour plot, such that I can see the gradient of the cont...

alrededor de 2 años ago | 1 answer | 0