Question

markers not getting joined in plot

I came across strange problem in matlab, i did a simple line plot using following code in a loop. i want to draw the line joini...

28 days ago | 2 answers | 0

Question

running an external program by changing input text file for every iteration in windows.

Hello, i want to run an external program in matlab by changing the value of a certain parameter in the input text file. I want t...

1 month ago | 1 answer | 0

Question

model for fitting polynomial of degree 3

Hi, i want to use 'fitlm' for fitting polynomial of degree 3. Is there some builtin name for the model? For example, for degree...

1 month ago | 1 answer | 0

Question

confidence interval for least square fitting

Hi, i have a system of equations of the form Ax=b. with A and b known matrics, i calculates x using least square method. Now i w...

1 month ago | 1 answer | 0

Question

computing error on least square fitting

Hi, i slove a system of equations (Ax-b) using least square method. i get an output with x like [2.5; -11.1; 0.8; 0.5]. the stat...

1 month ago | 1 answer | 0

Answered

calculating error while averaging multiple images

many thanks for this analyzer, it gives me attached error. Also what is mask and what does clear mask does?

calculating error while averaging multiple images

many thanks for this analyzer, it gives me attached error. Also what is mask and what does clear mask does?

1 month ago | 0

Question

plotting error bars in both x and y data

Hi, i want to plot data set x vs y. Now i have different error valuses in x and y. I want to plot error in both planes. The comm...

1 month ago | 1 answer | 0

Question

calculating error while averaging multiple images

Hi, I have a simple problem and needs guidance. I have 15 image files. I want to calculate the average of these images and calcu...

2 months ago | 3 answers | 0

Question

Error while starting a gui

I created a matlab gui to load some text files and process the data it contains. The GUI works all fine, but whenever i load the...

2 months ago | 1 answer | 0

Question

reading text files in different folders and combining them

Hi i have multiple text files in different folderswith data in same format ( 2000 rows and 7 columns). i want to combine the dat...

6 months ago | 0 answers | 0

Question

getting a NaN in correlation coefficient

Hi, i have a simple problem which unfortunately i am unable to understand. I have matrices and i am trying to calculate correla...

7 months ago | 1 answer | 0

Question

Loading multiple images, taking mean of them and subtracting background

Hi, I am new to the field of image analysis. my problem is that i want to load multiple images (lets say 20), take the mean of ...

8 months ago | 1 answer | 0

Question

Displaying matrix of correlation coefficients

Hi, i have a large matrix of correlation coefficients, which i am displaying using imagesc function. It gives me the imageof the...

9 months ago | 1 answer | 0

Question

plotting sets of data for an nxn matrix, where each element of a matrix is an array

Hi, I have two sets of variables. (a1, a2, ….a10) and (b1, b2, ….b15). I am changing 1st set of variables (a’s from let’s say ± ...

10 months ago | 0 answers | 0

Question

counting total no of particles in a bin in histogram

Hi, i have a basic problem. I had made a histogram with nbins=100. I want to count the number of particles of that bin which h...

1 year ago | 1 answer | 0

Question

plotting 2D data with respect to a third property

Hi, i have a data, lets say x and y column vectors, and i want to plot the data ccording toa third property represented by colum...

1 year ago | 1 answer | 0

Question

Normalization of colorbar showing bincounts of binscatter

I am using bin scatter to plot my 2D data. I want to normalize my bin counts from 0-1 in the color bar instaed of absolute numbe...

1 year ago | 1 answer | 0

Question

reading data from columns of multiple text files

Hi all, my question is a bit basic. I want want to read data of columns and individually store values of each in the form of an...

1 year ago | 1 answer | 0

Question

settings values of radio buttons in GUI

hello MATLAB community, is it possible to set values of radio buttons in GUI other than 0 or 1. I have a panel with four options...

2 years ago | 2 answers | 0

Answered

Dear All, I am new to MATLAb GUI and want to create one. My program should work in the following sequence. 1) Select option of polarity from a pop-up menu (total two options are available) 2) load file according to polarity selected 3) execute part

Thank you very much for the clarification.

Dear All, I am new to MATLAb GUI and want to create one. My program should work in the following sequence. 1) Select option of polarity from a pop-up menu (total two options are available) 2) load file according to polarity selected 3) execute part

Thank you very much for the clarification.

2 years ago | 0

Question

Dear All, I am new to MATLAb GUI and want to create one. My program should work in the following sequence. 1) Select option of polarity from a pop-up menu (total two options are available) 2) load file according to polarity selected 3) execute part

My Matlab script is as follows (which works perfectly but i have to change it to GUI for user readiness) R_pp=[]; ...

2 years ago | 2 answers | 0

Question

solving system of equations using singular value decomposition and fsolve

Hello, i have a system of equations which i want to solve. My simplified system is shown below. k1=0.6828; k2=1.3656; ...

2 years ago | 2 answers | 0

Question

storing output (which are matrices) of for loops

Hello, I am trying to store my output from for loop to be used later in code. The output is a 2x4 matrix for each cycle of loop....

2 years ago | 2 answers | 0

Question

reading selected columns of multiple files and storing the data

Hi, I have a simple problem but as a beginner stuck on it. I want to read 10 files in matlab with 3 columns in each file. I want...

2 years ago | 1 answer | 0

Answered

Solving trigonometric non-linear equations in MATLAB

hi john, can you comment on why my code (similar as the original question is not giving me any solution? I will really appreciat...

Solving trigonometric non-linear equations in MATLAB

hi john, can you comment on why my code (similar as the original question is not giving me any solution? I will really appreciat...

2 years ago | 0

Question

Hello, I want to solve system of non linear equations using fsolve. There are thre equations and two unknowns K and L. looking at my code, please advice how to best do this. Also please advice if this is the best way or there is an alternate option.

Ld= 0.8194 %constant % cos^2(K*L)+ Ld*K*sin(K*L)cos(K*L)=2.2 two non linear equations % cos^2(K*L)=0.299 % Ld*cos^2(...

2 years ago | 1 answer | 0

Question

Hi, i have a problem regarding curve fitting. I have a set of data which is linear, but i want to fit a cos(k*l)^2 to this data and wants to find for which value of (k*l), for which the initial linear part of cosine curve fits my data?

%% Here is my code. [data]=[0 0 0.050000000000000 1.108646244630E-01 0.100000000000000 2.217423074817E-01 0.1...

2 years ago | 1 answer | 0