Feeds
질문
I am trying to get an infinite sum using symsum, but when I trying to convert to double I am getting error
%if true %%%% clear all E=0.01; % t= [0.025 0.05 0.1 0.2 0.3 0.4 1]'; t=[ 0.05]; y=0:0.1:1; y=y'; syms n p=(1/(4*pi*p...
8년 초과 전 | 답변 수: 0 | 0
0
답변질문
I am trying to solve a system of 3 PDEs using pdepe in MATLAB. But I am getting an error
Here is the code % function pdex51 m = 0; x = 0:0.005:1; t = 0:0.01:1; options=odeset('Reltol',1e-10,'Abstol',1...
8년 초과 전 | 답변 수: 1 | 0
1
답변질문
Fluctuating and negative value in pdepe
I am trying to solve a coupled pde in MATLAB. The code is : function pdex5 m = 0; x = linspace(0,1,100); t = lins...
거의 9년 전 | 답변 수: 0 | 0
0
답변질문
I am solving a pde using pdepe in matlab. But I am getting warnings and some peculiar results.
<</matlabcentral/answers/uploaded_files/44504/IMG_20160202_091532.jpg>> Here is my differential equation. A and B are constan...
거의 9년 전 | 답변 수: 0 | 0
0
답변질문
MATLAB Image processing filtering
One sample image is http://goo.gl/0IOkBZy .Download the file and name it as <</matlabcentral/answers/uploadd_files/43433...
거의 9년 전 | 답변 수: 3 | 0
3
답변답변 있음
Write a function so that, when given a natural number N, the function returns the value max n ∈ N : 12 + 22 + · · · + n 2 ≤ N
function [ p ] = rusty( N) a(1)=12; i=1; while sum(a(:))<=N a(i+1)=a(i)+10; i=i+1; end if sum...
Write a function so that, when given a natural number N, the function returns the value max n ∈ N : 12 + 22 + · · · + n 2 ≤ N
function [ p ] = rusty( N) a(1)=12; i=1; while sum(a(:))<=N a(i+1)=a(i)+10; i=i+1; end if sum...
거의 9년 전 | 0
질문
I have a symbolic function, I want to know the points of discontinuity.
For example the function is : syms t k=t*heaviside(5-t)+5*heaviside(t-5) ;
거의 9년 전 | 답변 수: 1 | 0
1
답변문제를 풀었습니다
Find the longest sequence of 1's in a binary sequence.
Given a string such as s = '011110010000000100010111' find the length of the longest string of consecutive 1's. In this examp...
대략 9년 전
문제를 풀었습니다
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...
9년 초과 전
문제를 풀었습니다
Factorize THIS, buddy
List the prime factors for the input number, in decreasing order. List each factor only once, even if the factorization includes...
거의 10년 전
문제를 풀었습니다
What percentage?
Calculate the output c as the percentage of a on b for given a and b.
거의 10년 전
문제를 풀었습니다
Lightning strike distance: Writing a function
Write a function named LightningDistance that outputs "distance" given input "seconds". Seconds is the time from seeing lightnin...
거의 10년 전
문제를 풀었습니다
"Find out the best cricket"
This is how I originally read Problem 2013, so let's just go with it. Give me the first and last name of the best cricket, rega...
거의 10년 전
답변 있음
How to find object is vertically or horizontally symmetry ?
let the matrix be A if A== fliplr(A) %this means that it has vertical symmetry disp(' it is vertically symmetrical ')...
How to find object is vertically or horizontally symmetry ?
let the matrix be A if A== fliplr(A) %this means that it has vertical symmetry disp(' it is vertically symmetrical ')...
거의 10년 전 | 0
| 수락됨
문제를 풀었습니다
Find the alphabetic word product
If the input string s is a word like 'hello', then the output word product p is a number based on the correspondence a=1, b=2, ....
거의 10년 전
문제를 풀었습니다
Pangrams!
A pangram, or holoalphabetic sentence, is a sentence using every letter of the alphabet at least once. Example: Input s ...
거의 10년 전
문제를 풀었습니다
Is my wife right? Now with even more wrong husband
Again, as in "Is my wife right?" ( <http://www.mathworks.com/matlabcentral/cody/problems/149-is-my-wife-right> ), answer 'yes' r...
거의 10년 전
문제를 풀었습니다
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 ...
거의 10년 전
문제를 풀었습니다
Volume of a box
Given a box with a length a, width b, and height c. Solve the volume of the box.
거의 10년 전
문제를 풀었습니다
Binary numbers
Given a positive, scalar integer n, create a (2^n)-by-n double-precision matrix containing the binary numbers from 0 through 2^n...
거의 10년 전
문제를 풀었습니다
Pizza value using expression with parentheses
Pizza prices are typically listed by diameter, rather than the more relevant feature of area. Compute a pizza's value (cost per ...
거의 10년 전
문제를 풀었습니다
Roll the Dice!
*Description* Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. *Example* [x1,x2] =...
거의 10년 전
문제를 풀었습니다
Too mean-spirited
Find the mean of each consecutive pair of numbers in the input row vector. For example, x=[1 2 3] ----> y = [1.5 2.5] x=[1...
거의 10년 전
문제를 풀었습니다
Nearest Numbers
Given a row vector of numbers, find the indices of the two nearest numbers. Examples: [index1 index2] = nearestNumbers([2 5 3...
거의 10년 전
문제를 풀었습니다
Pascal's Triangle
Given an integer n >= 0, generate the length n+1 row vector representing the n-th row of <http://en.wikipedia.org/wiki/Pascals_t...
거의 10년 전
문제를 풀었습니다
Target sorting
Sort the given list of numbers |a| according to how far away each element is from the target value |t|. The result should return...
거의 10년 전
문제를 풀었습니다
Who Has the Most Change?
You have a matrix for which each row is a person and the columns represent the number of quarters, nickels, dimes, and pennies t...
거의 10년 전