Question

Can't open nii image with MATLAb R2017a

I am using Matlab R2017a. I am trying to open nii image using thi sversion but i cannot open nii images with thiscommand load_n...

5 mois ago | 1 answer | 0

Question

Amplitude of square wave

I am using a sine wave a = A sin(2*pi*f*t) where A = 2. I made a square wave by adding the odd harmonics of sine wave. ...

plus d'un an ago | 1 answer | 0

Question

How to adjust the tick size of errorbar in a plot?

I have a linear fit figure where I want to control the tick size of the error bar. I want to reduce the length of the error bar....

presque 2 ans ago | 1 answer | 0

Question

gradient of the fit with uncertainty and R

I have a linear fit graph. I used polyfit to compute linear fit. <</matlabcentral/answers/uploaded_files/132393/untitled.png...

presque 2 ans ago | 1 answer | 0

Question

calculate slope from linear fit data

I have this code to linear fit data x = 1:10; y1 = [1 5 7 8 9 15 16 12 18 20]; scatter(x,y1,'b','*') P ...

environ 2 ans ago | 2 answers | 0

Question

fig. file conversion

Hi all, I have 50+ .fig files in a folder. I want to convert all figures in pdf. Is there any command to convert all figures ...

environ 2 ans ago | 1 answer | 0

Question

Fill up peak by colour

Hi, I have a figure with multiple peaks. <</matlabcentral/answers/uploaded_files/126911/untitled.png>> I want to fill ...

environ 2 ans ago | 1 answer | 0

Question

calculate FWHM and area of multiple peak

Hi, I have a graph that contains multiple peaks, I want to calculate the area of the peak and FWHM of each peak. I want to use t...

environ 2 ans ago | 1 answer | 0

Question

How to change the thickness of lines in imagesc plot?

<</matlabcentral/answers/uploaded_files/123873/untitled.png>> I plotted this figure using command imagesc(fd,f,log10(P...

environ 2 ans ago | 1 answer | 0

Question

axis control in Image plot

Hi, I am trying to understand image plot. When I run this example x = [1 5]; y = [1 5]; C = [0 2 4 6; 8 10 12 14; 1...

environ 2 ans ago | 1 answer | 0

Question

Search and Replace file

I have some 50+ conf files that I am working. I need to find and replace various variable for all these files. For example, I'd ...

environ 2 ans ago | 1 answer | 0

Question

What is the relation between sampling frequency and frequency in a Sine wave function?

I am trying to plot sine wave. I have this code Fs = 1000; t = linspace(0,1-1/Fs,Fs); f = 15; a = 4; ...

environ 2 ans ago | 1 answer | 0

Question

FFT of sine function

I am trying to plot power of sine function. When I do FFT of sine wave I got two peaks for a single sin function. I don't know u...

environ 2 ans ago | 1 answer | 0

Question

Power of sine wave plot

I have a power spectrum for my model. I would like to add sine wave as a drive with power spectrum. I don't know how to calculat...

environ 2 ans ago | 1 answer | 0

Question

Contour Plot in gray scale

I would like to plot this contour figure in grayscale. I would like to represent higher values in dark shades. Can anyone give m...

environ 2 ans ago | 1 answer | 0

Question

command for multicolumn Llegend

I have one figure which have many curves. I can't show my legend inside the figure so I have to show them outside. There are two...

plus de 2 ans ago | 1 answer | 0

Question

How to calculate area under peak?

I want to calculate the area under peak? Is Matlab have any default function to do it? Anyone can help? thanks.

environ 3 ans ago | 1 answer | 0

Question

double integral by a single variable by simpsons method

I want to calculate the double integral by a single variable by simpsons method. This is my code. I have a function f(x,y). I w...

presque 4 ans ago | 0 answers | 0

Question

I am trying to solve this integration by simpsons method and plot figure. It's give figure taking only the value of P0= -6 from for loop. How can I solve it?

alpha = 45; beta = 185; gamma_e = 116; % Gain values G_ei = -18.96; G_ee = 18.52; ...

presque 4 ans ago | 1 answer | 0

Question

I am trying to solve this numerical integration by simpsons method and plot figure. But it returns NAN value.I could not understand why it returns NAN value

alpha = 45; beta = 185; gamma_e = 116; G_ei = -4.11; G_ee = 2.07; G_sr = -3.30; G_rs...

environ 4 ans ago | 1 answer | 0