Answered
How to draw a pie chart in a map?
I downloaded the package and then modified the m_ellipse.m program in that package to create a new m_piechart.m that produces th...

6 years ago | 0

| accepted

Answered
how to find the sum of rows in an array, that fit a condition?
Isn't it obvious since each row has a value that is greater than 50 that the cross sum of terms in the row will be greater than ...

6 years ago | 0

Answered
How to find average heart beat using fast Fourier transform function
I'm going to give a solution that says your 3000 data points represent a timeseries of 6 seconds. The code can be modified if t...

6 years ago | 0

| accepted

Answered
How to overlay a binary mask over an rgb image?
Here's some code: img = imread('diplo000000-L.png'); mask = imread('sdfsd.png'); mask(:,:,1) = 0; img(mask>0) = 0; image(im...

6 years ago | 1

| accepted

Answered
How to get a script to only give me the number of elements less than 2?
Here are random numbers as an example. It plots all the values in blue, finds indices for values less than 2, and plots those va...

6 years ago | 0

Answered
Plot the orbit of a satellite
Edited 10/28/2021 - Thanks to a bug found by @Frank Epstein in the interpretation of Mdot - this is updated in TLE2OrbitalElemen...

6 years ago | 10

| accepted

Answered
About FFT of sin(x) / x , how to plot ?
Hi, I was able to get a plot by removing the discontinuity in the signal. Is this what you were expecting? % show the " y=sin(...

6 years ago | 1

| accepted

Answered
Extract daily time series NetCDF to specific location
Here's a solution: clc close all clear all filename = ('precip.2019.nc'); info = ncinfo(filename); % Variable 1 lat = d...

6 years ago | 1

Answered
How to sort my signal based on the frequency domain? low to high
Here's a suggestion for enhancing the spectogram to pull out signals. More information about the feature signals would be helpf...

6 years ago | 1

| accepted

Answered
Extraction NetCDF time series to point
Hi. This is a completely different file format. The data are on a finer spatial grid, but there are only 365 'times'. The tim...

6 years ago | 0

Answered
How can assign a color for two member of a matrix?
So the new constraints are: change the background color from grayscale to single tone color scale arbitrary set of bubbles to ...

6 years ago | 1

Answered
source code for cap modulation
There's a download for that here: http://en.pudn.com/Download/item/id/3152000.html

6 years ago | 0

Answered
Describing my graph in terms of a fourier series.
If I understand your question, it sounds like you want to find the underlying signal frequencies of your data. clear variables ...

6 years ago | 0

Answered
RE: Extraction of NetCDF to certain point and location
Here's a solution: clc close all clear all % ftp://ftp.cdc.noaa.gov/Datasets/cmap/std/precip.mon.mean.nc filename = ('pre...

6 years ago | 0

Answered
Extraction NetCDF time series to point
Here's a solution that is workable: clc close all clear all % ftp://ftp.cdc.noaa.gov/Datasets/cmap/std/precip.mon.mean.nc ...

6 years ago | 0

| accepted

Answered
Read row of data from excel file and step/iterate through each row when program is looped
Probably not the best way, but it works: irow = 1; Data = xlsread('fakedata.xlsx','Sheet1',['A' num2str(irow) ':B' num2str(iro...

6 years ago | 1

| accepted

Answered
Can anyone help me to write a MATLAB script like the one attached?
Yes. It's not exact, and the arrow is kludged but I hope it is good enough: clc clear all close all fig = figure('color',...

6 years ago | 2

| accepted

Answered
Selecting rows based on two criteria
Hi, here's a solution that makes this assumption - your columns Pump On and Pump Off are really Pump1 and Pump2. Otherwise, I c...

6 years ago | 0

| accepted

Answered
How can assign a color for two member of a matrix?
There are a couple of different ways to do it. But I really like just making a false color composite over making a pseudocolor....

6 years ago | 0

| accepted

Answered
How to create static vertical line in plotting window
This example shows one way. If you don't want the tickmarks on the vertical line, you can remove them. clc close all clear a...

6 years ago | 1

| accepted

Answered
Remove legend entries from Figure window
Here's an example: clc close all clear all % fake data f = -pi:0.01:pi; y1 = sin(2.*f + pi/3) + 0.05*rand(size(f)); y2 ...

6 years ago | 2

Answered
Problem with text in legend of figure file generated through plot command
Here's an example: clc close all clear all % fake data f = -pi:0.01:pi; y1 = sin(2.*f + pi/3) + 0.05*rand(size(f)); y2 ...

6 years ago | 0

Answered
trying to make many subjects the same color in graph
With some fake data, this works: % fake data f = -pi:0.01:pi; allspectrums_cortex_young = sin(2.*f + pi/3) + 0.05*rand(size(f...

6 years ago | 0

| accepted

Answered
How to generate a point cloud based on the set of data I have?
I don't have that Computer Vision System Toolbox, but try this: l=110; x = [3,3,3,3,3,3,3,3]; y = [-l*sind(0),-l*sind(1),-l*s...

6 years ago | 0

| accepted

Answered
How can I convert an image to polar coordinates ?
I'm not really sure what you're trying to accomplish, but if it is to have a set of 2D arrays that represent the distance from t...

6 years ago | 0

Answered
How to perform shape factor analysis (circularity) on list of x, y coordinates
For the final part of your question, 'Alternatively, are there other methods in image processing that are generally used to anal...

6 years ago | 0

Answered
How to read multiple text.jpg images in a loop?
It might be easier if you use wildcard in the dir function, then the .db or .. won't be in the list of files in TrainFiles. Tra...

6 years ago | 0

Answered
how to make a roc curve on matlab
I was able to run a slightly modified version with no errors. I do not know if it is doing what you want it to do. % I want to...

6 years ago | 0

| accepted

Answered
mode point of a polynomial fit of histogram
%% Question % I have a vector (1x18864) which I generated a histogram to, using the % histogram(variable,nbins) function. % ...

6 years ago | 0

Answered
How can I generate a TEC map by interpolating a 3D matrix in a .mat file?
clc close all clear all filename = 'gps_tec2hr_igs_20150317_v01.cdf'; [data, info] = cdfread(filename); latIGS = cdfrea...

6 years ago | 0

| accepted

Load more