John Jamieson
Estadísticas
CLASIFICACIÓN
33.040
of 288.900
REPUTACIÓN
1
CONTRIBUCIONES
10 Preguntas
1 Respuesta
ACEPTACIÓN DE RESPUESTAS
20.0%
VOTOS RECIBIDOS
1
CLASIFICACIÓN
of 19.494
REPUTACIÓN
N/A
EVALUACIÓN MEDIA
0.00
CONTRIBUCIONES
0 Archivos
DESCARGAS
0
ALL TIME DESCARGAS
0
CLASIFICACIÓN
of 143.099
CONTRIBUCIONES
0 Problemas
0 Soluciones
PUNTUACIÓN
0
NÚMERO DE INSIGNIAS
0
CONTRIBUCIONES
0 Publicaciones
CONTRIBUCIONES
0 Público Canales
EVALUACIÓN MEDIA
CONTRIBUCIONES
0 Temas destacados
MEDIA DE ME GUSTA
Content Feed
Pregunta
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...
más de 3 años hace | 2 respuestas | 1
2
respuestasPregunta
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...
más de 3 años hace | 2 respuestas | 0
2
respuestasPregunta
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 ...
más de 3 años hace | 2 respuestas | 0
2
respuestasPregunta
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! ...
más de 3 años hace | 1 respuesta | 0
1
respuestaPregunta
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 ...
más de 3 años hace | 1 respuesta | 0
1
respuestaPregunta
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')...
más de 3 años hace | 2 respuestas | 0
2
respuestasPregunta
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...
más de 3 años hace | 2 respuestas | 0
2
respuestasPregunta
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...
más de 3 años hace | 1 respuesta | 0
1
respuestaPregunta
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...
más de 3 años hace | 1 respuesta | 0
1
respuestaHow 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...
más de 3 años hace | 0
Pregunta
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); ...
más de 3 años hace | 2 respuestas | 0