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

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

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

8 days 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 =...

8 days 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...

9 days 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...

9 days 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+...

9 days 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...

9 days ago | 0

Answered
How do I make this type of graphics, is it with scatter? For your answers, thank you!
It looks to me like a scatter plot with the autumn colormap, square filled markers, and black outlines for whatever they are sup...

10 days ago | 3

| accepted

Answered
Stationary point Code Error. Trying to find stationary points for the equation below. Was having a hard time doing it by hand so tried a code.. getting error for fsolve.
One problem is using zero for any initial parameter estimate, and especially if the parameter is the only element in the denomin...

10 days ago | 0

| accepted

Answered
How to automate the plotting of numerical data contained in Excel files?
If you have R2018b or later, and each table contains data with numerical variables (excepting the first variable that is treate...

10 days ago | 0

Answered
step response but wrong answer from matlab!
f you plot the step respoonse on the same time scale, the MATLAB plot is the same. See the added fourth subplot — % Transfe...

10 days ago | 0

Answered
search for the position of a number inside a cell (cell with existence of empty rows)
Use ismember (since you have the exact values, otherwise ismembertol) and any (here using the default column orientation, dimens...

11 days ago | 0

| accepted

Answered
Choosing initial values for fitting experimental data through fminsearch
It would help to have the data. If ‘p(2)’ is supposed to be in the range of about 1, start it near there. Nonlinear paramete...

13 days ago | 0

Answered
Reading ping output using readtable
Try this — T1 = readtable('PING_20240208.txt') T1.Var1 = datetime(str2double(extractBetween(T1.Var1,'[',']')), 'ConvertFrom',...

13 days ago | 0

Answered
Read .raw file
If the file is less than 5 MB in size, use the zip function to create a .zip file for it and then upload the .zip file here. ...

13 days ago | 0

| accepted

Answered
How to fix "Number of equations greater than number of indeterminates. Trying heuristics to reduce to square system." error.
There are a few problems you will likely want to fix. In the interim, try this — syms x(t) t m = 10; k = 160; % t = 0:...

13 days ago | 0

| accepted

Answered
How do I color my orbits based off of Jacobi Constant?
I would use the surf function with your matrix, with 'EdgeColor','interp' and then view(0,90). The contour (and contourf) func...

14 days ago | 0

Answered
interpolation using 2D look up table
See if transposing all of them (use the simple transpose (.')) will work. To see the difference between meshgrid and ndgrid r...

14 days ago | 0

| accepted

Answered
Legend with multiple columns and problem with alignement for last entry
There does not appear to be anying in Legend Properties that would directly address that problem. The only approach I can think...

15 days ago | 0

Answered
Save stereo audio file
Testing those functions, they both appear to be working correctly — Fs1 = 44100; L1 = 2; t1 = linspace(0, L1*Fs1, L1*Fs1+1)....

15 days ago | 0

| accepted

Answered
How do I remove leap year data?
I ran your code with the provided data (here, online), however I do not see any leap year days. That aside, something like th...

16 days ago | 0

| accepted

Answered
plot area between 2 curves, not working
The ‘curve’ vectors each have NaN values, and patch will not plot them. Eliminiate them (I did that here with fillmissing) and ...

16 days ago | 0

Answered
how can I extract values from a struct matrix that contains only one value to make single matrix from it?
Perhaps — % imshow(imread('sagust_kose_hız_degisimi_v.jpg')) LD = load('U_at_right_top.mat') U = structfun(@(x)x.u, LD.U_a...

16 days ago | 0

| accepted

Answered
How to chnage the coefficent for transfer function?
What do you want to change it to? The displayed result is the format that the zpk function produces. If you want them otherw...

17 days ago | 0

Answered
How to add an input to the end of an fprintf function
Perhaps this — r = rand; lambda = rand; phi = rand; units = 'mm'; fprintf('Our rectangular coordinates converted to cyli...

18 days ago | 0

| accepted

Answered
Need help substituting vector variables into symbolic expression
I may be missing something in your problem statement. Is this what you want to do — syms x w1 b1 l1 = tanh(x * w1 + b1); ...

18 days ago | 0

Answered
Interpolating by latitude and depth
The scatteredInterpolant function would be best for this problem. Try this — T1 = readtable('mock_data.csv') FNut1 = sca...

18 days ago | 0

| accepted

Answered
Put letters as markers in a legend box
Using letters is not part of the linestyle or marker options. I initially tried overprinting the legend with both text and an...

19 days ago | 1

| accepted

Answered
How do I use fprintf to print to a text file?
Use fopen to create a file identification number, change thefprintf statements accordingly, then use fclose to close it. fid ...

19 days ago | 0

Load more