photo

JGraf


2017 年からアクティブ

Followers: 0   Following: 0

Hi, I am new to Matlab

統計

  • Thankful Level 3

バッジを表示

Feeds

表示方法

質問


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...

7年以上 前 | 1 件の回答 | 0

1

回答

回答済み
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) ...

7年以上 前 | 0

| 採用済み

質問


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...

7年以上 前 | 3 件の回答 | 0

3

回答

質問


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 ...

7年以上 前 | 1 件の回答 | 0

1

回答

回答済み
How do I properly combine "and", "or" and "if"
Thank you

7年以上 前 | 0

質問


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...

7年以上 前 | 3 件の回答 | 0

3

回答

質問


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...

7年以上 前 | 2 件の回答 | 0

2

回答

質問


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...

7年以上 前 | 1 件の回答 | 0

1

回答

質問


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...

7年以上 前 | 3 件の回答 | 0

3

回答