photo

George

MathWorks

Last seen: presque 4 ans il y a Actif depuis 2014

Followers: 0   Following: 0

Message

I've worked at MathWorks since 2013. Using MATLAB isn't part of my job, but I enjoy learning about it.

Statistiques

All
MATLAB Answers

1 Question
56 Réponses

File Exchange

1 Fichier

Cody

0 Problèmes
123 Solutions

RANG
665
of 301 513

RÉPUTATION
118

CONTRIBUTIONS
1 Question
56 Réponses

ACCEPTATION DE VOS RÉPONSES
100.0%

VOTES REÇUS
22

RANG
15 691 of 21 310

RÉPUTATION
10

CLASSEMENT MOYEN
0.00

CONTRIBUTIONS
1 Fichier

TÉLÉCHARGEMENTS
1

ALL TIME TÉLÉCHARGEMENTS
81

RANG
2 827
of 175 013

CONTRIBUTIONS
0 Problèmes
123 Solutions

SCORE
1 217

NOMBRE DE BADGES
4

CONTRIBUTIONS
0 Publications

CONTRIBUTIONS
0 Public Chaîne

CLASSEMENT MOYEN

CONTRIBUTIONS
0 Point fort

NOMBRE MOYEN DE LIKES

  • Scavenger Finisher
  • Knowledgeable Level 3
  • 3 Month Streak
  • Introduction to MATLAB Master
  • Commenter
  • First Review
  • First Submission
  • GitHub Submissions Level 1
  • Revival Level 1
  • Knowledgeable Level 2
  • First Answer
  • Promoter

Afficher les badges

Feeds

Afficher par

Réponse apportée
How can I create a cell array by combining arrays?
What are you having trouble with? The code you posted works. >> cellArray={['X','Y','Z'],[1 2 3],[4 5 6],[7 8 9]} c...

plus de 9 ans il y a | 1

Réponse apportée
Using save with -v7.3 takes a long time and the mat file size is enormous
I've run into this before too. From the <https://www.mathworks.com/help/matlab/import_export/mat-file-versions.html matfile> pag...

plus de 9 ans il y a | 1

| A accepté

Réponse apportée
How do I get Matlab to recognise a text file as numerical values when importing it ?
Check out the <https://www.mathworks.com/help/matlab/ref/textscan.html#inputarg_formatSpec |formatSpec|> portion of the textscan...

plus de 9 ans il y a | 0

Réponse apportée
how to get the specific member data from a struct array?
From the doc on <https://www.mathworks.com/help/matlab/ref/struct.html |struct|> "When you access a field of a nonscalar stru...

plus de 9 ans il y a | 0

| A accepté

Réponse apportée
predict data for input
Have you tried <https://www.mathworks.com/help/stats/compactclassificationdiscriminant.predict.html |predict()|>? results =...

plus de 9 ans il y a | 0

Réponse apportée
I'm trying to create a loop in which i can extract 4 columns and multiple rows from 18 difference txt files and save the extracted data in one file. Is this possible? This is my code from one file
Untested, but this should basically work. Get an array of filenames with <https://www.mathworks.com/help/matlab/ref/ls.html?s_ti...

plus de 9 ans il y a | 0

Réponse apportée
How can I make a random array with values of either -1 or 1?
You can use rand % pseudo code x = rand(50,1); pos = x >= .5; neg = x < .5; x(pos) = 1; x(neg) = -1; ...

plus de 9 ans il y a | 0

Réponse apportée
I'm doing iteration of credit card. In it, there are looping of month ,balance, and pay every month . How to plot graph with these three variable as the value changes everytime looping happen . Thanks
Don't try and plot it everytime it changes. Store the elements in vectors and plot those at the end.

plus de 9 ans il y a | 0

Réponse apportée
How to remove corrupted data lines from text file
Add a NameValue pair of <https://www.mathworks.com/help/matlab/ref/textscan.html#namevaluepairs CommentStyle>. e.g., C = t...

plus de 9 ans il y a | 0

Réponse apportée
How to set names to column vectors?
If you want to associate a variable name with a piece of data I think your best bet is to use a <https://www.mathworks.com/help/...

plus de 9 ans il y a | 1

| A accepté

Réponse apportée
How to speed up a for loop ?
Are you sure this is correct? angle=asin(A(:,3))/(sqrt(A(:,3).^2+A(:,2).^2+A(:,1).^2)); That's doing matrix division. In...

plus de 9 ans il y a | 2

| A accepté

Réponse apportée
How to find which column consists character 'example' in cell c{1,2}(:,1)
strcmp(c{1,2}(:,1), 'example') will return a logical array. You may need to surround 'example' with |cellstr()|, I can't re...

plus de 9 ans il y a | 0

Réponse apportée
how to convert minute rainfall to daily rainfall with missing value?
This assumes you can get the data into the tables you want. Here is a way if you have data in one station per file. ds = da...

plus de 9 ans il y a | 0

Réponse apportée
Replace a missing string in a table
This should work: dblVar = [NaN; 3; 7; 9]; cellstrVar = {'one'; 'three'; ''; 'nine'}; categoryVar = categorical({''; ...

plus de 9 ans il y a | 1

| A accepté

Réponse apportée
How to process multiple txt files in a loop?
Get an array of file names and loop over that array. e.g., files = ['file1.txt' 'file2.txt' 'file3.txt']; for ii = 1:nu...

plus de 9 ans il y a | 3

| A accepté

Réponse apportée
How do I calculate a mean value of a vector and ignore from the "0" when appears inside the vectors?
Replacing the 0s with NaN and using the 'omitnan' flag should do what you want. >> A A = NaN NaN...

plus de 9 ans il y a | 0

Réponse apportée
How can i rotate Confusion Matrix?
ax = gca; ax.XAxisLocation = 'top'; You can also do this with the set command, but I think the above is more clear.

plus de 9 ans il y a | 0

Réponse apportée
Merge Date and Time in Tall Tables
Try adding them together. <https://in.mathworks.com/help/matlab/matlab_prog/compute-elapsed-time.html Examples>.

plus de 9 ans il y a | 0

Réponse apportée
Extract values from single data matrix
Take a look at <https://www.mathworks.com/help/matlab/ref/horzcat.html |horzcat|> and <https://www.mathworks.com/help/matlab/ref...

plus de 9 ans il y a | 0

Réponse apportée
How can I count frequency in array?
<https://www.mathworks.com/help/matlab/ref/fprintf.html |fprintf|> prints to a file. You want to use <https://www.mathworks.com/...

plus de 9 ans il y a | 2

| A accepté

Réponse apportée
find the matching strings in tables
You can use <https://www.mathworks.com/help/matlab/ref/regexp.html |regexp|>. a = 'Country1-Area1,CityA-52'; expression ...

plus de 9 ans il y a | 0

Réponse apportée
help! writing afunction for isprime
Do you know how to test whether a number is prime? Here is one way you can start: # Generate numbers between 2:(n/2) # Test ...

plus de 9 ans il y a | 0

Réponse apportée
How to read images in a folder
You can try <https://www.mathworks.com/help/matlab/ref/imagedatastore-object.html |ImageDatastore|>

plus de 9 ans il y a | 1

Réponse apportée
How convert date and time to number that excel will recognize the really date and time?
Use <https://www.mathworks.com/help/matlab/ref/datetime.html |datetime|> and <https://www.mathworks.com/help/matlab/ref/writetab...

plus de 9 ans il y a | 0

Réponse apportée
Find index with multiple condition, using find function
The first thing I would try is to be more liberal with your use of parenthesis. In your statement: index = find(datachunk...

plus de 9 ans il y a | 5

| A accepté

Réponse apportée
How I can eliminate days with incomplete hours?
You can do this with <https://www.mathworks.com/help/matlab/ref/findgroups.html |findgroups()|> and <https://www.mathworks.com/h...

plus de 9 ans il y a | 0

Réponse apportée
Error installing Python on Matlab
Assuming that you're trying to execute the python command this won't work: cd "matlabroot\extern\engines\python" python...

plus de 9 ans il y a | 0

Réponse apportée
Applying function to cell array
Define a <https://www.mathworks.com/help/matlab/matlab_prog/creating-a-function-handle.html function handle> and use that as an ...

plus de 9 ans il y a | 0

Réponse apportée
How can I remove elements divisible by 3,4, and 5 in a vector?
You can do this using <https://www.mathworks.com/help/matlab/ref/mod.html |mod()|>.

plus de 9 ans il y a | 0

Charger plus