Risposto
fill ids numbers in the matrix
I had to plot ‘example-logfile’ to figure out how it works. Try this — TLf = readtable('Logfile.xlsx'); TLf.Var3 = cumsum(...

oltre 3 anni fa | 0

| accettato

Risposto
zpk DisplayFormat as time constant, how to access the actual Gain, Zeros and Poles
Perhaps I do not understand your question, however in the documentation for the 'time constant' option, the coefficient of is t...

oltre 3 anni fa | 0

| accettato

Risposto
categorical conversion to integer
Perhaps something like this — y = categorical([0 1]) y = cellfun(@str2double,categories(y)) y = int8(y) .

oltre 3 anni fa | 1

Risposto
How do I find the trough of my data with stated x limits where it should occur?
The findpeaks function will not work optimally with NaN values in the vector, so if you suspect that, use the fillmissing functi...

oltre 3 anni fa | 0

Risposto
Polarplot - plot arc between points instead of line
Define the two points you want, crate an angle vector connecting them, and then interpolate to create the radius vector — poin...

oltre 3 anni fa | 1

| accettato

Risposto
Indexing geochemical data arrays with different numbers of elements
This can be done in a relatively straightforward way by first separating the sub-matrices into dindividual cells using the accum...

oltre 3 anni fa | 0

| accettato

Risposto
how to store values for a further operation
Perhaps something like this — x = randn(2000, 1); Fs = 250; L = numel(x); t = linspace(0, L-1, L).'/Fs; figure plot(t, ...

oltre 3 anni fa | 0

| accettato

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

oltre 3 anni fa | 0

| accettato

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

oltre 3 anni fa | 0

| accettato

Risposto
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([...

oltre 3 anni fa | 0

| accettato

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

oltre 3 anni fa | 0

| accettato

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

oltre 3 anni fa | 0

| accettato

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

oltre 3 anni fa | 0

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

oltre 3 anni fa | 0

| accettato

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

oltre 3 anni fa | 0

| accettato

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

oltre 3 anni fa | 0

| accettato

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

oltre 3 anni fa | 0

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

oltre 3 anni fa | 0

| accettato

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

oltre 3 anni fa | 1

| accettato

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

oltre 3 anni fa | 0

| accettato

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

oltre 3 anni fa | 0

| accettato

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

oltre 3 anni fa | 0

| accettato

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

oltre 3 anni fa | 0

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

oltre 3 anni fa | 0

| accettato

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

oltre 3 anni fa | 0

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

oltre 3 anni fa | 0

Risposto
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) \ ...

oltre 3 anni fa | 0

| accettato

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

oltre 3 anni fa | 1

| accettato

Risposto
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); ...

oltre 3 anni fa | 1

| accettato

Risposto
Issue when input to sin(x) is in scientific notation
You are seeing the effects of different precision arguments. format long % Show Detai...

oltre 3 anni fa | 2

| accettato

Carica altro