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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

ongeveer een jaar 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...

ongeveer een jaar 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...

ongeveer een jaar 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 ...

ongeveer een jaar 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 ...

ongeveer een jaar 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...

ongeveer een jaar 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...

ongeveer een jaar 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...

ongeveer een jaar 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 ...

ongeveer een jaar 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?

ongeveer een jaar ago | 3 answers | 0