Réponse apportée
If one coordinate of the point is given how to find another coordinate?
This reduces to the so called modular square root problem. That is, solve for x, such that mod(x^2,p) == r where p and r ...

plus de 3 ans il y a | 1

Réponse apportée
Hi everyone, can someone help me with this double sum ?
Surely you can use a loop? Actually just nested loops? Perhaps your problem is MATLAB does not allow a zero index, yet you have ...

plus de 3 ans il y a | 1

Réponse apportée
Calling a custom function in fittype()
Easy peasy. ft = fittype('a + b*exp(c*x)','indep','x') You can now use this as you wish. Oh wait. Maybe what you are asking i...

plus de 3 ans il y a | 0

Réponse apportée
Question about internal aithmetics
This is a subtle point. Actually a very good question. We don't need to look at 1e20. the number 1 is entirely adequate. x = 1;...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How to apply for Random function ?
Random is a function in MATLAB, but it is part of the stats toolox. help random which random So either to do not have the sta...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Stiff Differential Equation solver (Euler?)
You SERIOUSLY do not want to use a standard Euler's method to solve a stiff ODE. You will be wasting your time. Why do you think...

plus de 3 ans il y a | 0

Réponse apportée
How to create a random matrix?
Can you generate a vector of numbers that all lie in the interval [0,1]? (I hope so. read the help for rand.) Can you insure th...

plus de 3 ans il y a | 0

Réponse apportée
How to get log to = 1 or 0?
First, I seriously want to suggest is it a BAD idea to use the variable named log in your code. Why? Because if not, then the ne...

plus de 3 ans il y a | 0

Réponse apportée
How to divide a color circle into 360 regions by degree and read the average RGB value of each region?
You are probably thinking about it the wrong way. How did you generate the color wheel? Or is that just a picture of a color whe...

plus de 3 ans il y a | 0

Réponse apportée
Get a plot next to an existing plot
interparc is a function found on the file exchange (though written by me.) It is not part of MATLAB, until you get it from the f...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
Prolate spheroid surface area
You need to learn about the dotted operators, and why they are necessary. Yuou want to compute an element-wise operation, one t...

plus de 3 ans il y a | 0

Réponse apportée
how we write summation with loop
Note that I think you are trying to write some other language, while you are using MATLAB. For example, this is NOT legal MATLAB...

plus de 3 ans il y a | 0

Réponse apportée
Store trios of values from different vectors in an only vector
Please stop posting the same question multiple times. You made some effort though. First, learn to use meshgrid. [X,Y] = meshg...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
I am trying to fit a line (to a blue curve in the image) using spline, pchip or makima function, however, theses function do not work properly (red line).
They don't work, because your curve does not describe a SINGLE valuesd function y(x). That is, for many values of x, there are T...

plus de 3 ans il y a | 0

Réponse apportée
How do I find the eigenvalues and vectors of an equation not of form (A*x = b*x)?
This is a classic problem in eigenvalues, caled the generalized eigenvalue problem. That is, if you want to solve the eigenprobl...

plus de 3 ans il y a | 0

Réponse apportée
How to convert decimals to Ascii characters?
The ascii encoding is not what you are asking to find, since this produces a different result. D = 0:63; char(D + 'A') Howeve...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Set of all bipartite graphs
No problem. Well, there probably IS a problem, as people are far too often surprised at how big things get. How do you generate...

plus de 3 ans il y a | 0

Réponse apportée
I have an image that is 234x432x4 size wise. I tried imshow() and image(), but it doesn't work. What do I use?
You have a 4 channel image, most likely CMYK, certainly not RGB. For example: imshow(rand(234,432,3)) As you can see, there ...

plus de 3 ans il y a | 0

Réponse apportée
3/8 Simpson's Rule
Please don't keep on posting the same question. You got no answer, since your question was itself terribly confusing, as was you...

plus de 3 ans il y a | 1

Réponse apportée
How to find position function with acceleration function using matlab
Just knowing the acceleration is meaningless, UNLESS you know how long the acceleration was in force. Next, acceleration is a ve...

plus de 3 ans il y a | 0

Réponse apportée
How can i get ODE to solve an equation if my y0 is more than one value?
You seem to have a misunderstanding. You are asking to solve a differential equation, here a first order ODE. (A Jan points out...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Get the displacement component which is perpendicular to the triangle (finite element)
A highly confusing question. You talk about a triangle, but you do not tell us the coordinates of the triangle, only the displac...

plus de 3 ans il y a | 1

Réponse apportée
Using nested FOR() loops to populate a matrix
You have a solution. It works. Do you need for loops, or worse, nested for loops? Of course not. The entire point of this answer...

plus de 3 ans il y a | 1

Réponse apportée
Why is it that when I am trying to create a function, the run button at the top turns grey?
You DON'T use run on a function. That makes no sense I'm afraid. Instead, functions in MATLAB are things you would call from ei...

plus de 3 ans il y a | 0

Réponse apportée
Matlab code for solving nonlinear equations
Actiiually, this is almost trivial. Seriously. It is. All of the trig terms are just known constants. And everything else is in ...

plus de 3 ans il y a | 2

| A accepté

Réponse apportée
how to draw the hyperboloid of one sheet?
help fimplicit3

plus de 3 ans il y a | 0

Réponse apportée
if and sum not working together
I'll say the same thing, but differently. As @Steven Lord points out, you cannot represent the fraction 1/3 exactly as a decim...

plus de 3 ans il y a | 2

Réponse apportée
Looping if between 2 numbers
As @Jeffrey Clark said, the & operator is a LOGICAL operator. Perhaps what you want to do is have a loop over a discontigous dom...

plus de 3 ans il y a | 0

Réponse apportée
How can I solve a system of non-linear equations with complex numbers?
WHY NOT TRY IT? Assuming you really intended for the second equation to use sind(120)... syms theta r eq1 = 0 == 2*cosd(240) +...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
what formula do I have to put for calculating by using MATLAB?
Start here: help sum Then spend some time on the MATLAB Onramp tutorial, since this is a basic question.

plus de 3 ans il y a | 0

| A accepté

Charger plus