Skip to main content

All Questions

Tagged with
2 votes
2 answers
7k views

Check if string contains any numbers in MATLAB

How do we check if the string contains any numbers? The best way to check if the string contains all letters is to use isletter command but how to go one step further and check if any char in the ...
Rene Duchamp's user avatar
  • 2,629
0 votes
1 answer
252 views

input array of strings in matlab

Problem: Solve linear equations I have a 3×3 matrix and I wanted to take 3 expressions as inputs which contain matrix cells like 2*b(1,1)+3*b(1,2)+3*b(1,3) 3*b(2,1)+4*b(2,3)+3*b(2,3) and evaluate ...
Saiteja Parsi's user avatar
0 votes
2 answers
3k views

Reading Text File As Numbers (Table)

I'm working with MATLAB GUI. So, I want users to browse their own table from their computer. When they have browsed, the full path will be written on the static text, and the table (that they browse) ...
Alvi Syahrin's user avatar
3 votes
2 answers
199 views

a numeric to string conversion in MATLAB

I need a code which receive a 1xn number array like [2 , 6, 9] and converts it to a 1x1 string data in this way : 2, 6, 9 or this way : 2, 6, 9,
Mohamad Pishdad's user avatar
3 votes
3 answers
547 views

Strrep not working in Matlab to make String into function

Hello I am new to MATLAB , I wanted to know how can I make my string into function . I want to access the function as a string from user in standard Matlab format (e.g exp(-10*X)-sin(pi*X)-2*tanh(X) ) ...
user841852's user avatar
0 votes
1 answer
1k views

Converting string to num with a specific format in Matlab

>> str = '0009.51998' >> str2num(str) or >> sscanf(str,'%f') ans = 9.5200 I want to get this instead: ans = 9.51998
Academia's user avatar
  • 4,124