![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/17444816_1580783220113_DEF.jpg)
Brandon Tsang
Followers: 0 Following: 0
Feeds
提问
How to output the longest character string from two specified characters using nested for loop?
% ptn is the string we are working with to find M and * ptn = 'TFASDTTVFTSNLKQTPWCI*LLRRSLPLLPCGAR*TWMKLVVRPWAGWYQGYKTGLRRPIETG...
1 year 前 | 1 个回答 | 0
1
个回答提问
How do I take my generated string outputs from for loop and return a list?
seq = 'ACAUUUGCUUCUGACACAACUGUGUUCACUAGCAACCUCAAACAGACA' for i=1:3:numel(seq)-2 a = (seq(i:i+2)) end a = 'ACA' a = 'UU...
1 year 前 | 2 个回答 | 0
2
个回答提问
How do I prevent duplicate indexes in an array from subtracting to each other when it satisfies the condition the 1st time?
matA = [21 36 172 246 259 274 303 311 316 322 340 375 377 378 382 396 483 508] matB = [39 116 198 203 309 314 364 421] A = 1:1...
1 year 前 | 1 个回答 | 0
1
个回答提问
Having vector sorted by using While Loops + Diff()
Hi. My function has to sort a numerical vector by using only while loops, diff(),any(), or all() Must Use a While Loop No Fo...
4 years 前 | 1 个回答 | 0
1
个回答提问
Finding Largest Factor Using While Loop
Objective: Find largest factor of any input For example: >> out = largestfactor(15) out = 5 I am using a while loop and if...
4 years 前 | 1 个回答 | 0