Community Profile

photo

Minhao Wang


Last seen: environ 2 mois il y a Actif depuis 2020

Statistics

  • Thankful Level 2
  • Thankful Level 1

Afficher les badges

Content Feed

Afficher par

Question


How do I replace words in the text file?
function [] = Assign5() clc;clear readstring = read_form(); [tag,replacement] = read_sub_tag(); newstring = replace_tags(rea...

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

1

réponse

Question


What did I do wrong in my 'for' loop function?
The question is With the help of an RESP (Registered Education Savings Plan), a parent can start putting aside money for a chi...

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

2

réponses

Question


What should I do in order to make my code plot like this?
sap = input('Select a program: 1. Arts; 2. Science; 3. Engineering: '); nb(1) = 2000; mir = 0.0625/12; mc = 200; for B = 2 :...

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

1

réponse

Question


How can I debug this?
clc;clear C1 = input('Please enter a code to break: ' , 's'); if length(C1) ~= 6 disp('Decoy message: Not a six-digit num...

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

1

réponse

Question


How am I gonna do if I just want this to show me only Decoy message: Invalid rescue day . And the changes will not affect other codes?
clc;clear C1 = input('Please enter a code to break: ' , 's'); if length(C1) ~= 6 disp('Decoy message: Not a six-digit num...

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

1

réponse

Question


How to connect two displays?
clc;clear C1 = input('Please enter a code to break: ' , 's'); if length(C1) ~= 6 disp('Decoy message: Not a six-digit num...

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

1

réponse

Question


Can someone tell me how can I create a if statement with mulitple else?
clc;clear C1 = input("Please enter a code to break: " , "s"); if length(C1) ~= 6 disp("Decoy message: Not a six-digit num...

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

1

réponse

Question


Can we put all of these str2num in one function?
clc;clear C1 = '222222' str2num(C1(1)) + str2num(C1(2)) + str2num(C1(3)) + str2num(C1(4))... + str2num(C1(5)) + str2num(C...

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

2

réponses