**Statistics**

RANK**922**

of 247,183

REPUTATION**56**

CONTRIBUTIONS

**0** Questions

**19** Answers

ANSWER ACCEPTANCE **
0.00%
**

VOTES RECEIVED**6**

RANK**5,678** of 17,236

REPUTATION**179**

AVERAGE RATING**4.90**

CONTRIBUTIONS**3** Files

DOWNLOADS **95**

ALL TIME DOWNLOADS**1359**

CONTRIBUTIONS**0 Posts**

CONTRIBUTIONS**0** Public Channels

AVERAGE RATING

CONTRIBUTIONS**0** Highlights

AVERAGE NO. OF LIKES

**Content Feed**

How to call python Script in specified environment in Matlab?

Hi, please see this answer by Walter. I think pyenv() affects only python calls using the py.-prefix. But calling python via s...

1 month ago | 1

| accepted

How to recenter spatial data?

hi, maybe I didn't get it, but why not just add 180? lonW = lon + 180;

1 month ago | 0

| accepted

Precision of numbers problem (I think)

Hi Phillip, yes, it has to do with precision. ismember(phys_diffs,new_data(:,2)) % ans = % 1×7 logical array % 1 0 ...

2 months ago | 0

Mean and median at each interval

Hi data = readtable('Data.xlsx'); % read data data = data(~ismember(data.Volume,[0 1]),:); % exclude rows where volume=0 or vo...

2 months ago | 0

| accepted

Auto update row index to match the variable length

Hi you can use b(1:numel(a),k) = a if k is scalar. Best, K

2 months ago | 0

Wie kann ich einen unbekannten String in einem Array finden? | finding an unknown string in an string array

Hi Patrick wenn ich richtig verstehe möchtest Du alle strings im array finden die mit * anfangen?! Das kannst Du so machen: st...

2 months ago | 0

| accepted

String to number from array

Hi Nicle you need str2double() (or str2num()), not double(). double() gives you the UTF(?) code corresponding to the input st...

2 months ago | 1

| accepted

Why am I getting wrong outputs with this MATLAB code?

Hi, i've rewritten the code without all the hard-coded indices, which I couldn't make sense of and which made your code very ha...

3 months ago | 0

enter a string of characters and numbers, add and return the sum of the numbers in matlab, for example: 'there are two blue birds and 4 red birds on the branch'--> return 6

Hi if you only need to handle numeric type, I'd recommend regular expressions: strng = ' 2 blue birds and 4 red birds'; res_s...

3 months ago | 0

Get values of the particular line from surf plot

Hi Ramesh, the contour3() function returns the contour matrix (see help) containing x- and y-coordinates of the contour. You ca...

3 months ago | 1

| accepted

Calculate mean of matrix for specific interval

Hi Pelle, you need to index your variable DEM correctly: DEM_mean2 = mean(DEM(11:110,:)); Best, Konrad

3 months ago | 1

| accepted

Animation video from data points, giving error below

Hi Muhammad, it seems that the video you are trying to create is too large to fit into memory. You can either run the code on ...

3 months ago | 1

| accepted

could someone please tell me why my code returns complex answers while it is about room temperature ?

Hi, One quick guess: in your equation (eqn(number_of_nodes) = ...) you are raising to the power of .24, which means you are ta...

4 months ago | 0

Help reorganizing data in a table

Hi Andrew, I think unstack() is what you're looking for: T=readtable('example_sheet.xlsx'); uT = unstack(T,{'Duration' 'Ratin...

4 months ago | 0

Is it possible to extract 2 separated sections from the same table?

Hi Ruth, you can create indices into rawdata for your subjects and pilots programmatically like this: filename='RES_IAS (1).xl...

4 months ago | 0

| accepted

3D bar graph of Z with data in X Y Z array

Hi, provided that x and y are always positive integers, this may be a good start: tab = readtable('XYZ_Data.txt'); zarray = z...

4 months ago | 1

How do I plot points coming from a for loop without using vectors?

Hi, values on the x-axis are not equally spaced because on every interation you increase L by i, which itself is increased by 1...

5 months ago | 0

| accepted

How to stackplot a table?

Hi Oliver, does this code produce the plot you need? load('example.mat', 'table') figure; nvar = size(table,2)-3; t = [tabl...

5 months ago | 0

Submitted

PyColormap4Matlab

Simple Matlab and python script that import colormaps from matplotlib into Matlab.

1 year ago | 93 downloads |

Submitted

uniqueCells

Implementation of unique for ND cell arrays of mixed type. Avoids num2str and provides switches for unique rows and to treat NaN...

3 years ago | 1 download |

How to read files from sub folders in sorted order?

Hi, one solution would be to convert the time suffix to numeric and sort the numbers: d = dir('Time*'); n = {d.name}; ...

3 years ago | 0

Solved

5th Time's a Charm

Write a function that will return the input value. However, your function must fail the first four times, only functioning prope...

3 years ago

Solved

"Cody" * 5 == "CodyCodyCodyCodyCody"

*Alice*: What? *"Cody" * 5 == "CodyCodyCodyCodyCody"*? You've gotta be kidding me! *Bob*: No, I am serious! Python supports...

3 years ago

Submitted

RNG-Indices-of-Randomness

Implementation of various indices of randomness as measures of RandomNumberGeneration performance; a task assessing executive fu...

3 years ago | 1 download |

Solved

Determine if input is odd

Given the input n, return true if n is odd or false if n is even.

4 years ago

Solved

Make a checkerboard matrix

Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...

4 years ago

Solved

Select every other element of a vector

Write a function which returns every other element of the vector passed in. That is, it returns the all odd-numbered elements, s...

4 years ago

Solved

The 5th Root

Write a function to find the 5th root of a number. It sounds easy, but the typical functions are not allowed (see the test su...

4 years ago

Solved

Number of Even Elements in Fibonacci Sequence

Find how many even fibonacci numbers are available in the first d numbers. Consider the following first 14 numbers 1 1 2...

4 years ago

Solved

Triangle Numbers

Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...

4 years ago