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

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

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

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

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

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

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

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

10 months 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