문제를 풀었습니다


Find the numeric mean of the prime numbers in a matrix.
There will always be at least one prime in the matrix. Example: Input in = [ 8 3 5 9 ] Output out is 4...

거의 8년 전

답변 있음
Need help in matrix dimension while converting from fortran to matlab
The error is due to the fact that at first double_sum is used as a variable to which a value is being assigned double_sum =...

거의 8년 전 | 0

답변 있음
Javaaddpath to files not in Java folder
Try supplying the full filepath to the javaaddpath function. Something like poi_dir = "C:/JavaLibs"; poi_lib = "poi_libr...

거의 8년 전 | 0

답변 있음
Error using mtimes Inner matrix dimensions must agree !!
Are you doing elementwise multiplication? If so, then replace the '*' operator with '.*' operator, Such that phi0(:,t)=[...

거의 8년 전 | 0

답변 있음
How to Concatenate two matrix's each elements ?
Let's try: syms a b c d e f g h i % initialize symbols A = [a b c;d e f;g h i]; B = [1 2 3;4 5 6;7 8 9]; sz = siz...

거의 8년 전 | 0

| 수락됨

답변 있음
Importdata; textheader not read completely
Try reading the file data into a string and use the textscan function to retrieve the data you want. filename = '22P04a.csv...

거의 8년 전 | 0

답변 있음
Doing operations on a row or a column only in a matrix
Let's assume you have the matrix: Data = [1 96;2 75;3 88;4 30;5 60;6 14;7 88]; with column ordering as specified in your...

거의 8년 전 | 0

답변 있음
why i get this error (Undefined function or method 'fptintf' for input arguments of type 'sym'. Error in ==> trying at 34 ;fptintf(fid,' %1.2s\n',r1);)and how to solve it
There's a typo in your code. The line before u = u + 1; must be changed from ; fptintf(fid,' %1.2s\n',r1); t...

거의 8년 전 | 0

답변 있음
Sum of all the prime numbers under 100, sum of the ten smallest prime numbers.
Does this help primes_ = primes(100); sum_ = sum(primes_(1:10));

거의 8년 전 | 0

답변 있음
program for bool function for prime number in php
You can use Matlab's standard functions "isprime" and "primes". To view the Matlab code for each type "edit FUNCNAME" in the c...

거의 8년 전 | 0

문제를 풀었습니다


Check if sorted
Check if sorted. Example: Input x = [1 2 0] Output y is 0

거의 8년 전

문제를 풀었습니다


Cell joiner
You are given a cell array of strings and a string delimiter. You need to produce one string which is composed of each string fr...

거의 8년 전

문제를 풀었습니다


Remove the vowels
Remove all the vowels in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill' Output s2 is 'Jck nd Jll wn...

거의 8년 전

문제를 풀었습니다


Length of a short side
Calculate the length of the short side, a, of a right-angled triangle with hypotenuse of length c, and other short side of lengt...

거의 8년 전

답변 있음
Error: Index exceeds matrix dimensions
Ok I downloaded the code and the text file from the website you mentioned. When running the code the rawdata variables has a siz...

거의 8년 전 | 0

| 수락됨

답변 있음
How to create class with no attributes?
In Matlab this class may be created as follows. classdef MyClass methods function myMethod1(this,varargin) ...

거의 8년 전 | 0

답변 있음
How to check condition element by element till satisfied
I hope this is what you're looking for: a = ones(5); sz = size(a); a = a(:); count = 0; isDebug = true; %% So you kn...

거의 8년 전 | 0

| 수락됨

답변 있음
Replace elements meeting condition with last valid value
I guess I understand what you want to do. Try this PTEf = [P1;P2]; ETEf = [E1;E2]; ij = PTEf>S(1) | PTEf > S(end); P...

거의 8년 전 | 0

| 수락됨

답변 있음
Trouble opening file with Java to use with PDFBox
Try wrapping your pdfname variable in a java.lang.String variable. This sometimes works: pdfname = java.lang.String('...\ex...

거의 8년 전 | 1

| 수락됨

답변 있음
To delete the empty fields in the dataset
Now, try this V = {1,2,[],[],23,16,'A',struct()}; % your cell array V = V(~cellfun('isempty'),V);

거의 8년 전 | 0

답변 있음
How do I plot the plot a line using slope and one (x,y) coordinate on Matlab?
Let's define the slope as m; So using the equation: y = m(x-x1) + y1, we can calculate all values of y corresponding to a partic...

거의 8년 전 | 5

| 수락됨

답변 있음
define function that includes number of variable and call it in many callback function in GUI
Let's assume you have defined these variables. a = 2; b = 7; c = 15; Name = 'My Name'; Age = 105; To make sure that these a...

거의 8년 전 | 1

| 수락됨

답변 있음
How to iterate odd and even runs alternatively?
Let's try. Define variables needed for calculation. x = [NaN,NaN]; t = 1; m = 2; % any value you like. n = -2; % any va...

거의 8년 전 | 0

답변 있음
If statement with 2 commands
Ok, I think I see two problems in your if statement. 1). == is not an assignment operation, but rather a comparative one. So ...

거의 8년 전 | 0

문제를 풀었습니다


Simple equation: Annual salary
Given an hourly wage, compute an annual salary by multiplying the wage times 40 and times 50, because salary = wage x 40 hours/w...

거의 8년 전

문제를 풀었습니다


Find the sum of all the numbers of the input vector
Find the sum of all the numbers of the input vector x. Examples: Input x = [1 2 3 5] Output y is 11 Input x ...

거의 8년 전

문제를 풀었습니다


Remove all the consonants
Remove all the consonants in the given phrase. Example: Input s1 = 'Jack and Jill went up the hill'; Output s2 is 'a ...

거의 8년 전

문제를 풀었습니다


Find all elements less than 0 or greater than 10 and replace them with NaN
Given an input vector x, find all elements of x less than 0 or greater than 10 and replace them with NaN. Example: Input ...

거의 8년 전

문제를 풀었습니다


Swap the first and last columns
Flip the outermost columns of matrix A, so that the first column becomes the last and the last column becomes the first. All oth...

거의 8년 전

문제를 풀었습니다


Finding Perfect Squares
Given a vector of numbers, return true if one of the numbers is a square of one of the other numbers. Otherwise return false. E...

거의 8년 전

더 보기