Answered
How to plot XRD data as 3D plot?
When I click on the link, I get a ‘DOI Not Found’ error. (EDIT — The new link is to an article behind a paywall, so I do not ha...

5 years ago | 1

| accepted

Answered
Struggling with solving a systems of equations
Try this — syms a_273 a_233 p_233 p_273 T_0 = 273; T_1 = 233; a_273 = 4.29E-3; p_233 = p_273 * (1 + a_273*(T_1 - T_0)) p_...

5 years ago | 0

Answered
Why I cannot get accurate curves using for loops?
It is not possible for me to run the posted code. With respect to the plots, perhaps using semilogx would work (instead of pl...

5 years ago | 0

Answered
How to calculate for significant difference between Cohen's Kappa values?
I used Cohen’s many years ago. From my understanding, from reading Fliess’s book (and correspoinding with him), Cohen’s is no...

5 years ago | 0

Answered
Assigning variable names to eigenvalues
Just subscript the original vector to refer to them individually — format long G A = [1 2 3; 1 2 3; 1 2 3]; L = eig(A) fo...

5 years ago | 0

Answered
Can someone explain why I am getting the error "Not enough input arguments (line 2)"?
I suspect it is because ‘xvar’ and ‘yvar’ are not passed as parameters to ‘mysvmfun’. It probably needs to be something like ...

5 years ago | 0

Answered
use function with user defined variable in GA
I have no idea what the fitness funciton does, however if it uses data from the Excel file, read the file once and then pass the...

5 years ago | 0

| accepted

Answered
Using barh to plot top 10 values in Feature Selection
I have no idea what the data are, however the maxk function could do what you want. .

5 years ago | 1

| accepted

Answered
How can i select rows in a timetable?
One option is to convert ‘T_T’ to a duration array, so timerange would work with it. Another option is to use logical indexin...

5 years ago | 0

| accepted

Answered
How to convert symbolic array into a vector
I am not certain what you want to do, or the specific problem. It might be easiest to create the ‘L’ assignment as a function...

5 years ago | 0

| accepted

Answered
How can I run two loops at a time?
Apparently, that occurs when ‘ILP’ and ‘QLP’ become matrices rather than scalars, so when either ‘i’ or ‘j’ is greater than 1. ...

5 years ago | 0

Answered
How to discretize non-uniformally a curve
One option is the stairs function — x = linspace(0, 400,50); y = [exp(x/100); sin(x/100)-x/400]; figure plot(x, y) gri...

5 years ago | 0

| accepted

Answered
Area under distribution fit curve
It would help to know the function used to fit the curve (for example nlinfit). The nonlinear curve-fitting functions require...

5 years ago | 0

| accepted

Answered
Area fill under a curve
For the fill plot, use the data that fplot has already created — w = @(x) x.*exp(-x).*cos(x); hfp = fplot(w , [0,2*pi]); ...

5 years ago | 0

Answered
How can I transform these data in timetable?
I am not certain what you are asking. If you want to turn the first 3 variables into a dateime variable, this works — LD = ...

5 years ago | 0

| accepted

Answered
How to input a "sym" type equation into ODE45 to solve first order differential equation?
I do not understand what you are doing. However the correct way to use a symbolic different ia equation with the numeric solv...

5 years ago | 0

| accepted

Answered
Create 3D Surface-Shape of a 2D spline
Try something like this — x = linspace(-2.25, 0); y = 5-3.96*(x+1.125).^2; figure plot(x, y) grid [X,Y,Z] = cylinder(...

5 years ago | 1

| accepted

Answered
From numerical FFT to zero-pole diagram
What you can do depends on what the data are, one requirement being that to have complex vectors in the frequency domain. To ...

5 years ago | 0

| accepted

Answered
How can I make this line start from a specific date?
Change ‘Lv’ to: Lv = (DTv <= datetime('7-Jan-2020')) & (DTv >= datetime('14-Jan-2015')); and it should do what you want. ...

5 years ago | 0

| accepted

Answered
How can we use .Rds file in matlab for plotting purposes?
That apparently depends on the file. According to the description in readRDS, the file can either be ASCII or binary. It shoul...

5 years ago | 0

Answered
How make this curve bit smooth or how to reduce some spikes?
‘I to do it by applying some moving average filter or band pass filter, etc.?’ That depends entirely on the nature of the noi...

5 years ago | 0

| accepted

Answered
I would like to know how to find the slope for three different line in one graph
I have no idea what you want to do. Try this — V = [5 10 15]; I1 = [0.00487 0.00964 0.0145]; I2 = [0.00106 0.0021 0.00316...

5 years ago | 0

Answered
Trouble plotting data in table
‘How can I get the data to appear instead of the [1x12 double]?’ The ‘[1 x 12 double]’ is a row vector by definition. Fo...

5 years ago | 0

| accepted

Answered
plotting a function with different constant values without specifying the variable
I have no idea what range of values ‘v’ is supposed to have here, however ezsurf (or fsurf) may be appropriate — syms v T m ...

5 years ago | 0

| accepted

Answered
How to plot Normal probability density function?
Try something like this: RMS_vps = sort(RMS_vp); norm_vp = normpdf(RMS_vp,mx,sx); figure plot(RMS_vps, norm_vp) alternat...

5 years ago | 0

| accepted

Answered
Fitting sine curve to data
‘Is it possible to rearrange the code to get the equation I want?’ Yes, however it is not as good a fit as with the original ‘f...

5 years ago | 0

| accepted

Answered
Cole Cole Fitting to data
In electrical engineering terminology, , where is the frequency in Hz. I defined that way here. T1 = readtable('https://ww...

5 years ago | 0

| accepted

Answered
How can I plot this?
Try this (slightly edited version) — load('GIULIA_MMEQ1.mat'); A=GIULIAMMEQ1.Var4; B=str2double(A); NEW= B * 10 * 0.35; C=...

5 years ago | 0

| accepted

Answered
Subplots squish the images, what do I need to change?
‘Anyway, in the end I want to have one large image from the figure, where all the images are distributed in an undistorted way. ...

5 years ago | 0

| accepted

Answered
Plot Data Vs time
Try this — Info = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_files/727204/Full_Room_plot.xlsx'); Inf...

5 years ago | 0

| accepted

Load more