Answered
making a exponential from a for loop
k=6*10.^(1:10); Cd=1.5*10.^(1:8);

4 years ago | 0

| accepted

Answered
Need help calling a function
Not exactly sure what you are asking. Do you want to call the last function in your main function? I simple way to look at the o...

4 years ago | 0

Solved


Easy Sequences 54: Product of Products of Proper Divisors
A divisor of a number that is less than the number is called a "proper divisor". For a given positive integer , we are asked t...

4 years ago

Answered
Find all possible combinations of string array
You could get all possible combinations and then index into your struct. [idxa,idxb,idxc]=ndgrid(1:5,1:3,1:7);

4 years ago | 0

Answered
Creating a column vector form data in table to meet specific requirements.
risk=ones(size(age)); risk(age>75|BMI>50)=3; risk(age>50&age<=75&BMI>40&BMI<=50)=2;

4 years ago | 0

| accepted

Answered
what changes can be made in the code?
function out = mycumsum (m) out = m(1); for i = 2:length(m) out(i)=out(i-1)+m(i); end

4 years ago | 0

Answered
how can do get this
You could simply look at the difference a=[5 9.8 15 6 10 9.5 9.7 9.8 9.8 9.8 9.8]; idx=find(diff(a)==0,1);

4 years ago | 0

| accepted

Answered
RS-232 Serial Communication (Mark-10)
Look at your manual for your instrument to set up the parameters s = serialport('COM1',115200);%create object s.DataBits=8; s...

4 years ago | 1

| accepted

Answered
What does this line really do?
Look at what this does. a=randi(2,1,20)-1 a(a==1)=-1%same as a(1,a==1)=-1 a(a==0)=1%same as a(1,a==0)=1;

4 years ago | 0

| accepted

Answered
How do I subplot figures and Title Figures
Look at subplot() command. subplot(1,2,1); imshow(image1); subplot(1,2,2); imshow(image2);

4 years ago | 0

Answered
Converting cell array to num array for conversions
Is your data is hexidecimal? You can convert it directly to decimal (use java BigInteger for large numbers) import java.math.* ...

4 years ago | 0

Answered
help me how to find how many terms does it take until the series converges to 0.001?
Don't understand your queston completely, but quite easy to form the series. For example when n=35, which is about as far as you...

4 years ago | 0

Answered
How to convert cell to matrix?
Look at cell2mat()

4 years ago | 0

| accepted

Answered
How can I make this simple code a for loop?
x=1:5; hold on; for k=1:3 plot(x,x.^k); end

4 years ago | 0

| accepted

Solved


Test if a matrix is symmetric
Write a logical function that returns 1 if the input matrix is symmetric and 0 otherwise.

4 years ago

Solved


Test if a number is numeric or not
Test if a number is numeric or not

4 years ago

Solved


calculate the tangent of angle in radians
Calculate the tangent of angle in degrees

4 years ago

Solved


Volume of Cylinder
Compute the Circumference of a Cylinder given it's radius and height.Here x is the radius and y is the height

4 years ago

Solved


Calculate the base-10 logarithm of a number
Calculate the logarithm of number x

4 years ago

Solved


Factorial: Unlimited Size : java.math
This challenge is an application of java.math that allows unlimited precision calculations. The primary reference sites are <ht...

4 years ago

Solved


Change number representation to HEX
Given a number change it's representation to HEX and output it.

4 years ago

Solved


Easy Sequences 51: Positive Gaussian Primes
A Gaussian Prime is a gaussian integer that cannot be decomposed as product of two non-unit gaussian integers (the complex units...

4 years ago

Solved


Easy Sequences 52: Non-squarable Rectangles
Any integer-sided rectangle can be cut into unit rectangles () and rearranged into sets of smaller rectangles. For example the ...

4 years ago

Solved


Compute the Sequence of the Day
A sequence starts with 1 and 2, and each subsequent term is the sum of the digits of the product of the previous two terms. As a...

4 years ago

Solved


Easy Sequences 53: Greatest Proper Divisor
The greatest proper divisor () of an integer is the largest integer , such that and . Furthermore, we define: . Below is the...

4 years ago

Solved


Strange Number Algorithms
Three integer numbers will be provided to you. Write a function to Step1: Multiply first number by 3. Step2: Add 6 with t...

4 years ago

Solved


Is this number Munchhausen Narcissistic?
In this problem, simply return 1 if a supplied number is Munchhausen narcissistic or 0 if not. Example 153 is narcissistic...

4 years ago

Solved


provide the numerical answer to these number questions...
return a row matrix containing the sorted numbers which answer the following questions: a) what is the first Knuth number to...

4 years ago

Solved


remove nans fast
There are several ways to locate and remove nans in a matrix, and return an 1d row vector. In this problem the challenge is ...

4 years ago

Answered
Trying to get my output to be 22 decimal places
You cannot use floating point if you want 22 decimal places of accuracy, you must use symbolic. function total=my_sin(x) digit...

4 years ago | 1

Load more