A répondu
Interpolating Data in 2D Mesh or Surf Plot?
@Sees, [edit: I hit Submit belfore I was done] You say you want to interpolate z values at the points where z=0, and you want...

environ 2 mois il y a | 0

A répondu
How to use pwelch for PSD?
@Tran, See my recent reply to @vo, here, regarding the use of Welch's method for EEG analysis. You can get identical results ...

environ 2 mois il y a | 0

| A accepté

A répondu
PSD with Alpha(8-13HZ)
@vo, [edit: replace 8 with flo and 12 with fhi in the code to compute vector fA.] The data file you gave is a structure. The ...

environ 2 mois il y a | 0

A répondu
Least Squares method code
@A, [edit: I adjusted the fprintf() lines to produce better output.] X = [0.8; 1.4; 2.7; 3.8; 4.8; 4.9]; Y = [0.69; 1.0; 2...

environ 2 mois il y a | 0

A répondu
Get envelope of a cyclic curve
@Nikesh Maharjan, Use convhull() to find the smallest convex shape that wraps around the points. See code below. data=xlsread...

environ 2 mois il y a | 1

| A accepté

A répondu
Find the max psd
@vo, [This answer is a copy of my comment above. I intended my comment to be answer, but I posted it in the wrong place.] I a...

environ 2 mois il y a | 0

| A accepté

A répondu
How to catalogue a dataset during different stages of data filtering?
@Carter Hoffman, Here is an example. data1=randn(1000,5); %1000x5 array of random numbers size1=data1(:,5); ...

environ 2 mois il y a | 0

A répondu
how to ues t_tide
@ke, the t_tide package includes may functions including t_tide.m. The code for t_tide.m has extensive comments describing its ...

environ 2 mois il y a | 0

| A accepté

A répondu
How to plot the diffusion curve for different timesteps?
@Emily, I assume this is 1D diffusion, and you want to plot concentration versus position at t=0, t=500, t=1000, ... Before y...

environ 2 mois il y a | 0

| A accepté

A répondu
third-order Newton’s interpolating polynomial
@ِAbo Alqahtani, Here is the start of a solution. You will learn a lot more about Matlab by finishing it yourself. Good luck...

environ 2 mois il y a | 0

A répondu
Extract of data for the last time step
@University Glasgow, Please post the simplest possible code example that illustrates the issue you have. When you include code, ...

environ 2 mois il y a | 0

| A accepté

A répondu
How to plot a cylinder from a specified axis
@Telema Harry, r = 20; p0=[25,25,0]; %base location [X,Y,Z] = cylinder(r); h = 80; Z = Z*h; X=X+p0(1); Y=Y+p0(2); Z=Z+p0(...

environ 2 mois il y a | 0

| A accepté

A répondu
How to change the visualization from lines to a patch
@Amanda, To help me create the maze, I made the image below. It could be helpful to future maze makers. Then I wrote a main ...

environ 2 mois il y a | 0

| A accepté

A répondu
Parameters seem to not be optimizing in fmincon
@Joshua Scott, Here is what I understand from reading your code. Correct me if I am wrong. Function Posterior3(data, idx, para...

environ 2 mois il y a | 0

A répondu
How do you plot a wave rose/polarhistogram?
@Whale_Shark, Here is a script that plots a regular histogram of wind direction and the same data in polar form. Data is from ...

2 mois il y a | 0

A répondu
Creating a figure with multiple raincloud plots with the same y-axis
@Eleonora Montagnani, It would help if you woudl provide a drawing or other image of what you want. It would also help if you ...

2 mois il y a | 0

A répondu
What's the simplest way to determine the mass of a sphere from a plot of its density varying in r?
@Alain Vella, I agree with @David Hill, except you want to multiply the density at each value of r by 4*pi*r^2*dr, then add the...

2 mois il y a | 0

A répondu
How to know what pixels where compressed and not compressed in a image?
@Hudson Romualdo, It is not true that specific pixels are compressed or not compressed whn an image is compressed. The JPEG al...

2 mois il y a | 0

| A accepté

A répondu
How to pick group sum values from an array
@Poorna Durga Geesupalli, [edit: correct a typo in one of the comment lines in the code, fix indenting, add comments] Xs='1111...

2 mois il y a | 0

| A accepté

A répondu
Hi when I plot I always get the same color for both bar. They are from different classes. How can I make the color different? Thank you.
@sam, y=[100 90 70]; b=bar(y,'FaceColor','flat'); %Next line: Each row is the colorspec for one bar b.CData=[1,0,0;0,1,0;0,0...

2 mois il y a | 0

| A accepté

A répondu
HOW CAN I PLOT A CURVE OVER THE SPECTROGRAM OF A LOGARITHMIC CHIRP
@raj, YOu can follow the spectrogram command with "hold on" and then make additinal plots on the same image.

2 mois il y a | 0

A répondu
Verify the Divergence theorem in MATLAB
@Camstien I now think there was a mistake in my earlier answer. Previously I said the integral for the top surface can be writt...

2 mois il y a | 0

A répondu
I'm still a beginner on MATLAB and I'm trying to write a real-time code to implement a DSP system, but an error keeps showing up (Array Indices must be positive or integers)
@Laura, Look at the loop where the error occurs: for i=0:(2*length(n)-1); y1(1,i+1)=h1_mirror(1,(end-i):1:end)*xs(1,1:i+1...

2 mois il y a | 1

| A accepté

A répondu
Set Tolerance Distance when Interpolating with Nearest Value
@Ahmet Hakan UYANIK, I assume you know the heights at scattered points, and you want to interpolate the heights to points on a ...

2 mois il y a | 0

A répondu
I'm struggling to find a way to filter the ECG signal and make modulation for the other signals
@Yousef Ahmed, please make an attempt. Then others will assist. For all of these, the carrier wave is fc=40 kHz. Therefore ...

2 mois il y a | 0

A répondu
Creating variables in a foor loop using num2str
@Jiri Kovar, [edit: change "v" to "s" in my description, to match the code] N=50; for i=10:10:N, s.(strcat('a',num2str(i)))=i...

2 mois il y a | 0

| A accepté

A répondu
Matrix size and scalar problem using fmincon
@Paul AGAMENNONE, It appears that the value Rs returned by parameterfun() is a vector (or array). Rs is a vector because funct...

2 mois il y a | 1

| A accepté

A répondu
Converting equations to first order system for ODE45
@Simon Aldworth, I think you are corect tht a state vector with six elements, as you have defined above, will suffice. If we c...

2 mois il y a | 1

A répondu
Help me plot grafic pls.
@ebru, Yoiur foumula includes an infinite sum. Do a finite sum and see if it converges after 10 or 20 or 30 terms. When I do i...

2 mois il y a | 0

A répondu
Add columns to excel file
@Truc, Code below reads the data from the .xls file and adds channels III, aVR, aVL, avF. %% Read data from xls file. filenam...

2 mois il y a | 0

Charger plus