Sebastian Holmqvist - MATLAB Central
photo

Sebastian Holmqvist


Chalmers University of Technology

Actif depuis 2012

Followers: 0   Following: 0

Message

Statistiques

All
MATLAB AnswersCodyFrom 04/12 to 03/25Use left and right arrows to move selectionFrom 04/12Use left and right arrows to move left selectionTo 03/25Use left and right arrows to move right selectionUse TAB to select grip buttons or left and right arrows to change selection100%
MATLAB Answers

9 Questions
14 Réponses

Cody

0 Problèmes
15 Solutions

RANG
1 718
of 297 503

RÉPUTATION
39

CONTRIBUTIONS
9 Questions
14 Réponses

ACCEPTATION DE VOS RÉPONSES
66.67%

VOTES REÇUS
10

RANG
 of 20 449

RÉPUTATION
N/A

CLASSEMENT MOYEN
0.00

CONTRIBUTIONS
0 Fichier

TÉLÉCHARGEMENTS
0

ALL TIME TÉLÉCHARGEMENTS
0

RANG
28 478
of 159 017

CONTRIBUTIONS
0 Problèmes
15 Solutions

SCORE
160

NOMBRE DE BADGES
1

CONTRIBUTIONS
0 Publications

CONTRIBUTIONS
0 Public Chaîne

CLASSEMENT MOYEN

CONTRIBUTIONS
0 Point fort

NOMBRE MOYEN DE LIKES

  • First Review
  • Thankful Level 3
  • Knowledgeable Level 2
  • First Answer
  • Solver

Afficher les badges

Feeds

Afficher par

Réponse apportée
Possible to vectorize xcorr?
After some time, I realized that x is the same throughout all calculations, which means that I can pre-calculate both it's FFT a...

presque 12 ans il y a | 0

Question


Possible to vectorize xcorr?
Greetings. Currently my workstation can't keep up when I attempt to calculate the cross correlation for very long signals. ...

presque 12 ans il y a | 1 réponse | 0

1

réponse

Question


Extreme gain for low pass filter
% Filter constants Wp = 5e3*2*pi; Ws = 9.5e3*2*pi; Rp = 2; Rs = 45; % Butterworth lowest order [n,Wn] = ...

plus de 12 ans il y a | 1 réponse | 0

1

réponse

Question


Arduino Run on Target Hardware + Stateflow
Hi! I'm trying to setup Arduino through Simulink on R2012a and use Stateflow. But when I try to deploy (Run on Target) it com...

plus de 12 ans il y a | 2 réponses | 0

2

réponses

A résolu


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

plus de 12 ans il y a

A résolu


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

plus de 12 ans il y a

A résolu


Weighted average
Given two lists of numbers, determine the weighted average. Example [1 2 3] and [10 15 20] should result in 33.333...

plus de 12 ans il y a

A résolu


Pizza!
Given a circular pizza with radius _z_ and thickness _a_, return the pizza's volume. [ _z_ is first input argument.] Non-scor...

plus de 12 ans il y a

A résolu


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

plus de 12 ans il y a

A résolu


Determine whether a vector is monotonically increasing
Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return f...

plus de 12 ans il y a

A résolu


Is my wife right?
Regardless of input, output the string 'yes'.

plus de 12 ans il y a

A résolu


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

plus de 12 ans il y a

A résolu


Column Removal
Remove the nth column from input matrix A and return the resulting matrix in output B. So if A = [1 2 3; 4 5 6]; and ...

plus de 12 ans il y a

A résolu


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...

plus de 12 ans il y a

A résolu


Add two numbers
Given a and b, return the sum a+b in c.

plus de 12 ans il y a

A résolu


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

plus de 12 ans il y a

A résolu


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

plus de 12 ans il y a

A résolu


Make the vector [1 2 3 4 5 6 7 8 9 10]
In MATLAB, you create a vector by enclosing the elements in square brackets like so: x = [1 2 3 4] Commas are optional, s...

plus de 12 ans il y a

Réponse apportée
How can I get in code the path of currently running deployed matlab function
_pwd_ also returns the current path. This is what I use in my GUIs.

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
The thickness of border lines on a plot (different than that of the inner lines)
I found that the figure automatically chooses the renderer ZBuffer, which is the cause of your display issues. I can't answer as...

plus de 12 ans il y a | 0

Réponse apportée
How to tell Matlab to ignore NaNs in calculations/loops
data_vec = [1 2 3 4 5 NaN 7 8 NaN 10 12]; data_vec(~isnan(data_vec)) ans = 1 2 3 4 5 7 8 10 12

plus de 12 ans il y a | 0

Réponse apportée
How to calculate hash sum of a string (using java)?
*Solution:* The trick here is to input an ascii representation of your string (hence, the double(string) call). MessageDigest...

plus de 12 ans il y a | 3

| A accepté

Question


How to calculate hash sum of a string (using java)?
Couldn't find this very easily (without including a bunch of c-mex files etc) so I thought I'd post it here for future reference...

plus de 12 ans il y a | 2 réponses | 0

2

réponses

Question


Count the number of trend changes in a vector.
I need to count the number of times a vector increases/decreases. E.g vec = [0 0 1 2 4 4 2 0 1 2 3] diff(vec) ans ...

plus de 12 ans il y a | 3 réponses | 0

3

réponses

Question


XML parsing vs regexp
I'm trying to extract values from two elements in a pretty large xml. I'm stuck between doing it "the right way" and doing it "t...

plus de 12 ans il y a | 1 réponse | 1

1

réponse

Réponse apportée
Eigenvalue calculation in MATLAB
From <http://www.mathworks.se/help/techdoc/ref/eig.html> [V,D] = eig(A,B,flag) specifies the algorithm used to compute eigen...

plus de 12 ans il y a | 2

Réponse apportée
Having trouble compiling uigetfile function
It always works for me. It could be that you only call filename = uigetfile('*.xls','Select your file'); Instead, you sho...

plus de 12 ans il y a | 2

| A accepté

Réponse apportée
Changing values in 2D array using logical operators
aa = rand(10, 10); aa(aa < 0.5) = NaN;

plus de 12 ans il y a | 0

| A accepté

Réponse apportée
Count the number of trend changes in a vector.
I think I've cracked it. My logic follows from; # I wish to count the number of first derivative changes. # I wish to exclud...

plus de 12 ans il y a | 0

Réponse apportée
How can I Read or get the Values one by one from matrix variable or array?
z_elem = nnz(nnz == 0) nz_elem = nnz(nnz ~= 0) Then do your calculations on each.

plus de 12 ans il y a | 0

Charger plus