Answered
how to plot table to line graph with dots ?
There are easier ways to import the table using detectImportOptions, however since it exists as posted, try this — x = str2dou...

2 years ago | 1

| accepted

Answered
Plotting several plots of respective ranges from an excel file into one single plot
Perhaps this — opts = detectImportOptions('tempDataTrollhFlygpl.xlsx', 'VariableNamingRule','preserve', 'HeaderLines',9); opt...

2 years ago | 1

| accepted

Answered
scatteredInterpolant using a matrix, F = scatteredInterpolant(x,y,v) form
‘Input data point values have invalid dimension. The data must be specified in column-vector format.’ This holds when you ini...

2 years ago | 0

Answered
Find Coefficients of an equation
Using two independent variables is relatively straightforward. You need to concatenate them, then refer to them individually i...

2 years ago | 0

| accepted

Answered
Can someone help me solve this different equation on matlab?
Perhaps this — % 1/r * d/dr(r*dS/dr) + c1 - c2 syms r S(r) c1 c2 S0 DS0 Eqn = 1/r * diff(r*diff(S),r) + c1 - c2 S = dsolv...

2 years ago | 0

Answered
How can i 3d plot this table in matlab?
Try this — A1 = readmatrix('cc.csv'); x = A1(1,2:end); y = A1(2:end,1); z = A1(2:end,2:end); figure surf(x,y,z, 'EdgeCo...

2 years ago | 0

| accepted

Answered
Why can't I run my code? (tfest function)
Run this from a script or your Command Window: which tfest -all It should give you this identical result. If it shows anyt...

2 years ago | 0

Answered
To find angular frequency and wave vector for time series data
From what I’ve been able to discover, the ‘minimum vairance method’ is a heirarchical clustering approach. MATLAB has a few way...

2 years ago | 0

Answered
Dealing data with text and numerical in .txt file
I am not certain what you intend by ‘visualize’. Perhaps this — T1 = readtable('M I T 2024 02 17.txt', 'Delimiter',{',',':'...

2 years ago | 0

Answered
Compare rows from different columns
One approach — A = randi(50,10,2) Col_2_Larger = A(:,2) > A(:,1) ColNr = find(Col_2_Larger); fprintf('Col 2 larger in row...

2 years ago | 0

| accepted

Answered
How can I ensure that the initial solution (x0) for fsolve does not result in Inf or NaN values?
The approach I use (if possible) is to plot the function first. Most of the time, it is possible to plot it in one or two dimen...

2 years ago | 0

| accepted

Answered
How to plot the error of two numerical methods on the same graph?
I cannot run your code because I do not have arguments for the functions. (I tweaked them to make them a bit more efficient.) ...

2 years ago | 1

| accepted

Answered
How to add ytick as we want in Matlab?
Perhaps setting the 'YScale' to 'log' will do what you want — mean = [10^-3, 10^-4, 10^-5, 10^-6, 10^-7, 10^-8]; variance =...

2 years ago | 0

| accepted

Answered
Extracting 2 columns from a excel file and send them to an own matrix file
Perhaps something like this — opts = detectImportOptions('tempDataTrollhFlygpl.xlsx', 'NumHeaderLines', 9, 'VariableNamingRul...

2 years ago | 1

| accepted

Answered
Rotating text to 90 degrees
I’ve never used PsychToolbox, however that would be relatively straightforward in MATLAB graphics — alphabetT = 'T'; figure...

2 years ago | 0

Answered
How can I load .trf data files into MATLAB?
There appear to be several different definitions of that extension in an onlilne search. I suggest using the type function fi...

2 years ago | 0

Answered
fplot and quiver return "Error using box"
See if you have something else in your MATLAB search path named ‘box’. which box -all That is the only thing I can think of...

2 years ago | 0

| accepted

Answered
A 2D circle divided into 10 sectors in the 3D plot.
I am not exactly certain what you want. One approach — r = 7.5; ac = linspace(0, 2*pi, 500).'; xc = r*cos(ac); yc = r*si...

2 years ago | 0

| accepted

Answered
How to add date,time corresponding to some incrementing count data in csv Excel file with help of MATLAB.
You can tell the datetime function how to interpret the available information with the 'InputFormat' name-value pair. See the d...

2 years ago | 0

Answered
How to simplify the symbolic expression?
When I simplified it offline, using: Expression = simplify(Expression, 500) this was the result : Expression = Vpo*Vsecm...

2 years ago | 0

| accepted

Answered
Scattered Interpolant in matlab
The interpolation Method options are 'linear', 'nearest' and 'natural' (natural neighbor interpolation, giving no details that I...

2 years ago | 0

| accepted

Answered
How do I plot a timeseries?
Use readtable. You can either use detectImportOptions to import the time as a datetime variable, or convert it after importing...

2 years ago | 0

Answered
How to import data with titles and plot on a plane
I am not exactly certain what you want. One way of plotting them in 3D and also projecting them on a plane is to combine a stem3...

2 years ago | 0

| accepted

Answered
How to get Scalogram from an EMG raw data
If you have the Wavelet Toolbox, use the scattergram function (introduced in R2018b). Alternatively, search for scalogram on...

2 years ago | 1

| accepted

Answered
Convert Julian Date + Time in GMT to calendar day + Time in EST
This works — syear = '2024'; JDDD = 'J025'; % Julian date GMT = '19:29:29.231'; % GMT time doy = sscanf(JDDD,'J%3d') DTUCT...

2 years ago | 1

| accepted

Answered
from txt to dat file
I would use either readtable or readmatrix, specifying the semicolon as the delimiter and ignoring the space delimiter — % r =...

2 years ago | 0

| accepted

Answered
Opening Multiple .csv files
If you want to plot each file in a different figure, create a new figure for each file. You can easily do that in the loop th...

2 years ago | 0

Answered
How do I use Matlab to create a boxplot?
There are two options, the Statistics and Machine Learning Toolbox boxplot function and the core MATLAB boxchart funciton. Bot...

2 years ago | 0

Answered
Interpolate x value at single y value in dataset.
Having your data definitely helps! Try this — % DT = datetime(2024,2,12) + minutes(0:15:13*60).'; % TC = rand(size(DT))*6+...

2 years ago | 1

| accepted

Answered
Why does Matlab not simplify this further?
Increase the ‘Steps’ value. It will then continue simplifying until it cannot simplify further, or reaches the maximum ‘Steps’ i...

2 years ago | 0

Load more