Community Profile

Contact

Top 5% contributor

I have the string "2DVIS_data_08_40fs", and I want to extract the numbers included between the last underscore '_' and the last ...

3 Answers

0

Asked 7 months ago

I need to plot two functions, y1 and y2, versus the same axis x. y1 values are very 'distant' from the ones of y2 (eg. y1=[2 4 7...

I need to use the matlab function 'fft' to perform a Fourier transform, but the problem is that it always gives me a double-side...

I have a matrix M with dimension 630x500. I want to do an average of its values along vertical direction, in order to have a mat...

Asked 8 months ago

I have a matrix with dimension MxN double. How can I write this matrix in a .dat file by using the function fprintf ? M and N ca...

2 Answers

Asked 1 month ago

Hello! I have a function which generates a matrix M containing elements. Some of them are infinite (- Inf for example). I need t...

Hi ! I need to create a multiple GUI with Matlab, i.e. a GUI made of more panels, where each panel, containing more commands (pu...

Hello! I created a GUI with Matlab, that gives me two numbers as output. These two numbers are visualized into two 'Edit text' c...

Hello! I'm working on a GUI in Matlab, and I have a simple question. I have two 'Push button' commands, let's say 'Button1' and ...

I have a vector , and I want to obtain another vector whose elements are obtained by averaging over the elements of the first on...

Asked 12 months ago

Hello,I would like to fit a curve with a line and retrieve slope and intercept of this linear fit. Let x and y be the vectors wh...

Asked 1 year ago

Given a curve (x vs y) I need to do a linear fit but only between two points x1 and x2 of that curve. Then, I need to calculate ...

I have an array of points that gives me an interferogram like this: <</matlabcentral/answers/uploaded_files/7539/fig3.png>>...

1 Answers

1

I have two vectors, x and y, of the same length (more or less <2600x1> double). For each element x, a corresponding element y is...

Hi everyone! I have a question about fitting a curve: I have two vectors x and y of same length and the curve y(x). I want to fi...

Asked 21 days ago

I have two sets of data (x,y1) and (x,y2).I need to calculate the convolution between y1 and y2 and plot it vs x. Is it correct ...

I have a string, and I want to add a character after the 4th element of this string, for example: str1='noteook'; I want...

I have two vectors, x and y, and I plot the function y=f(x) with the command plot(x,y). I need to know what is the value of x co...

Asked 2 months ago

Hi, I have a very simple question about saving images in Matlab. I need to save a plot as a .jpeg and I do this by executing thi...

Asked 3 months ago

I have to use for the first time a popup menu in a GUI interface. I know I can switch two or more options with it; for example, ...

I want to increase the thickness of a line in a plot with the command 'Linewidth' followed by a number, for example: plot(...

Hi guys, I have a simple question about how to save data. Let's suppose I have two vectors, x and y; I want to save them as a .t...

Hello, I have a simple question: I need to plot two vectors x and y as a function y=f(x), i.e. plot(x,y). I want the y numerical...

Asked 4 months ago

Hi everyone! I need to load some files from a folder, but I don't know how to save the directory. I'm using a GUI interface, and...

I have a GUI interface with an edit text box (tag edit1) and a slider (tag slider 1). At a certain point of the program, a numbe...

I need help with an operation in a Matlab GUI code. I have a folder in my laptop where some files (.dat) are saved , and they ar...

I have a question about an operations with a GUI in matlab: I use a push button to load a data file from a folder, and the name ...

In a GUI file, how can I use a slider to increase or decrease by one unit the number contained into an edit text box ? Thanks

Hello! I'm using this function to perform a simple Fourier Transform: function four=FourierDir(t,s,nu) % number of p...

Load more