A résolu

QWERTY coordinates

Given a lowercase letter or a digit as input, return the row where that letter appears on a <http://en.wikipedia.org/wiki/Keyboa...

environ 6 ans il y a

Réponse apportée

How to seperate the scattered population in three broad groups

If you want to manually decide where the partition line is, then this is more or less how you would go about recreating your Exc...

How to seperate the scattered population in three broad groups

If you want to manually decide where the partition line is, then this is more or less how you would go about recreating your Exc...

environ 6 ans il y a | 0

| A accepté

Réponse apportée

How can I calculate the acceleration if I know the time and the displacement ?

Consider the following example: t = 1:10; h = t.^2; dt = diff(t) dh = diff(h) % v - velocity v = dh...

How can I calculate the acceleration if I know the time and the displacement ?

Consider the following example: t = 1:10; h = t.^2; dt = diff(t) dh = diff(h) % v - velocity v = dh...

environ 6 ans il y a | 4

| A accepté

Réponse apportée

could anyone help me to overcome the error in the following code

I believe that the 5ht line of code should be changed to (the variable without the -s): this_seed = list_of_rng_seed(rng_us...

could anyone help me to overcome the error in the following code

I believe that the 5ht line of code should be changed to (the variable without the -s): this_seed = list_of_rng_seed(rng_us...

environ 6 ans il y a | 0

Réponse apportée

how to implement a moving window with a condition ?

Consider the following code: % FAKE DATA x = rand(100,1) % PARAMETERS window = 50 threshold = 0....

how to implement a moving window with a condition ?

Consider the following code: % FAKE DATA x = rand(100,1) % PARAMETERS window = 50 threshold = 0....

environ 6 ans il y a | 0

Réponse apportée

Fill std error for one curve

Look at you dy. I think you've changed it to *dy = y*. This is when you get a weird shape. See line 80: <</matlabcentral/a...

Fill std error for one curve

Look at you dy. I think you've changed it to *dy = y*. This is when you get a weird shape. See line 80: <</matlabcentral/a...

environ 6 ans il y a | 0

Réponse apportée

Find the first and last elements of consecutive values in a vector

As to what you put as an answer, it can be coded this way: CI_f = [CI{1}(1) CI{2}(1)] CI_l = [CI{1}(end) CI{2}(end)] ...

Find the first and last elements of consecutive values in a vector

As to what you put as an answer, it can be coded this way: CI_f = [CI{1}(1) CI{2}(1)] CI_l = [CI{1}(end) CI{2}(end)] ...

environ 6 ans il y a | 0

Réponse apportée

How to plot point-wise figures from existing one.

Consider the following example: % Data w = -1:0.02:1; z = (-w.^2)+10; % Condition - logical vector wAtZzero = w...

How to plot point-wise figures from existing one.

Consider the following example: % Data w = -1:0.02:1; z = (-w.^2)+10; % Condition - logical vector wAtZzero = w...

environ 6 ans il y a | 0

Réponse apportée

please ,I need to create function calculate the area of three different circles radius? any one can solve this issue is highly appreciated.

Literally, have a look at how to define functions in Matlab - this page has many simple examples to follow: * <https://uk.mat...

please ,I need to create function calculate the area of three different circles radius? any one can solve this issue is highly appreciated.

Literally, have a look at how to define functions in Matlab - this page has many simple examples to follow: * <https://uk.mat...

environ 6 ans il y a | 0

Réponse apportée

how to convert hourly average into monthly??

Use the logical vectors for conditioning your data as in the example below. You'll need some loops to go over every hour: %...

how to convert hourly average into monthly??

Use the logical vectors for conditioning your data as in the example below. You'll need some loops to go over every hour: %...

environ 6 ans il y a | 1

| A accepté

Réponse apportée

randomly data distribution with specific distribution

This should get you close enough: % Based on: % https://stackoverflow.com/questions/10364575/normalization-in-variable-r...

randomly data distribution with specific distribution

This should get you close enough: % Based on: % https://stackoverflow.com/questions/10364575/normalization-in-variable-r...

environ 6 ans il y a | 0

| A accepté

Réponse apportée

How do I polar plot an array from an imported file in matlab?

Would this be in line with what you're trying to achieve? % Example data % 4 columns of random of values between 650 and...

How do I polar plot an array from an imported file in matlab?

Would this be in line with what you're trying to achieve? % Example data % 4 columns of random of values between 650 and...

environ 6 ans il y a | 0

| A accepté

Question

How to add 'Description' to '.jpeg'?

Once I've generated a plot and saved it as *.jpeg*, I'd like to add a description to it i.e.: * 'This plot was created with s...

environ 6 ans il y a | 1 réponse | 0

A résolu

Find the alphabetic word product

If the input string s is a word like 'hello', then the output word product p is a number based on the correspondence a=1, b=2, ....

environ 6 ans il y a

A résolu

Remove all the consonants

Remove all the consonants in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill'; Output s2 is 'a ...

environ 6 ans il y a

Réponse apportée

How create a image from a csv file

If by image you meant i.e. * <https://uk.mathworks.com/help/matlab/ref/contour.html Contour plot> - you can't really do it as...

How create a image from a csv file

If by image you meant i.e. * <https://uk.mathworks.com/help/matlab/ref/contour.html Contour plot> - you can't really do it as...

environ 6 ans il y a | 0

Réponse apportée

how to save the matrix after each iteration ?

output = 384; iterations = 768; % preallocate the matrix mResults = zeros(output, iterations); for...

how to save the matrix after each iteration ?

output = 384; iterations = 768; % preallocate the matrix mResults = zeros(output, iterations); for...

environ 6 ans il y a | 1

Réponse apportée

Good day. Please can someone explain dimension in simple terms and how it applies to arrays. Also, what do singleton and non-singleton dimension mean and do they affect some builtin functions such as sum.

I think you've explained it yourself. It's how Matlab works (opposite to your expectation unfortunately). * dimension = 1 -...

Good day. Please can someone explain dimension in simple terms and how it applies to arrays. Also, what do singleton and non-singleton dimension mean and do they affect some builtin functions such as sum.

I think you've explained it yourself. It's how Matlab works (opposite to your expectation unfortunately). * dimension = 1 -...

environ 6 ans il y a | 1

Réponse apportée

writing into excel sheets while keeping the leading zeros

Following the: <https://uk.mathworks.com/matlabcentral/answers/93656-why-is-the-leading-zero-dropped-when-i-write-a-string-of...

writing into excel sheets while keeping the leading zeros

Following the: <https://uk.mathworks.com/matlabcentral/answers/93656-why-is-the-leading-zero-dropped-when-i-write-a-string-of...

environ 6 ans il y a | 0

| A accepté

Réponse apportée

wat is function of scale and size?

size (x,3) calculates the depth of a 3D array. Function *size* calculate the dimensions of the array. The additional paramete...

wat is function of scale and size?

size (x,3) calculates the depth of a 3D array. Function *size* calculate the dimensions of the array. The additional paramete...

environ 6 ans il y a | 0

Réponse apportée

How can I change the colour of this highlight feature? As you can see, it's too bright for white text.

<</matlabcentral/answers/uploaded_files/108398/1.PNG>>

How can I change the colour of this highlight feature? As you can see, it's too bright for white text.

<</matlabcentral/answers/uploaded_files/108398/1.PNG>>

environ 6 ans il y a | 0

| A accepté

Réponse apportée

Create formatted file using regular expressions

Quick fix for you would be to use Matlab's in-built *Import Tool* and generate the function that you can later use to import you...

Create formatted file using regular expressions

Quick fix for you would be to use Matlab's in-built *Import Tool* and generate the function that you can later use to import you...

environ 6 ans il y a | 0

Réponse apportée

how to calculate Minimunm, maximum and average values using the script

% Step 1: IMPORT DATA fileName = 'Log_U0006387_160311_740d0.csv'; data = readtable(fileName) % STEP 2: extrac...

how to calculate Minimunm, maximum and average values using the script

% Step 1: IMPORT DATA fileName = 'Log_U0006387_160311_740d0.csv'; data = readtable(fileName) % STEP 2: extrac...

environ 6 ans il y a | 0

| A accepté

Réponse apportée

How do I check for updates using MATLAB?

My lazy eye was looking for it in the _Apps_ tab so I'm attaching a screenshot for a similarly confused people: <</matlabcent...

How do I check for updates using MATLAB?

My lazy eye was looking for it in the _Apps_ tab so I'm attaching a screenshot for a similarly confused people: <</matlabcent...

environ 6 ans il y a | 1

Réponse apportée

how add intensity/frequency to the scatter plot

Consider the code below but also check the documentation for: * <https://uk.mathworks.com/help/matlab/ref/scatter.html Scatte...

how add intensity/frequency to the scatter plot

Consider the code below but also check the documentation for: * <https://uk.mathworks.com/help/matlab/ref/scatter.html Scatte...

environ 6 ans il y a | 0

| A accepté

A résolu

Cell joiner

You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

environ 6 ans il y a

A résolu

Pascal's Triangle

Given an integer n >= 0, generate the length n+1 row vector representing the n-th row of <http://en.wikipedia.org/wiki/Pascals_t...

environ 6 ans il y a

A résolu

Sort a list of complex numbers based on far they are from the origin.

Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

environ 6 ans il y a

Réponse apportée

Write multi-line strings into text file?

You're missing the format parameter of the 'fprintf' function: fid = fopen('strTestOtpt.inp', 'wt'); formatSpec = '%s\n'...

Write multi-line strings into text file?

You're missing the format parameter of the 'fprintf' function: fid = fopen('strTestOtpt.inp', 'wt'); formatSpec = '%s\n'...

environ 6 ans il y a | 1

Réponse apportée

How to generate specific number bar graph

Hello Ravi, If you just want to select a specific bar out of your data set, then consider the code below. But you really need...

How to generate specific number bar graph

Hello Ravi, If you just want to select a specific bar out of your data set, then consider the code below. But you really need...

environ 6 ans il y a | 0

| A accepté