Community Profile

photo

Minhao Wang


Last seen: oltre un anno fa Attivo dal 2020

Followers: 0   Following: 0

Statistiche

  • Thankful Level 2
  • Thankful Level 1

Visualizza badge

Feeds

Visto da

Domanda


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

oltre 3 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 3 anni fa | 2 risposte | 0

2

risposte

Domanda


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

oltre 3 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 3 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 3 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 3 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 3 anni fa | 1 risposta | 0

1

risposta

Domanda


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

oltre 3 anni fa | 2 risposte | 0

2

risposte