답변 있음

Write a function [sn, n] = mySumPi(tol), which outputs 𝑆n and n for the smallest n such that |𝑆n − pi| < tol

Ok, you are at least now getting close. Your code is still convoluted. And you have the wrong terms you create. Look carefully...

Write a function [sn, n] = mySumPi(tol), which outputs 𝑆n and n for the smallest n such that |𝑆n − pi| < tol

Ok, you are at least now getting close. Your code is still convoluted. And you have the wrong terms you create. Look carefully...

2일 전 | 0

답변 있음

Creating a simpsons rule matrix

Simple. Just create a matrix that alternates 4, then 2, then 4, etc. Then append a new first and last element of 1 to the result...

Creating a simpsons rule matrix

Simple. Just create a matrix that alternates 4, then 2, then 4, etc. Then append a new first and last element of 1 to the result...

2일 전 | 0

| 수락됨

답변 있음

converting a matrix sequentially in to single column

A = rand(600,12); B = reshape(A,[30,20,12]); B = permute(B,[1 3 2]); B = reshape(B,[30*12,20]); I created B there as the des...

converting a matrix sequentially in to single column

A = rand(600,12); B = reshape(A,[30,20,12]); B = permute(B,[1 3 2]); B = reshape(B,[30*12,20]); I created B there as the des...

3일 전 | 0

답변 있음

How to write a loop that does not increase by +1?

A for loop can have any increment. Even a vector of numbers can be the increment. And it need not be in any order. Some examples...

How to write a loop that does not increase by +1?

A for loop can have any increment. Even a vector of numbers can be the increment. And it need not be in any order. Some examples...

3일 전 | 0

| 수락됨

답변 있음

Is it possible to use runge-kutta 4th order method to solve a equation with three different variables? For instance I have a equation : dy/dt= (R-0.135y)/P

It looks like you do not have THREE different variables. You have P, which I presume is a constant? Do you know the value of P...

Is it possible to use runge-kutta 4th order method to solve a equation with three different variables? For instance I have a equation : dy/dt= (R-0.135y)/P

It looks like you do not have THREE different variables. You have P, which I presume is a constant? Do you know the value of P...

4일 전 | 2

답변 있음

Using nested for loops to plot multiple approximations of Eulers method

Smile. Think about what you did. I think I know what you wanted to achieve, but look more carefully at what you have here. for...

Using nested for loops to plot multiple approximations of Eulers method

Smile. Think about what you did. I think I know what you wanted to achieve, but look more carefully at what you have here. for...

5일 전 | 0

답변 있음

Help Creating the following matrix

Very easy, really. A = zeros(3,4); A(1,1) = 3*eye; A(1,3) = 2*ones; A(1,4) = 2*ones; A(2,2) = 3*eye; A(2,3) = 2*ones; A(2...

Help Creating the following matrix

Very easy, really. A = zeros(3,4); A(1,1) = 3*eye; A(1,3) = 2*ones; A(1,4) = 2*ones; A(2,2) = 3*eye; A(2,3) = 2*ones; A(2...

5일 전 | 0

| 수락됨

답변 있음

Query about License number

Contact customer support. Answers is not that. So we cannot help you directly in any real way. https://www.mathworks.com/compan...

Query about License number

Contact customer support. Answers is not that. So we cannot help you directly in any real way. https://www.mathworks.com/compan...

6일 전 | 0

답변 있음

Fitting a sigmoid curve using curve fitting tool box

The problem is, there are many functional forms that people think of and call with the generic name "sigmoid". We can find a few...

Fitting a sigmoid curve using curve fitting tool box

The problem is, there are many functional forms that people think of and call with the generic name "sigmoid". We can find a few...

6일 전 | 0

답변 있음

Can anyone explain for loop ? And nested loops.

How can we do better than to suggest you read the help for for? It has examples in there. help for doc for A simple for loop:...

Can anyone explain for loop ? And nested loops.

How can we do better than to suggest you read the help for for? It has examples in there. help for doc for A simple for loop:...

7일 전 | 0

답변 있음

How to write while a set Q is not empty do the following in matlab?

What function tells you if a vector is empty? (Hint: isempty) What do you want? Not empty. So what is the logical negation oper...

How to write while a set Q is not empty do the following in matlab?

What function tells you if a vector is empty? (Hint: isempty) What do you want? Not empty. So what is the logical negation oper...

7일 전 | 0

| 수락됨

답변 있음

Solving of vectorial equations

You cannot do it, at least if these are completely general nonlinear equations, since there may be no unique solution for nonlin...

Solving of vectorial equations

You cannot do it, at least if these are completely general nonlinear equations, since there may be no unique solution for nonlin...

7일 전 | 1

답변 있음

Inverse of algebraic expression in Matlab

As is often the case, not all simple problems have an algebraic solution. In fact, as you have found, it is trivial to write one...

Inverse of algebraic expression in Matlab

As is often the case, not all simple problems have an algebraic solution. In fact, as you have found, it is trivial to write one...

8일 전 | 1

답변 있음

The quotient and remainder of a number divided by another (Euclidean Division)

What is the problem? :) You did it correctly. Well, except for the very last line. n = 19 d = 3 r = rem(n,d) q = (n-r)/d di...

The quotient and remainder of a number divided by another (Euclidean Division)

What is the problem? :) You did it correctly. Well, except for the very last line. n = 19 d = 3 r = rem(n,d) q = (n-r)/d di...

8일 전 | 0

답변 있음

need help on my matrix code

An if statement dose NOT work this way. You cannot use that single statement to act on each element of the array, independently....

need help on my matrix code

An if statement dose NOT work this way. You cannot use that single statement to act on each element of the array, independently....

9일 전 | 0

| 수락됨

답변 있음

so for when i try to mutiply the variable v my number is really big can someone explain why. The choose in is user input

I think it MAY be partly that you do not understand how to write numbers. Or, do you not understand how to write algebraic expre...

so for when i try to mutiply the variable v my number is really big can someone explain why. The choose in is user input

I think it MAY be partly that you do not understand how to write numbers. Or, do you not understand how to write algebraic expre...

10일 전 | 1

답변 있음

Cylinder fit to a point cloud data

You seem to be way overthinking this. xyz = REAL_data; xyz0 = mean(xyz) xyz0 = -0.024621 -18.89 0.75025 xyzh...

Cylinder fit to a point cloud data

You seem to be way overthinking this. xyz = REAL_data; xyz0 = mean(xyz) xyz0 = -0.024621 -18.89 0.75025 xyzh...

10일 전 | 0

| 수락됨

답변 있음

I cant solve linear programming

Who can solve it? Most likely, nobody. Your problem is unbounded. I can go through some mathematics to reduce it to show more cl...

I cant solve linear programming

Who can solve it? Most likely, nobody. Your problem is unbounded. I can go through some mathematics to reduce it to show more cl...

10일 전 | 1

답변 있음

Can anyone write a mathlab program for this question?

Can anyone write a mathlab program for this question? The answer is easy - Yes. I can. Do I win the prize? Oh. Wait. You asked...

Can anyone write a mathlab program for this question?

Can anyone write a mathlab program for this question? The answer is easy - Yes. I can. Do I win the prize? Oh. Wait. You asked...

11일 전 | 0

답변 있음

How can a matrix of randperm be generated with variable n*m?

SImpler than you think. M = 4; N = 3; [~,A] = sort(rand(M,N),1) A = 1 1 3 4 2 1 2 3 ...

How can a matrix of randperm be generated with variable n*m?

SImpler than you think. M = 4; N = 3; [~,A] = sort(rand(M,N),1) A = 1 1 3 4 2 1 2 3 ...

12일 전 | 1

| 수락됨

답변 있음

Unrecognized function or variable 'x'.

Where exactly did you define the value of x? I see this line: %x^2=5-y^2 But there is the minor flaw of a comment. Anyway, th...

Unrecognized function or variable 'x'.

Where exactly did you define the value of x? I see this line: %x^2=5-y^2 But there is the minor flaw of a comment. Anyway, th...

13일 전 | 0

답변 있음

Can someone help me solve this. I am trying to evaluate the integral.

You don't understand. Just because a sometimes useful mathematical way of writing the cube of a function like sin, is to write i...

Can someone help me solve this. I am trying to evaluate the integral.

You don't understand. Just because a sometimes useful mathematical way of writing the cube of a function like sin, is to write i...

14일 전 | 0

| 수락됨

답변 있음

negative x axis meaning

This is confusing as a question. You have a plot of some numbers. Some of them are negative. Of course MATLAB will extend the ax...

negative x axis meaning

This is confusing as a question. You have a plot of some numbers. Some of them are negative. Of course MATLAB will extend the ax...

14일 전 | 0

| 수락됨

답변 있음

precision of calculation with Matlab

This must of course fail as you are doing it, since out must generally exceed 2^53-1, the limits of flintmax for a double precis...

precision of calculation with Matlab

This must of course fail as you are doing it, since out must generally exceed 2^53-1, the limits of flintmax for a double precis...

14일 전 | 1

| 수락됨

답변 있음

Does someone has the Composite MicroMechanics COMM toolbox? Thanks!

Just contact the source. This link claims it to be freely available, by contacting the author. https://www.researchgate.net/pub...

Does someone has the Composite MicroMechanics COMM toolbox? Thanks!

Just contact the source. This link claims it to be freely available, by contacting the author. https://www.researchgate.net/pub...

14일 전 | 0

답변 있음

Question on pdepe solver

Why not just read the help? That is, first, I typed doc pdepe Quickly scan down through there, and I see that indeed, pdepe ...

Question on pdepe solver

Why not just read the help? That is, first, I typed doc pdepe Quickly scan down through there, and I see that indeed, pdepe ...

14일 전 | 0

| 수락됨

답변 있음

fminsearch and simulated annealing with penalties

You do not want to solve it using penalties. That tends to cause problems, making the solution more difficult. At best, the opti...

fminsearch and simulated annealing with penalties

You do not want to solve it using penalties. That tends to cause problems, making the solution more difficult. At best, the opti...

15일 전 | 0

답변 있음

How to create a smooth curve through data points?

We don't have your data, so I cannot give any examples. As well, I don't know your definition of a smooth curve. Do you want a...

How to create a smooth curve through data points?

We don't have your data, so I cannot give any examples. As well, I don't know your definition of a smooth curve. Do you want a...

15일 전 | 0

답변 있음

How can I plot a Sin or Cosine graph that looks this this?

Start with one of these: help fplot help ezplot But before that, start by reading the getting started tutorials.

How can I plot a Sin or Cosine graph that looks this this?

Start with one of these: help fplot help ezplot But before that, start by reading the getting started tutorials.

16일 전 | 0

답변 있음

Coding problem in pattern search optimization algorithm

Your objective function needs to return a SCALAR value for any set of inputs. That is, you cannot minimize two (or more) indepen...

Coding problem in pattern search optimization algorithm

Your objective function needs to return a SCALAR value for any set of inputs. That is, you cannot minimize two (or more) indepen...

17일 전 | 0