Answered

Problem using nlinfit for multiple non-linear regression - poor fit

The error essentially means that the model can be simplified, and that not all the parameters are necesary to fit the data. In ...

Problem using nlinfit for multiple non-linear regression - poor fit

The error essentially means that the model can be simplified, and that not all the parameters are necesary to fit the data. In ...

1 month ago | 0

Answered

if elseif else statement not working

Use a logical vector to select the elements you want to plot, then use that as a subscript to both arguments in each plot call —...

if elseif else statement not working

Use a logical vector to select the elements you want to plot, then use that as a subscript to both arguments in each plot call —...

1 month ago | 0

| accepted

Answered

How to find Maximum Likelihood Estimation of Images?

Use the mle function. However according to the documentation section on data the input must be a vector, so the call to it woul...

How to find Maximum Likelihood Estimation of Images?

Use the mle function. However according to the documentation section on data the input must be a vector, so the call to it woul...

1 month ago | 0

| accepted

Answered

Retime Yearly Maximum - Finding Corresponding Dates from Timetable

Try something like this — Date = datetime(2020,01,01)+caldays(0:3.9*365.25).'; Temp = 80*rand(size(Date))-40; Humd = randi([...

Retime Yearly Maximum - Finding Corresponding Dates from Timetable

Try something like this — Date = datetime(2020,01,01)+caldays(0:3.9*365.25).'; Temp = 80*rand(size(Date))-40; Humd = randi([...

1 month ago | 0

| accepted

Answered

find equal value into cell

Use the ismember function after using the cell2mat function. I am not certain what references you want, so it may be necessar...

find equal value into cell

Use the ismember function after using the cell2mat function. I am not certain what references you want, so it may be necessar...

1 month ago | 0

Answered

Help with Laplace transform method for 2nd order DE

In the subs call, use curly braces {} instead of square brackets []. Then, it works — syms s t y(t) Y g = heaviside(t)*(si...

Help with Laplace transform method for 2nd order DE

In the subs call, use curly braces {} instead of square brackets []. Then, it works — syms s t y(t) Y g = heaviside(t)*(si...

1 month ago | 0

| accepted

Answered

How do I get Symbolic/simplify to replace 1-cos(theta)^2 with sin(theta)^2 etc.

Without having the longer expression to experiment with, perhaps rewrite or subexpr could work.

How do I get Symbolic/simplify to replace 1-cos(theta)^2 with sin(theta)^2 etc.

Without having the longer expression to experiment with, perhaps rewrite or subexpr could work.

1 month ago | 0

Answered

Problem with ordinary differential equation

The initial condition of 0 for keeps it 0 througuout the integration. syms y(x) x Y N=5; r=0.05; m=0.01; p=1; s=1; t=...

Problem with ordinary differential equation

The initial condition of 0 for keeps it 0 througuout the integration. syms y(x) x Y N=5; r=0.05; m=0.01; p=1; s=1; t=...

1 month ago | 0

| accepted

Answered

Can I rename the dependencies of an anonymous function?

I am not certain what you want to do, however it seems that you want to compbine both of the arguments into a single vector. ...

Can I rename the dependencies of an anonymous function?

I am not certain what you want to do, however it seems that you want to compbine both of the arguments into a single vector. ...

1 month ago | 0

| accepted

Answered

convert html content to table

It appears to be an Excel file in a website. Perhaps using readtable would work. If not, then perhaps first using websave migh...

convert html content to table

It appears to be an Excel file in a website. Perhaps using readtable would work. If not, then perhaps first using websave migh...

1 month ago | 0

| accepted

Answered

How can I load my .mat files from a folder into a function?

The ‘data’ variable contains a structure (see struct for details) holding all the variables in the file. See the documentation ...

How can I load my .mat files from a folder into a function?

The ‘data’ variable contains a structure (see struct for details) holding all the variables in the file. See the documentation ...

1 month ago | 0

Answered

How to combine 2 graphs from different scripts in another script

I cannot get copyobj to copy the data for both figures to one axes. It copies some of the informaton, however not all of it. T...

How to combine 2 graphs from different scripts in another script

I cannot get copyobj to copy the data for both figures to one axes. It copies some of the informaton, however not all of it. T...

1 month ago | 0

| accepted

Answered

Shifting audio signal into different frequency band (shiftPitch)

I do not have the Audio Toolbox, however the documentation for shiftPitch requires the argument to be either single or double. ...

Shifting audio signal into different frequency band (shiftPitch)

I do not have the Audio Toolbox, however the documentation for shiftPitch requires the argument to be either single or double. ...

1 month ago | 0

Answered

Overlaying Surface and Vector Plot

Ideally, both plots need to be 3D plots, otherwise the surf plot will completely hide the quiver plot, since the quiver plot has...

Overlaying Surface and Vector Plot

Ideally, both plots need to be 3D plots, otherwise the surf plot will completely hide the quiver plot, since the quiver plot has...

1 month ago | 1

| accepted

Answered

Error when using findpeaks for different limits

The 'MinPeakDistance' value must be less than the number of elements in the vector being used as the first argument to findpeaks...

Error when using findpeaks for different limits

The 'MinPeakDistance' value must be less than the number of elements in the vector being used as the first argument to findpeaks...

1 month ago | 0

| accepted

Answered

How to fix ode graphs?

You are telling it to produce two different plots because of two separate figure calls. syms y(x) x Y N=5; r=0.05; m=0.01...

How to fix ode graphs?

You are telling it to produce two different plots because of two separate figure calls. syms y(x) x Y N=5; r=0.05; m=0.01...

1 month ago | 0

| accepted

Answered

Arrange column vetors into table

You simply need to transpose the row vectors to column vectors. That is best done before creating the table, for example — ...

Arrange column vetors into table

You simply need to transpose the row vectors to column vectors. That is best done before creating the table, for example — ...

1 month ago | 0

| accepted

Answered

How can I create a matrice with values over a number of this matrix ?

Perhaps something like this — earthquakes = rand(20,1)*9 % Data (Richter Magnitudes) eq_gt7 = eart...

How can I create a matrice with values over a number of this matrix ?

Perhaps something like this — earthquakes = rand(20,1)*9 % Data (Richter Magnitudes) eq_gt7 = eart...

1 month ago | 0

Answered

Uploaded images are pixelated

JPEG images have problems because of the discrete cosine transform used to encode them. See the Wikipedia section on JPEG compr...

Uploaded images are pixelated

JPEG images have problems because of the discrete cosine transform used to encode them. See the Wikipedia section on JPEG compr...

1 month ago | 0

| accepted

Answered

Converting a timestamp into a value that can be plotted

A duration array may woirk, although a datetime array would also work. Perhaps something like one of these — ts = ['11/04/2...

Converting a timestamp into a value that can be plotted

A duration array may woirk, although a datetime array would also work. Perhaps something like one of these — ts = ['11/04/2...

1 month ago | 0

Answered

Find intersection point between two plotted lines

The code I wrote for your previous post, Plot tangent line on part of the curve is designed as requested to have only one inters...

Find intersection point between two plotted lines

The code I wrote for your previous post, Plot tangent line on part of the curve is designed as requested to have only one inters...

1 month ago | 0

Answered

Plot tangent line on part of the curve

Try this — Data = readmatrix('data_tangent.xlsx') x = Data(:,1); y = Data(:,2); [ymax,idx] = max(y); Binit = x(1:5) \ ...

Plot tangent line on part of the curve

Try this — Data = readmatrix('data_tangent.xlsx') x = Data(:,1); y = Data(:,2); [ymax,idx] = max(y); Binit = x(1:5) \ ...

1 month ago | 0

| accepted

Answered

How to add missing rows in irregularly spaced table as per missing months and years?

I am not certain what you want to do, however the correct approach to dealing with the missiing values is to convert the table t...

How to add missing rows in irregularly spaced table as per missing months and years?

I am not certain what you want to do, however the correct approach to dealing with the missiing values is to convert the table t...

1 month ago | 1

| accepted

Answered

How to use the constant e?

Use the exponential function exp(y) to compute e^y. For example: x = 0.2; Result = (x^2)*exp(4) Result = 2.1839

How to use the constant e?

Use the exponential function exp(y) to compute e^y. For example: x = 0.2; Result = (x^2)*exp(4) Result = 2.1839

1 month ago | 15

| accepted

Answered

How to change xticks on a histogram?

There are several ways to do this. Using xticks should work in R2022b — T2 = array2table(rand(100,10)*10); ...

How to change xticks on a histogram?

There are several ways to do this. Using xticks should work in R2022b — T2 = array2table(rand(100,10)*10); ...

1 month ago | 0

| accepted

Answered

Issue when input to sin(x) is in scientific notation

You are seeing the effects of different precision arguments. format long % Show Detai...

Issue when input to sin(x) is in scientific notation

You are seeing the effects of different precision arguments. format long % Show Detai...

1 month ago | 2

| accepted

Answered

Issues with creating a frequency weighting filter for a iso-standard

I just saw your latest Comment now. The sampling frequency can be anything that you determine to be appropriate for the syste...

Issues with creating a frequency weighting filter for a iso-standard

I just saw your latest Comment now. The sampling frequency can be anything that you determine to be appropriate for the syste...

1 month ago | 0

Answered

Find crossing points of x and z data

It would help to have the data, and labeling the axes, since it is not obvious what ‘x’ and ‘z’ are. In their absence (and ma...

Find crossing points of x and z data

It would help to have the data, and labeling the axes, since it is not obvious what ‘x’ and ‘z’ are. In their absence (and ma...

1 month ago | 0

| accepted

Answered

Sketch the graph using matlab

Use the linspace function to create the ‘x’ vector. Use element-wise operations to calculate ‘y’: y = (x.^3-1)./(sqrt(x) - ...

Sketch the graph using matlab

Use the linspace function to create the ‘x’ vector. Use element-wise operations to calculate ‘y’: y = (x.^3-1)./(sqrt(x) - ...

1 month ago | 0

Answered

Finding slope of a curve at some specific points

Probably the easiest way to calculate the instantaneous slope is: dydx = gradient(y) ./ gradient(x); All that is necessary af...

Finding slope of a curve at some specific points

Probably the easiest way to calculate the instantaneous slope is: dydx = gradient(y) ./ gradient(x); All that is necessary af...

1 month ago | 0

| accepted