photo

JGraf


Con actividad desde 2017

Followers: 0   Following: 0

Mensaje

Hi, I am new to Matlab

Estadística

  • Thankful Level 3

Ver insignias

Feeds

Ver por

Pregunta


How to write a function that only accepts non-negative integer
Hi, I am writing a function called day_diff that takes four scalar positive integer inputs, month1, day1, month2, day2. These...

más de 7 años hace | 1 respuesta | 0

1

respuesta

Respondida
How to sort a 3 element vector input to scalar output?
I figured it out as follows: function [out1,out2,out3]=sort3(v) if v(1) <=v(2) && v(2)<=v(3); out1=v(1) ...

más de 7 años hace | 0

| aceptada

Pregunta


How to sort a 3 element vector input to scalar output?
Hi, My function sort3 is supposed to take a 3-element vector and return the vector as three scalar output in nondecreasing or...

más de 7 años hace | 3 respuestas | 0

3

respuestas

Pregunta


How to format fprintf with 2 decimals
HI, I have looked at other examples of fprintf, but my formatting on fare(4,75) is off and I am not sure why? fare(4,44) output ...

más de 7 años hace | 1 respuesta | 0

1

respuesta

Respondida
How do I properly combine "and", "or" and "if"
Thank you

más de 7 años hace | 0

Pregunta


How do I properly combine "and", "or" and "if"
Hi, My function needs to calculate the cost of a train ticket. The first mile is $2. Each additional mile up to 10 miles is...

más de 7 años hace | 3 respuestas | 0

3

respuestas

Pregunta


How to select odd numbers in a row
Hi, I need to write a function that returns an output, which is the square root of the mean of the squares of the first nn pos...

más de 7 años hace | 2 respuestas | 0

2

respuestas

Pregunta


How do I create a function where output S has the rows as input N
I am trying to create a function where the output S shows selected statistics of input N. I need output S to have the same numb...

más de 7 años hace | 1 respuesta | 0

1

respuesta

Pregunta


Hi, I need a function that calculates the sine of the corresponding element of an input. The input is in degrees and I am not allowed to use the built-in function sind.
Hi, I need a function that calculates the sine of the corresponding element of deg. Deg are giving in degrees and I am not allow...

más de 7 años hace | 3 respuestas | 0

3

respuestas