Réponse apportée
Making Frequency vs. Time Plot from FFT using EEG Data
Sampling frequency, Fs = 2 kHz --> dt = 1/Fs Fmax = 1/2dt --> Fs/2 --> Fmax = 1 kHz The signal is sampled such that baseband ...

plus de 6 ans il y a | 0

Réponse apportée
How to convert numbers into characters other than in the range 32-127?
Because >> A = [10, 23, 90, 125, 145, 250]; B = char(A) B = ' Z}ú' >> double(' Z}ú') double(' ...

plus de 6 ans il y a | 1

Réponse apportée
Changing where divisions appear on a Matlab plot
hAx=gca; hAx.YAxisLocation='origin'; hAx.XAxisLocation='origin'; A little overkill on the number of x,y points isn't it...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Varying Font Size Within individual words
Amazing how the same or similar queries seem to come in bunches... <Answers/515556-how-do-i-change-the-appearance-of-a-tick-lab...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
skip the value in for-loop
AMENDED: Probably simplest is just a = 27; c = 11; m = 54; x(1)=2; for i=2:25 x(i) = (mod(a * x(i-1)+c ,m)); end x=x...

plus de 6 ans il y a | 0

Réponse apportée
Display mean of data on a boxchart
"??? There's a boxplot, no info on boxchart" Well, bless their little pea-pickin' hearts but TMW has done it again...introduce...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
How do I change the appearance of a tick label over a number of iterative values through a pre-exisitng tick label?
Think you can do what you want or at least a reasonable facsimile thereof w/ basic 'TeX' interpreter -- 'LaTeX' is such a pain t...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Readmartix function removes first blank row
Well, let's quit hypothesizing and just see what happens... % BB-M.xlsx has reshape(3:8,2,[]) at C2 upper left corner >> n=xls...

plus de 6 ans il y a | 0

Réponse apportée
how can i create a array of letters from a sentence
txt="Here's to ..."; % truncated for brevity of posting but contains above as string variable... Engine: t=char(txt).'; ...

plus de 6 ans il y a | 2

| A accepté

Réponse apportée
How to change a line in .txt file by importing a name, from a loop
OK, not knowing which is the anwer really wanted but apparently from above comment just concatenating the two columns in the tab...

plus de 6 ans il y a | 0

Réponse apportée
Order of elements inside sqrt/exponentiation changes ode output
Addition is mathematically associative so that x-1+mu == x+mu-1 identically but that isn't necessarily an identity in floating p...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
How to change a line in .txt file by importing a name, from a loop
OK, given a row and text to be in said row in the alternate file, that's pretty simply done--I'll also illustrate the newfangled...

plus de 6 ans il y a | 0

Réponse apportée
Forming loop to perform same action
Thres = 0.17; istrue1=((x>= 928 & x<=1139) & y>=Thres) | ... ((x>=2527 & x<=2856) & y>=Thres) | ... ((x>=4113...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
how to store even and odd strings into 2 seperate vectors using mod function
Whassup w/ this thing about alternative storage of odd/even indices all of a sudden??? <Answers/514742-how-to-separate-an-array...

plus de 6 ans il y a | 0

Réponse apportée
How to recursively add symbol in a for loop?
Don't try to catenate all with text operators; use sprintf (or possibly some of the new string class functionality that includes...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
alternative form for find(max(x))
if rand >= gamma [~,imx]=max(A(s(1),s(2),:); a=imx; else a = randi(nodes); end

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
How to seperate an array into two?
Not a good idea still unless is homework...there are any number of ways to do so; about as simple as any would be for i=2:2:num...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
I am working on a certain problem but the end result is a single value repeated for n elements.
Incorporating comments from the stream above in result...using your code and loop would look something like %%Task 1 %Assignin...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
How can I randomly select a subset of logicals?
Nmatch=20; % don't bury data in code; use variables for a variable factor isM=find(v); % population of indices that mat...

plus de 6 ans il y a | 0

Réponse apportée
FFT using excel data
0Hz is the DC component...if your signal is not zero mean, then the mean will be the DC component. To eliminate it, subtract ...

plus de 6 ans il y a | 1

Réponse apportée
how do I extract time series?
>> which time C:\ML_R2019b\toolbox\matlab\bigdata\@tall\time.m % tall method >> which day C:\ML_R2019b\toolbox\matlab\timefu...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
From nested structure to table in one line of code
Will need some additional cleanup, but the basic tranformation is as >> T=struct2table(struct2array(S)); >> T(1:10,:) ans = ...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Negative zero when writing to file
The problem is one of rounding/floating point precision. The cos(3*pi/2) is mathematically zero, indeed, but it isn't quite so ...

plus de 6 ans il y a | 1

Réponse apportée
Import files from a folder into Matlab and create a file list
d=dir('*.json'); for i=1:numel(d) vals{i} = jsondecode(fileread(d(i).name)); ...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Finding yearly average of data in a matrix
Of course there is..."grouping variables" [meanByYear,yr,yrcounts]=groupsummary(iceArea(:,2),iceArea(:,1),'mean');

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Finding full graph / minimum without an x range
Well, with such disparate magnitudes in terms, the interesting part is somewhat harder to envision...the second part goes to +in...

plus de 6 ans il y a | 0

Réponse apportée
extracting a and b beta parameters from distribution fitter app
If your save object is mybetaObject then myBetaObject.ParameterValues % both a, b or myBetaObject.a myBetaO...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
How to arrange month columns based on date code is run?
vnames=month(datetime(1,[1:12],1),'short'); % return dummy variable names containing short month names % engine >> circsh...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Function overwrites output with a different number
Besides the refactoring and code mlint suggestions removal, I think the biggest problem is the function definition line functio...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
How to decipher date formats?
"Is it possible to get their [variant input and ambiguous formats - sic] datenum correctly in a holistical way?" "Possible?" M...

plus de 6 ans il y a | 0

| A accepté

Charger plus