Answered
Reading tables from the asc files in Matlab
If they are text files, one option using readtable is in the Text Files documentation section, specifically using the name-val...

4 years ago | 0

| accepted

Answered
How to find index and copy data to the another table having same label?
I would experiment by vertically concatenatating the two tables and then use sortrows on the result to sort them by the first co...

4 years ago | 0

| accepted

Answered
How to plot cell datatype in MATLAB
I would simply stay with readtable and go from there. Here are two options for plotting the data — data = readtable('https:...

4 years ago | 0

| accepted

Answered
floating-point arithmetic
‘I think this happens because the IEEE754 conversion of 0.1234 and 0.123 have infinite digits.’ Correct. ‘Does anyone ha...

4 years ago | 1

Answered
Error using * Inner matrix dimensions must agree.
Change the ‘t’ assignment to: t = linspace(-0.5, 1.5, numel(n)); and it works — % clc % clear all % close all F = 13; T...

4 years ago | 0

Answered
Designing a digital filter
With the Signal Processing Toolbox, use the bandpass function. For best results, use the 'ImpulseResponse','iir' name-value pai...

4 years ago | 0

Answered
How to write x-ticks in latex.
Try this — plot([.2 .2], [0 .35],'--k') hold on plot([.5 .5], [0 .35],'--k') axis([0 1 0 .35]); xticks([.2 .5]) Ax...

4 years ago | 0

| accepted

Answered
Moving text of xline up and down and left and right
I am not certain what you want. Try this — x = 0:0.1:5; y = 0.55-0.5*exp(-1.5*x); maxSignal = 0.2; tMax = 1; figure...

4 years ago | 0

| accepted

Answered
GA fitness function with variables in a summation
I still do not completely understand what you want to do. Perhaps this — Z = randn(16,1) + 1j*randn(16,1); ...

4 years ago | 0

| accepted

Answered
how to make a random t-distribution sample?
Use the trnd function.

4 years ago | 0

Answered
Cannot get the plot to work
Subscript ‘maxROC’ — maxROC(i)=Palt/W-(sqrt(2*W))/(sqrt(altrho*S)*CL32OVCDmax); The plot then appears. The problem is that...

4 years ago | 0

| accepted

Answered
How do I extract the Datetime array from the CSV ?
The readtable funciton imports it as a datetime array — T1 = readtable('https://www.mathworks.com/matlabcentral/answers/upload...

4 years ago | 1

| accepted

Answered
Unable to plot 3D graph
The ismatrix function wil return true for a vector and for a 2D matrix. It returns false for arrays with more than 2 dimensions...

4 years ago | 0

Answered
How to plot 2d sector at a height using surf command?
Try something like this — a = linspace(0, 50); % Angle Vector r = 40; ...

4 years ago | 0

| accepted

Answered
Emg Signal analysis, Mean value filter Threshold analysis
@Lisa — I looked at the data, and I have no idea what you want to do with it. I also have no idea what the second column of ‘da...

4 years ago | 0

| accepted

Answered
I can't use installed toolbox functions
See if running these from a script or the Command Window corrects that — restoredefaultpath rehash toolboxcache If you are ...

4 years ago | 6

| accepted

Answered
How to find the valley of a PPG signal? It is getting confused with the dicrotic notch
It would help to have the data, existing code, (and a more thorough description of the desired result). In some instances, it...

4 years ago | 1

| accepted

Answered
Is there a way to get shaded error regions on a scatter plot?
It would help to have the data. Try something like this — x = linspace(0, 2*pi, 50); y = sin(x) + 0.5; err = rand(size(x)...

4 years ago | 1

| accepted

Answered
Take UTC time data from excel, plot in MATlab
I have no idea what the problem is, however if time in‘HH:mm:ss’ format in Excel is being imported as decimal numbers in MATLAB,...

4 years ago | 0

Answered
How can I plot Low Pass Butterworth Filter's response graph when its input wave is square wave?
Plot it however you like. Perhaps — [z,p,k] = butter(5, 0.05); [sos,g] = zp2sos(z,p,k); t = linspace(0, 10, 1E+3); s =...

4 years ago | 0

| accepted

Answered
Find x and y cordinates and t for z=0
Without knowing more, try something like this — x = x(:); y = y(:); z = z(:); zidx = find(diff(sign(z))); for k = 1:numel(...

4 years ago | 0

Answered
Matlab code on How to fix the problem with this signal?
Use the detrend function — F = openfig(websave('disppertime','https://www.mathworks.com/matlabcentral/answers/uploaded_files/1...

4 years ago | 1

| accepted

Answered
Problem with legend command
This is a known problem with certain AMD graphics drivers, although it was fixed a while ago. Go to the GeForce Experience we...

4 years ago | 0

Answered
interp1 issue - resampling
Try something like this — variable1=[24.6944086885135;21.0998152063394;14.7533601994682;6.76823133654033;6.73000233602188;8.34...

4 years ago | 0

| accepted

Answered
Convert Number of Days to just a number
As it currently exists, ‘B’ is a duration. Use the days function to convert it to a double-precision number. Then, it work...

4 years ago | 0

| accepted

Answered
Plot peaks for each column in a csv then fit a curve.
There are no visible peaks in the time-domain signal. Doing the Foureir transform and finding the peaks is easy enough, howev...

4 years ago | 0

| accepted

Answered
Matlab sensing the dynamic data changes and automatically plotting
Just the code this time — data = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1175778/newdata3.cs...

4 years ago | 0

| accepted

Answered
Simple Way to Find How Far Down a Number Is
Use the find function — T1 = array2table([rand(10,3) randi([0 1], 10, 1)]) RowIdx = find(T1.Var4 == 0) . .

4 years ago | 1

| accepted

Answered
Plotting a scaler and adding a legend to graph
The ‘rollt’ value is a scalar. If you want to plot it as a funciton of ‘v’ create it a s vector with — plot(v,rollt*ones(si...

4 years ago | 0

Answered
When coding of function that shows error in yellow underline.
I have no idea what ‘f’ is, however in order to compare function outputs, it is necessary to evaluate the functions. So the c...

4 years ago | 0

Load more