Question

Length of the structure array

Hi. I am working with a structure array S (1 X 20,000) with 3 fields. I want to count the number of S(i) that meet a condition o...

2 months ago | 1 answer | 0

Question

Mean command gives wrong answer

Hi. I want to calculate the mean of a data and the mean command gives wrong result. Below is the code. I should get 160 but, the...

2 months ago | 3 answers | 0

Question

Sub-plots with multiple coordinate system (y-axes)

I have a question which is an extension of a previous question: https://www.mathworks.com/matlabcentral/answers/525423-combine-t...

3 months ago | 1 answer | 0

Question

How do I calculate the area under a curve?

I have a reading curve from some experimental observations. I want to calculate the area under the curve - between customized X ...

3 months ago | 1 answer | 0

Question

Combine two MATLAB figures with two y axes

Hi. I have two MATLAB figures and I want to combine them together, meaning to show them on one plot. These two figures have two ...

3 months ago | 1 answer | 0

Answered

How to delete the columns in a structure array

A similar question was asked by me in the past. https://www.mathworks.com/matlabcentral/answers/493440-delete-end-points-from-c...

How to delete the columns in a structure array

A similar question was asked by me in the past. https://www.mathworks.com/matlabcentral/answers/493440-delete-end-points-from-c...

5 months ago | 0

| accepted

Question

Sub-plots properties

Hi. I have 4 MATLAB figures, using them as sub-plots I want to create a new figure. These 4 figures have a larger marker size an...

6 months ago | 2 answers | 0

Question

Multiplication of two fields in a structure array

Hi. I want to perform element wise multiplication of two fields in a struture array. The size of the fields is same throughout f...

7 months ago | 1 answer | 0

Question

Draw horizontal lines using for loop on set of images

Hi. I have around 5000 images in a folder, the names of the images are Combined_1, Combined_2, .... Combined_5000. I want to dra...

8 months ago | 2 answers | 0

Question

Animation of a translating and rotating rod

Hi. I want to create an animation plot of a rod moving in 3D space. I have a structure array "data" which contains (X,Y,Z) centr...

8 months ago | 0 answers | 0

Question

Delete end points from columns in a structure array

Hello. I have a structure array S (1 x 50000) with 10 fields. The elements in the fields are column matrices (1 X M) with their...

8 months ago | 2 answers | 0

Question

Contour plot using three vectors

Hi. I want to make a contour plot using three vectors. The vectors "x" and "y" has the X and Y coordinates/positions. The vector...

9 months ago | 2 answers | 1

Question

Collapse contour plots on a single plot

Hi. I have two 10 contour plots with some colorbar to represent intensities. I want to combine them all together on to a single ...

9 months ago | 1 answer | 0

Question

Contour plot of concentration of chemical species

Hi. I am releasing a chemical species CHX (N units) in a chamber. The size of the chamber is 100 X 100 X 100 cms^3. I want to pl...

9 months ago | 1 answer | 0

Question

Iterations on field conditions of a structure array

Hi. I am working with a structure array S (1 X 50,000) with 10 fields. I want to find few paramters based on few conditions. Is ...

10 months ago | 1 answer | 1

Question

No. of elements, mean and standard deviation of a field - conditions on other fields

Hi. I am working with a structure array S (1 X 50,000) with 10 fields. For example, Here is the input, S(1).f1=[10,70,30 40...

10 months ago | 1 answer | 0

Question

Mean and standard deviation of a field - condition on another field

Hi. I am working with a structure array S (1 X 50,000) with 10 fields. I want to calculate the mean and standard deviation of fi...

11 months ago | 2 answers | 1

Question

Mean based on positive and negative values of a field

I have a structure S (10000 X 1) with 10 fields. I want to calculate (two) means and standard deviations of one particluar field...

11 months ago | 1 answer | 1

Question

Minimum and maximum values of a field in a structure array

Hi. I have a strcuture array with 10 fields. How can, I find the minumum and maximum values of a particular field f1? I tried ui...

12 months ago | 1 answer | 0

Question

How to combine two plots into one

I am using MATLAB R2018 b. I have two plots with same x but, the limits of y axes are different. Both plots has a line and some ...

12 months ago | 1 answer | 1

Question

How to combine two histograms

I have two different histogram plots with same axes limits. I want to combine them such that, I can make comparison between two ...

12 months ago | 1 answer | 0

Question

Expected one output from a curly brace or dot indexing expression, but there were 2 results.

Hi.I working with a code to manipulate some data and here are the lines which gives error S12(m).x2(n)=S2(tn4).x(ts4) % line 10...

12 months ago | 1 answer | 0

Question

Modifying a structure array

Hi. I am working with a structure array, and I want to modify the structure based on a condition on the field entries. For exam...

12 months ago | 2 answers | 0

Question

How to convert a structure array into vector

Hello. I have a structure array (1 x 50000) with 10 fields. The elements in the fields are arrays (1 x 50). I want to convert t...

12 months ago | 2 answers | 0

Question

How to divide a structure into sub-structures based on a condition

Hello. I am new to MATLAB and expecting some help. I have a structure array (1 x 50,000) with 30 fields. I want to divide this ...

1 year ago | 2 answers | 0

Question

Delete empty field - rows in a structure

I have a structure which has some empty field - rows. How can, I delete these empty them from the structure?

1 year ago | 3 answers | 0