Question

Localize the third vector position using regexp

Hello everyone, I am analyzing some data files in a loop, which look like this: #---------------------------------------------...

11 months ago | 1 answer | 0

Question

Equally spaced figures in tiledlayout environment

Hello everyone I have generated the following image through the tiledlayout environment: which I have generated through the ...

11 months ago | 1 answer | 0

Question

Replication of a colorbar in MatLab

Hello everyone I am trying to impement this colorbar: My attempt has been the following: colorA=[192 148 92]./255; colorB=...

11 months ago | 1 answer | 0

Question

How to deal with files in which rows have different numbers of columns

Hello everyone I'm trying to deal with the loading and manipulation of a file (with a different extension than .txt and .data),...

11 months ago | 3 answers | 0

Question

Manually modifying title position in tiledlayout environment

Hello everyone I was wondering if it is possible to manually modify the overall title position in the tiledlayout environment. ...

11 months ago | 1 answer | 0

Question

Smooth 2D colormap based on non-evenly distributed data

Hello eveyone I am trying to find an optimal way to represent, in a smooth 2D colormap, the data that I am attaching in this po...

11 months ago | 2 answers | 0

Question

Applying a color for each pair of spherical angles through the hue and lightness parameters

Hello eveyone I have characterized which is the the polar and azimuthal angles of a vector representation in each point of a 2D...

1 year ago | 1 answer | 0

Question

How to avoid pop-up that overlaps all programs

Hello everyone I'm currently running some long calculations that involve the inpaint function (https://es.mathworks.com/matlabc...

1 year ago | 0 answers | 0

Question

Quality/compression problem using VideoWriter

Dear all I have a problem with the sharpness with which my videos are generated by VideoWriter compared to when I individuall...

1 year ago | 1 answer | 0

Question

Non-pixelized image using imagesc (or alternatives)

Hello everyone I have generated an image using imagesc, which looks like this The problem is that you can see the pixe...

1 year ago | 3 answers | 0

Question

About the use of imagesc

Dear all I am using imagesc to generate a figure using MatLab. I have something like this: space_x=linspace(0,40,115); s...

1 year ago | 1 answer | 0

Question

Exact replication of a colorbar

Dear all I have been asked to replicate the exact colorbar scheme that I put in the attached figure. How could I do this? ...

1 year ago | 3 answers | 0

Question

Replicate a colormap in MATLAB

Hello everyone I have been asked to replicate this type of color coding based on the value of angles in spherical coordinates...

1 year ago | 2 answers | 0

Question

Initial conditions in a fitting

Hello everyone I'm trying to figure out the impact of boundary conditions on a fitting. The file where my fitting is defined ...

1 year ago | 1 answer | 0

Question

Upload files with almost the same name in different components of a matrix

Dear all Let's imagine that I have multiple files in my current folder, which are as follows: spins-00000000.data, spins-0000...

2 years ago | 1 answer | 0

Question

Creation of a fitting function with if conditions involved

Hello everyone I am trying to create a fitting function in a separate script from where I'm handling the data (let's call the...

2 years ago | 1 answer | 0

Question

Put arrows on a continuous line plot to show direction of evolution

Hello everybody What I am trying to do is yo show, through, for example, the quiver function, the direction of evolution of my ...

3 years ago | 1 answer | 0

Question

Iteratively rename a .txt using writematrix

Hello everybody, I have created the following array: substrates={'MgO' 'SiO2' 'W' 'Al2O3' 'Sapphire'}; What I want to do is, ...

3 years ago | 1 answer | 0

Question

Impose a numerical limit on the value of a sum of two vectors

Hello everyone I want to sum two arrays, let's say a1 and a2. However, I seek that the sum, element by element, of these vect...

3 years ago | 3 answers | 0

Question

Solve a system of three coupled first-order differential equations

Hello eveyone, I'm trying to solve the system of coupled first-order differential equations that appears in the PDF that I atta...

4 years ago | 1 answer | 0

Question

Construct an array from the position of a certain value in a matrix

Hello everyone Let's assume we have a matrix, which I attach, matrix.dat, which has 220x200 elements (https://we.tl/t-KwSPQEs...

4 years ago | 0 answers | 0

Question

Obtain a random number from a truncated normal distribution

Hello everyone, I want to obtain a random number from a truncated normalized distribution. Let's say that we have the followi...

4 years ago | 3 answers | 0

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...

4 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