Answered
WHY DO I GET THIS ERROR USING THE ERROR BAR AND PLOT?
The errorbar call should be: errorbar(x, MODESTAMMEQ.Var5, MODESTAMMEQ.Var4,'.r','MarkerSize',6) since ‘MODESTAMMEQ.Jan1989’ ...

5 years ago | 0

| accepted

Answered
Determine percent of array elements which meet condition
A logical array has two states, true=1 or false=0, so al that is necessary is to find the numbers of 1 values with respect to th...

5 years ago | 1

| accepted

Answered
Binning data into equally spaced intervals
One approach — v = rand(1,1000)*2000; edges = 0:5:2000; [counts,edg,bin] = histcounts(v, edges); % ...

5 years ago | 0

| accepted

Answered
WHY CAN'T I PLOT THIS WITH "DATETIME"?
The first column is not a valid datetime array. It first needs to be converted to one. Try this — LD = load('LARSEN_MMEQ1....

5 years ago | 0

| accepted

Answered
Overlaying scatter plot on grouped bar graphs
The ‘all’ matrix is (16x3), however there are 12 bars (3 groups of 4). Ths size of ‘all’ is not consistent with that. How is...

5 years ago | 0

| accepted

Answered
Adding error bars to a plot
I do not understand what you want to do, although that is definitely possible. Examples — y = rand(4,3)*10; err = rand(4,3...

5 years ago | 0

Answered
how to Concatenate big string matrices of different sizes
I would read all of them in as table arrays using readtable, then use the innerjoin function to join the first two tables, then ...

5 years ago | 0

Answered
2D Graph Plot from excel data
I have absolutely no idea what you want to plot, and the data posted do not give anything similar to the plot image. Other th...

5 years ago | 0

| accepted

Answered
Matlab fitting image is inconsistent with the parametric equation
Try this — year=[1750 1800 1850 1900 1950 1990 2000 2009]; % population(millions)=[791 980 1260 1650 2520 5270 6060 6800]; p...

5 years ago | 0

Answered
Draw 3D plot from 2D plot with discrete data points
Without the Excel file, I experimented to create an approsimately equal curve. I then used it as the radiuc argument to the cyl...

5 years ago | 1

| accepted

Answered
What is ind2sub
MATLAB uses linear indexing for arrays, however many arrays are also referred to by subscripts into the rows, columns, and addit...

5 years ago | 1

| accepted

Answered
Different frequency responses using [z,p,k] method and [b,a] for 2nd order elliptical filter
You are doing everything correctly, however you only need to use the second-order-section (‘sos’) representation, since it essen...

5 years ago | 0

| accepted

Answered
Need some help with a function and With my code
MATLAB is quite versatile with respect to prpblems like this, so it does not require explicit loops to create the terms of that ...

5 years ago | 1

| accepted

Answered
How to assign error bars to a multiple data sets histogram ?
Try this — Sans=[21, 4, 4, 18, 7, 6]; Avec=[18, 3, 4, 14, 7, 27]; Comparaison=[Sans; Avec]; Ect_type_sans=[7, 4, 3, 9, 7, 8...

5 years ago | 1

| accepted

Answered
change scientific notation in my plot
Change the NumericRulerProperties Exponent property to get the result you want — t = linspace(0, 5); x = 1E+5*exp(-0.1*t) .* ...

5 years ago | 1

| accepted

Answered
How can I shade the area between a curve and a vertical line?
Try this — m=60;L=1;J=60;g=9.81;Time_Delay=0.2;beta2=411.67; %% % syms w % W=[0.0001:0.1:18*pi]; % W=[0.00001:1E-4:3*pi]...

5 years ago | 0

| accepted

Answered
Importing csv files properly
Import it as a table, using readtable — T1 = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_files/687498...

5 years ago | 0

Answered
How do i solve huge coupled first order differential equations
The integration times are adaptive, however it is possible control the points at which the differential equation system is evalu...

5 years ago | 0

| accepted

Answered
function never used, I dont know why.
In a script, all the function definitions must go at the end of the script: %----------StartChua.m---------- [t,y] = ode45(@c...

5 years ago | 1

| accepted

Answered
Plot trajectory of a point on a moving platform
This should get you started — N = 100; figure for k = 1:N x = cos(2*pi*k*2/N); y = sin(2*pi*k*4/N); plot(x, y...

5 years ago | 0

Answered
Unable to perform assignment due to the different length of sides
A cell array could be appropriate here: Str{i} = fileread(full_file_name(i,:)); .

5 years ago | 1

| accepted

Answered
sort cell arrays based on mean value
Try something like this — c = mat2cell(rand(150,1), [10 20 30 40 50], 1) % Create Cell ARray [cm,idx] = sort(cellfun(@me...

5 years ago | 1

| accepted

Answered
change color of xticklabels or yticklabels
One approach — x = 0:0.1:10; y = exp(-(x-5).^2); figure plot(x, y) hold on plot(xlim, [0 0]+min(ylim), 'g') hold off ...

5 years ago | 0

| accepted

Answered
Error using streamline function in matlab
The ‘startx’ vector is incorrect. Try this — LD = load('mukesh bisht matlab.mat'); U = LD.U; W = LD.W; X = LD.X; Z = LD...

5 years ago | 0

Answered
modeling with 2 independent variables
If you know what the times are, create a time vector of them using the repmat function (or repelem function, introduced in R2015...

5 years ago | 0

| accepted

Answered
how to plot x axis with ratio unit instead of proportional unit
I am not certain that I understand the problem. However when you mention ‘squeezed to the left’, that could be correctged by us...

5 years ago | 0

| accepted

Answered
Can I find milliseconds from decimal time
Perhaps: HOD.Format='hh:mm:ss.SSS' will do what you want. See the Format property for details. .

5 years ago | 1

| accepted

Answered
Using the Lowpass filter to properly filter data without a time variable
It is always best to use the freqz function to see what the filter is actually doing. (I find fvtool a bit difficult to work wi...

5 years ago | 1

| accepted

Answered
multiple histogram color scheme
Since all the edges appear to be the same, it might be easiest to get the outputs of the histogram calls, however instead using ...

5 years ago | 0

| accepted

Answered
how do I detect onset in PPG data?
Without knowing the details, there are several functions and approaches that can be used to detect the onset of each pulse (assu...

5 years ago | 2

| accepted

Load more