photo

Anuradha Bhattacharya


Con actividad desde 2015

Followers: 0   Following: 0

Estadística

  • Thankful Level 3

Ver insignias

Feeds

Ver por

1

respuesta

Pregunta


Why am I getting the following error when I am using function for generating random number?
x = random('Poisson',1:100,1,10); Error using poissrnd (line 28) Size information is inconsistent. Error in prob...

alrededor de 8 años hace | 1 respuesta | 0

1

respuesta

Pregunta


I have to get the x values for peaks occuring in my plot? What will be the code for that?
The following is my code: a = load('ra1.dat'); x = a(:,1); y = a(:,2); y_mov_average = filter(ones(1,10)/10,1,y); ...

alrededor de 8 años hace | 1 respuesta | 0

1

respuesta

Pregunta


When I am running findpeak it is giving me the following error? Why is there this error? How to modify the code to fix it?
a = load('ra1.dat'); x = a(:,1); y = a(:,2); plot(x,y); findpeaks(y,x); The following error is being given: ...

alrededor de 8 años hace | 1 respuesta | 0

1

respuesta

Pregunta


My for loop is not executing. Atleast that's what I think becoz its not returning any value. What seems to be the problem?
a = load('ra1.dat'); x = a(:,1); y = a(:,2); hold on plot(x,y)'; for i=1:1950; a(((y(i+50)-y(i))/(x(i+50...

alrededor de 8 años hace | 1 respuesta | 0

1

respuesta

Pregunta


fopen is not being supported in my MATLAB version. What else can I use?
Whenever I use fopen it is giving some or the other error. Please tell me an aletrnative.

alrededor de 8 años hace | 1 respuesta | 0

1

respuesta

Pregunta


When I run the following code it only shows the last file in the directory in MATLAB workspace? How do I get all the files in my directory saved in the workspace?
ivsFiles = dir('*.ivs'); numfiles = length(ivsFiles); for k = 1:103; filename = ivsFiles(k).name; fileID = filenam...

alrededor de 8 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How do I open a sequence of files using textscan? The files are named ra1001 to ra1150. Thanks in adavance. Any help would be much appreciated.
Each file contains data in the following format and I want to skip the headerlines: UK SOFT software UK2002S 5.3.3 Fil...

alrededor de 8 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How do I load read only the two number columns skipping headerlines using dlmread?
This is the file: UK SOFT software UK2002S 5.3.3 FileVersion 7 op_mode SPECTROSCOPY Microscp_type ...

alrededor de 8 años hace | 1 respuesta | 0

1

respuesta

Pregunta


I am getting a bug in my code using fprintf, can someone tell me why?
This is my code: a = load('xaxisfig7line1'); x = a(:,2); y = a(:,1); dy = diff(y)./diff(x); b = [0]; dy = ve...

más de 8 años hace | 0 respuestas | 0

0

respuestas

Pregunta


Hi, I have a x vs y text data file. I want to find the maximum and minimum value of first derivative of the y w.r.t x and store the corresponding x and y values. Can anyone tell me the MATLAB code for that? Thanks in advance!
This is the code I have written: >> a = load('xaxisfig7line1'); >> y = a(:,2); >> x = a(1,:); >> dy = diff(y)./diff(x); ...

más de 8 años hace | 1 respuesta | 0

1

respuesta

Pregunta


I am running a code on autocorrelation in my MATLAB console but it is giving error. Can anyone point out the issue and how to fix it?
a = load('60lowfreehigh.lvm'); >> N = 50; >> y = a; >> z = a; >> for i=1: N-1 for i=N-1:-1:1 a(i+1)=a(i); ...

alrededor de 9 años hace | 0 respuestas | 0

0

respuestas

Pregunta


Can anyone provide a code for calculating autocorrelation without autocorr?
Can anyone provide a code for calculating autocorrelation without using autocorr as I do not have the econometrics toolbox?

alrededor de 9 años hace | 3 respuestas | 1

3

respuestas

Pregunta


How do I plot multiple plot using cftool in the same figure palette?
I want to fit multiple plots using cftool in the same figure palette; How do I do that?

más de 9 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How do I fit a gaussian to a given plot?
I have a histogram to which I want to fit a gaussian without using cftool. Typically how should I use cfit to fit the data?

más de 9 años hace | 1 respuesta | 0

1

respuesta

Pregunta


The following code for fitting a gaussian is returning the error "There should be atleast two data points". There are definitely more than two data points. Kindly help me resolve this issue.
K>> dbstop if error K>> a = load('calibrate100proc10.lvm'); K>> x = a(:,1); K>> y = a(:,2); K>> plot(x,y); K>> d = hist(y,1...

más de 9 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How do I fix the following code?
>> filename = load('proctrial_1.lvm'); >> timedata = filename(:,1); >> xvoltage = filename(:,2); >> plot(timedata,xvoltage)...

casi 10 años hace | 1 respuesta | 0

1

respuesta

Pregunta


In MATLAB how is it possible to select a certain data portion from a big file of data?
I have a time series data which I am loading. I want to know how to plot only a segment of the data. What are the commands in M...

casi 10 años hace | 1 respuesta | 0

1

respuesta

Pregunta


How is it possible to generate a text file of data points from a MATLAB figure file?
I have plotted a figure from a file in labview in matlab. Now I am brushing a selected region. How do I generate a data file o...

casi 10 años hace | 0 respuestas | 0

0

respuestas

Pregunta


Another query is what am I doing wrong in this program to calculate moving average?
load('proctrial_1.lvm); output = tsmovavg('proctrial_1.lvm','s',1000,2) plot(output); plot(output) x = ou...

casi 10 años hace | 2 respuestas | 0

2

respuestas