Submitted

Restful Fortune Cookie

Gets a fortune cookie statement every 10 seconds and updates your cookie paper.

3 months ago | 1 download |

Submitted

Image Texture for Region Classification

Graylevel images can be segmented, characterized by their local texture.

4 months ago | 10 downloads |

Submitted

NASA Earthshots Image Getter

Demonstrates how to download NASA Earthshots data with RESTful get.

4 months ago | 2 downloads |

Submitted

Excel Macro Example: Sun Rise, Set, Transit, Twilight

to demonstrate writing inputs and reading outputs from an xlsm spreadsheet

7 months ago | 1 download |

Answered

Plotting stacked graphs with diff x-axis together without any gap

I have an example here: https://www.mathworks.com/matlabcentral/fileexchange/70172-space-weather-data-solar-flux-10-7-cm

Plotting stacked graphs with diff x-axis together without any gap

I have an example here: https://www.mathworks.com/matlabcentral/fileexchange/70172-space-weather-data-solar-flux-10-7-cm

8 months ago | 0

| accepted

Answered

How to convert euler angle(roll pitch yaw) to position(x,y,z)

Position is a separate measurement from roll, pitch, yaw. Position is the location of the entity, such as an aircraft. Typical...

How to convert euler angle(roll pitch yaw) to position(x,y,z)

Position is a separate measurement from roll, pitch, yaw. Position is the location of the entity, such as an aircraft. Typical...

8 months ago | 0

Answered

How to write a function for a certain number of random numbers

If the numbers are supposed to be uniformly distributed, then they are between 0 and 1. So just linearly scale the value 0 to th...

How to write a function for a certain number of random numbers

If the numbers are supposed to be uniformly distributed, then they are between 0 and 1. So just linearly scale the value 0 to th...

8 months ago | 0

Answered

Hurst exponent in matlab

Here's one way, but you'll have to change it to have pixels as length dimensions: %% *fractalDimension* %% *definition* funct...

Hurst exponent in matlab

Here's one way, but you'll have to change it to have pixels as length dimensions: %% *fractalDimension* %% *definition* funct...

9 months ago | 1

| accepted

Answered

Initializing multidimensional array and dynamic expansion

If you know the size you want: A = zeros(nrow,ncol); or A = zeros(nrow, ncol1, ncol2,ncol3); etc. Can also initialize to a...

Initializing multidimensional array and dynamic expansion

If you know the size you want: A = zeros(nrow,ncol); or A = zeros(nrow, ncol1, ncol2,ncol3); etc. Can also initialize to a...

9 months ago | 1

Answered

how to find index of each occurrence of my pattern in a file

This solution will find the lines that contain the whole phrase. The example illustrates how to consider or not consider the cas...

how to find index of each occurrence of my pattern in a file

This solution will find the lines that contain the whole phrase. The example illustrates how to consider or not consider the cas...

9 months ago | 0

Question

How can uicontrol be used to make an editable dropdown (eg combobox) control?

I'd like to use the uicontrol of matlab and its arguments rather than the uidropdown. But I want the uidropdown functionality o...

9 months ago | 2 answers | 0

Answered

How to reverse the order of words in string

There's undoubetly better solutions, but: strtrim(strrep(cell2mat([flipud(split('Hello. I. am. Here.'))']),'.','. '))

How to reverse the order of words in string

There's undoubetly better solutions, but: strtrim(strrep(cell2mat([flipud(split('Hello. I. am. Here.'))']),'.','. '))

9 months ago | 1

| accepted

Answered

How to change interval unit of x axis

Here's one way You can do shape downsampling - reshape then sum the lines. I made some data by digitizing yoour plot. It's att...

How to change interval unit of x axis

Here's one way You can do shape downsampling - reshape then sum the lines. I made some data by digitizing yoour plot. It's att...

9 months ago | 0

| accepted

Answered

Loading multiple images, taking mean of them and subtracting background

change the .png for whatever file extension you are using. Are your image greyscale? If not, it might not make sense to backg...

Loading multiple images, taking mean of them and subtracting background

change the .png for whatever file extension you are using. Are your image greyscale? If not, it might not make sense to backg...

9 months ago | 0

Answered

Alternating up and down in my script to find path through 'maze'

Try this algorithm: Goal:to assign a label to each connected track of 1's on a background of 0's. Procedure: Scan image left t...

Alternating up and down in my script to find path through 'maze'

Try this algorithm: Goal:to assign a label to each connected track of 1's on a background of 0's. Procedure: Scan image left t...

9 months ago | 0

| accepted

Submitted

Asteroid, Baseball, etc. (obj mesh) Projected Surface Area

Calculate the projected area into wind axes for an obj (wavefront) that is a convex hull.

9 months ago | 4 downloads |

Answered

How to filter data by date?

My suggestion is to convert all your times to an new variable of time in matlab's datenum format. A datenum is the number of da...

How to filter data by date?

My suggestion is to convert all your times to an new variable of time in matlab's datenum format. A datenum is the number of da...

9 months ago | 0

Answered

Plotting a smooth curve

First, I added a header to the xlsx file so readtable can be used properly. myData = readtable('Data_help.xlsx'); figure() pl...

Plotting a smooth curve

First, I added a header to the xlsx file so readtable can be used properly. myData = readtable('Data_help.xlsx'); figure() pl...

9 months ago | 1

| accepted

Answered

Errors with my code

You redefined y to zero it out and at a different dimension than t. Also some typos in the annotation. T1=[0:0.001:2]; Y1=(-1...

Errors with my code

You redefined y to zero it out and at a different dimension than t. Also some typos in the annotation. T1=[0:0.001:2]; Y1=(-1...

9 months ago | 0

Answered

Fourrier transform on image

Here's an example - the grid of features is space every 20 meters, the frequency found at 0.05/m corresponds to the frequency of...

Fourrier transform on image

Here's an example - the grid of features is space every 20 meters, the frequency found at 0.05/m corresponds to the frequency of...

9 months ago | 0

Answered

Axes after 2D fft

Some great online references are in the matlab code. Whenever I post links at the top of an answer, the answer gets flagged as ...

Axes after 2D fft

Some great online references are in the matlab code. Whenever I post links at the top of an answer, the answer gets flagged as ...

9 months ago | 0

Answered

flip an array with the use of vectors

a=[1 7 5 9 3 2 4 1]; a(3:6) = fliplr(a(3:6));

flip an array with the use of vectors

a=[1 7 5 9 3 2 4 1]; a(3:6) = fliplr(a(3:6));

9 months ago | 0

Answered

readmatrix with numbers and text from .csv file

The problem is your last line has 5 columns. This seems to do what you're asking, and hopefully will be enough to get you start...

readmatrix with numbers and text from .csv file

The problem is your last line has 5 columns. This seems to do what you're asking, and hopefully will be enough to get you start...

9 months ago | 0

| accepted

Answered

How do I get only the HR out of this .csv

If you post the file, or at least the first 20 lines or so, it would be easier to say which command is best to use. Generally, ...

How do I get only the HR out of this .csv

If you post the file, or at least the first 20 lines or so, it would be easier to say which command is best to use. Generally, ...

9 months ago | 0

Solved

Sum of the Matrix Elements

Add up all the elements in a NxM matrix where N signifies the number of the rows and M signifies the number of the columns. E...

9 months ago

Solved

Convert a vector into a number

This is a sub problem related to this problem: <http://www.mathworks.com/matlabcentral/cody/problems/621-cryptomath-addition>...

9 months ago

Solved

Say something funny

Say something funny, or not. Your solution will be (fully automatically and objectively) scored based on how clever or funny ...

9 months ago

Solved

Find the hypotenuse

Given a and b (the two sides of a right-triangle), find c, the hypotenuse.

9 months ago

Solved

Unit Matrix

Given n, you should return an n-by-n unit matrix. Example: If input is n=2 then A = [ 1 0 0 1 ] If input ...

9 months ago