How to get multiple outputs from a function?
[x,y] = subfuntest(a,b); When you call it with no arguments, it returns only the first, putting it in the default variable name...

18日 前 | 1

| 採用済み

how to find the sum of rows in an array, that fit a condition?
When a problem is too complex to solve, then break it down into SMALLER parts, that you can handle. You want to know how many r...

18日 前 | 1

| 採用済み

Normal Distribution Specifying parameters
Hint: What does normcdf tell you? (In fact, I think this totally gives the answer away, IF you understand what the CDF means.) ...

19日 前 | 0

Solve equationsystem (A*V).'*B*(A*V)=C for matrix A
As it turns out though, your problem is actually quite simple. Assume that V is full rank. As long as that is true, then as can...

19日 前 | 0

| 採用済み

Does the cubic Hermite spline interpolation of a monotone data with known slopes guarantee the monotonicity in interpolation segments?
pchip always gaurantees a monotonic interpolant if the data is itself monotone. However... If you provide the derivatives yours...

19日 前 | 0

MATLAB equivalent to ls -l
It depends on what you want from it. What exactly are you looking for? D = dir MAY give you much of what you may want, if you ...

20日 前 | 0

| 採用済み

How to write matlab code for modular multiplicative inverse in cryptography
A multiplicative inverse modulo some number p means that mod(x*xinv,p) == 1 That is, x has a mutiplicative inverse modulo p,...

20日 前 | 2

Why Power of Matrix with decimal values gives really big numbers?
This is basic linear algebra. I think you do not understand what is happening, or perhaps you do not understand Markov transitio...

20日 前 | 2

| 採用済み

When using interp3, do the input grids need to have evenly spaced values?
No. They do not need to be EVENLY spaced. So a grid spacing of [1 2 4 8 15 17 23 100] is entirely valid. Though depending on the...

20日 前 | 0

| 採用済み

Matlab: what happends under the hood when choosing 2 seeds far away with rng
The "separation" of two seeds is completely irrelevant. Separate them by 1 or 1e6, and they are just different seeds. If you use...

20日 前 | 0

Efficiently Running MATLAB: system specifications?
My suggestions would be: As much memory as you can afford. This allows you to vectorize solutions sometimes, offering improved ...

21日 前 | 0

Hi, i have a function which is function of a unknown constant ''á''. For each a there is a corresponding curve..i want to search that function curve for a set of ''a'' values which should have maximum peak value...
This is just a 2-dimensional optimization. fminsearch will suffice. You have some known function, a function of r, as well as t...

23日 前 | 0

| 採用済み

taylor series expansion with initial condition
Why not try it! ??? Make an effort. For example, this seems the obvious thing to try. So what does this do? syms x f(x) p f1=...

23日 前 | 1

| 採用済み

What capability would you want to see added to the symbolic toolbox in the future?
My own wish list starts with the large integer capabilities... A direct modular multiplicative inverse. Note that you can get e...

23日 前 | 1

When I do the standard deviation for the 2 arrays by hand I get a different answer than Matlab. Ive had 2 colleagues check and we all got the same answer; is there a problem with my code?
How can we possibly know if there is a problem with your code? You fail to show how you computed the standard deviation. std2 is...

23日 前 | 0

| 採用済み

how to solve this non-linear equations?
It is pretty easy to find at least one solution. vpasolve will do so, and my guess is, fsolve will do the same. syms v w p=30;...

24日 前 | 0

Convert Nx1 matrix into a single number
There are probably a gajillion ways to do this trivially. Since A is a vector of numeric digits, stored as numbers, the simples...

24日 前 | 1

| 採用済み

solving third degree modular equations in matlab?
Far too late for an answer. Sorry, as I just saw this question. But it is also perhaps quite a bit easier than you may think. A ...

25日 前 | 1

Spiroglyphic digital image processing
To be honest, I don't see the problem. Start with a black and white image. Create a new image of the same size that is all bla...

25日 前 | 0

| 採用済み

Unstable derivative approximation when steps get too small
This is a fundamental idea about floating point numbers that you need to understand, at least if you will work with computers in...

25日 前 | 2

| 採用済み

What capability would you want to see added to the symbolic toolbox in the future?
As someone who has written several tools to work with high precision numbers and large scale integers, I've also used the symbol...

25日 前 | 4 件の回答 | 1

### 4

help me to solve for θ?
The trick is to use contour plots properly. I'll use the function as written by Star to save me some editting time. fcn = @(th)...

26日 前 | 0

How to find the roots of the Equation
This question gets asked so often, that it must be part of a homework or something. fplot(@(x) tan(x/2)+tanh(x/2),[-10,10]) gr...

28日 前 | 1

| 採用済み

remove the functionality of special characters
What do you think the % symbol does in MATLAB? Answer: when not inside quotes (so a string) it creates a comment. What do eithe...

28日 前 | 0

| 採用済み

subplot code in matlab
This should be in the help for subplot. You want to create a 1x3 array of subplots. subplot(1,3,1) plot(rand(5),'.') subplot(...

29日 前 | 0

| 採用済み

Why I keep getting error on this Numerical Integration problem ?
Your problem is you are mixing up numerical integratino and symbolic integration. What are you trying to do? A numerical soluti...

29日 前 | 0

How to integrate discrete values over a surface
You are a bit ambiguous here, but I will guess I understand what you are asking. You have a quad mesh over that domain. At eac...

| 採用済み

Creating a Random Vector with Several Conditions
Um, trivial? I suppose trivial is in the eyes of the beholder. The equation dot(Z1,Y1) == 0 implies that Y1 lies in a plane in ...

| 採用済み

How can I get more than 49 digits of pi in a string?
You could always download my HPF toolbox from the file exchange. It will provide 500100 digits of pi. P = hpf('pi',500000); cp...

Create a spline along points and then extract points at a specified distance apart
Actually, you CAN use interparc to determine points at a given distance along the curve, with just one extra tool, my arclength ...

Load more