photo

Anuradha Bhattacharya


Attivo dal 2015

Followers: 0   Following: 0

Statistica

  • Thankful Level 3

Visualizza badge

Feeds

Visto da

Domanda


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

circa 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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.

circa 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 8 anni fa | 0 risposte | 0

0

risposte

Domanda


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

oltre 8 anni fa | 1 risposta | 0

1

risposta

Domanda


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

circa 9 anni fa | 0 risposte | 0

0

risposte

Domanda


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?

circa 9 anni fa | 3 risposte | 1

3

risposte

Domanda


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?

oltre 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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?

oltre 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 9 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 10 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 10 anni fa | 1 risposta | 0

1

risposta

Domanda


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

quasi 10 anni fa | 0 risposte | 0

0

risposte

Domanda


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

quasi 10 anni fa | 2 risposte | 0

2

risposte