Feeds
提问
Function to extract certain elements from a character array
function [user_name,domain_name] = GetUserAndDomain(email) user_name=email(1:strfind(email,'@')-1); domain_name=email(strfind(...
11 years 前 | 1 个回答 | 0
1
个回答提问
I'm trying to compare components of an array using relational operators, and the outcome needs to be either true or false. My result is a row vector of logicals; how do i make sure the result is just a single 1 or 0?
A=rand(15,10); B=any(A(8,:))==max(A); B= 0 0 0 0 0 0 0 0 0 0
11 years 前 | 2 个回答 | 0