Question

Load sequential numbered files in MatLab on the same script in different subfolders

Hello everyone, Let's imagine I have my MatLab script at the following address: "C:\Users\890384\Desktop\MatLab". Inside thi...

3 years ago | 1 answer | 0

Question

Problems using the curve fitting app

Hello everyone, I'm a bit stuck on how the curve fitting toolbox works. I attach the data with which I am working, where "mx_...

4 years ago | 1 answer | 0

Question

How to change the plot title and file name when saving it to a for loop

Hello everyone I have the following arrays of relevance to the question: substrates=["MgO" "SiO2" "W"]; substrates_title=["...

4 years ago | 1 answer | 0

Question

Creation of a colorbar with quantized solid block-like colors and 180ยบ rotation of the colobar label

Hello everyone, I am dealing with the following type of figure u1=figure(i) imagesc(pulse_duration.*(10^(12)),amplitu...

4 years ago | 1 answer | 0

Question

Storing different values on a matrix depending on the last value of some arrays on concatenated for loops

Hello everyone, I am evaluating a problem that requires the resolution of a second order differential equation, which must b...

4 years ago | 0 answers | 1

Question

Solve a second-order differential equation with an array parameter that does not depend explicitly on the independent variable

Hello everyone, I am trying to solve a second-order differential equation, which includes a parameter whose value for each step ...

4 years ago | 1 answer | 0

Question

Resolution of a second-order differential equation for multiple variable parameters

Hello everyone, I am trying to solve a second-order differential equation, given by Eq. (1) in the document attached in this ...

4 years ago | 1 answer | 0

Question

Convert a 1x1 cell to a .dat file

Hello everyone I am trying to do, probably, a very simple task. Actually, I have in my workspace a variable called 'sol', whi...

4 years ago | 1 answer | 0

Question

Resolution of a second-order differential equation for different regions controlled by an external parameter

Hello everyone I am trying to perform a time integration to a second-order differential equation numerically. The objective i...

4 years ago | 1 answer | 0

Question

Curve fitting to a non-linear created equation

Hello everyone I have a doubt concerning a fitting that I am trying to obtain. Suppose my independent variable is called "spa...

4 years ago | 0 answers | 0

Question

Solve numerically a system of first-order differential equations

Hello everyone, I have the following set of coupled first-order differential equations: a*x'/z+y'=b; x'/z-a*y'=c*sin(2*y); ...

4 years ago | 1 answer | 1

Question

Smoothing of noisy data

Hello everyone, I want to smooth my data, which looks like It is possible to see a trend, more or less. Using smooth(data) ...

4 years ago | 1 answer | 0

Question

Frequency extraction of multiple monochromatic waves from a multidimensional array

Hello everyone, I describe what files I have attached in this question (see them here: https://wetransfer.com/downloads/b1b57...

4 years ago | 0 answers | 0

Question

Save an array with multiple rows and columns in .txt file

Hello everyone, my question is very simple. I have a big array (30001x2434 elements), and I want to save all the data in .txt...

4 years ago | 1 answer | 0

Question

Creation of a .dat files in a for loop

Hello everyone, I am trying to do the following. Let's imagine that you have the following arrays: mx_inelastic (30001x2434 e...

4 years ago | 1 answer | 0

Question

Phase diagram of a second-order differential equation

Hello everyone I have solved a second-order differential equation, and as a result of it I have obtained the values of an ang...

4 years ago | 1 answer | 0

Question

Damped harmonic oscillator fitting

Hello everyone, I am trying to fit my data to a damped harmonic oscillator with functional form: mx=A*cos(omega*time-phi)*exp...

4 years ago | 1 answer | 0

Question

How to save the value of some variables in a .dat file inside a nested loop in the function environment

Hello everyone, I am trying to create a .dat file on each for loop of a function enviroment file. The code looks like: for...

4 years ago | 1 answer | 0

Question

Concatenation of three-dimensional arrays

Hello everyone, I am trying to concatenate two three-dimensional arrays inside of a double for loop: for i=1:length(Tempe...

4 years ago | 0 answers | 0

Question

ode45 inside a nested loop

Hello everyone, My situation is the following. I want to solve a second-order differential equation, where the parameters inv...

4 years ago | 1 answer | 0

Question

Solve a second-order differential equation with constant parameters changing through an external parameter

Hello everyone, I know that this a very vague question, but I am quite lost in this aspect, so I am asking for some help to b...

4 years ago | 1 answer | 0

Question

Create a .avi through VideoWriter

Hello everyone, I am trying to replicate the approach given in this example: https://es.mathworks.com/matlabcentral/answers/7...

4 years ago | 1 answer | 0

Question

How to deal properly with a fitting to a non-linear curve nested in a for loop

Hello everyone, I am dealing with the following situation. I have the following arrays in my workspace: data_set_elastic (300...

4 years ago | 0 answers | 0

Question

Two-dimensional colormap

Hello everyone, I have the following arrays: spatial_grid(30001x1 elements), physical_time_elastic (2431x1 elements), and dat...

4 years ago | 1 answer | 0

Question

Redistribution of elements of various arrays into a single multidimensional one

Hello everyone, I am trying to figure it out how to associate each element of a one-dimensional array (let's call it array1), l...

4 years ago | 1 answer | 0

Question

How to deal with a large amount of data in MatLab and create individual data sets each 30000 elements

Hi everyone, I have a huge data set in .dat format, of about 5 GB. Of course, my computer takes a lot of time to deal with this...

4 years ago | 1 answer | 0