photo

John Jamieson


Last seen: environ 5 ans il y a Actif depuis 2020

Followers: 0   Following: 0

Statistiques

MATLAB Answers

10 Questions
1 Réponse

RANG
33 628
of 300 799

RÉPUTATION
1

CONTRIBUTIONS
10 Questions
1 Réponse

ACCEPTATION DE VOS RÉPONSES
20.0%

VOTES REÇUS
1

RANG
 of 21 092

RÉPUTATION
N/A

CLASSEMENT MOYEN
0.00

CONTRIBUTIONS
0 Fichier

TÉLÉCHARGEMENTS
0

ALL TIME TÉLÉCHARGEMENTS
0

RANG

of 171 134

CONTRIBUTIONS
0 Problèmes
0 Solutions

SCORE
0

NOMBRE DE BADGES
0

CONTRIBUTIONS
0 Publications

CONTRIBUTIONS
0 Public Chaîne

CLASSEMENT MOYEN

CONTRIBUTIONS
0 Point fort

NOMBRE MOYEN DE LIKES

  • Thankful Level 1

Afficher les badges

Feeds

Afficher par

Question


How to count number of words in a string
My code is as follows function [wordcount] = wordCount(strtxt, n) wordcount=0; y=1; for x=1:length(strtxt) space=strfind(st...

environ 5 ans il y a | 2 réponses | 1

2

réponses

Question


How to add a newline after a certain number of characters
function [strMultiLines] = nCharLine(strtxt, n) Length=length(strtxt); strMultiLines=strtxt; strMultiLines=[strMultiLines(1:n...

environ 5 ans il y a | 2 réponses | 0

2

réponses

Question


How to replace all newline characters in a string with a space?
I want to replace all newline characters in an inputted string of characters "strtxt" with spaces. However, I've no idea how to ...

environ 5 ans il y a | 2 réponses | 0

2

réponses

Question


How do I output data from a txt file?
Let me explain, I want to take these messages from a .txt file: Congratulations! Way to go! You're amazing! Fantastic! ...

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

1

réponse

Question


How do I call upon a function in another function?
This is what I have: function [Output] = Jamiesonlab5 () Result=input('Please press any key to roll the dice, press Q or q to ...

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

1

réponse

Question


How do I use characters with an if statement?
My code looks like this Prompt='Please press any key to roll the dice, press Q or q to quit program: '; str=input(Prompt, 's')...

environ 5 ans il y a | 2 réponses | 0

2

réponses

Question


Why does rem(Centnum,5) give me an answer that is not zero?
I created the following code in order to isolate canadian coins from the value of a cheque: function [] = Jamiesonlab4 () Cheq...

environ 5 ans il y a | 2 réponses | 0

2

réponses

Question


Why is my code displaying two messages instead of one?
if BirthM == 1 fprintf (fileID,'\n you are %d years %d month and %d days old', BirthY,BirthM,BirthD); elseif Birth...

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

1

réponse

Question


Why is this giving me two outputs instead of one and how do I fix it?
if BirthM == 1 if BirthD == 1 fprintf (fileID,'\n you are %d years %d month and %d day old', BirthY,Birth...

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

1

réponse

Réponse apportée
How can I create a function that converts the number of a month to the name of a month?
This question has been solved. I simply had to replace a %d where Month was located in the fprintf with %s. If I do that, the fu...

plus de 5 ans il y a | 0

Question


How can I create a function that converts the number of a month to the name of a month?
So far I have this. curdateTime = clock; Monthnumber=curdateTime(2); Year=curdateTime(1); Day=curdateTime(3); ...

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

2

réponses