回答済み

Polyfit fitting not work on Matlab

What is it that you think you are doing? Because this seems a bit strange to me. cooefs = [346.355000, -53.3701...

Polyfit fitting not work on Matlab

What is it that you think you are doing? Because this seems a bit strange to me. cooefs = [346.355000, -53.3701...

26日 前 | 0

| 採用済み

回答済み

Create block sparse matrix

Are you asking how to create a block diagonal sparse matrix? Easy peasy. tic N = 100; M = 10000; Z = sparse(rand(N,N*M)); ...

Create block sparse matrix

Are you asking how to create a block diagonal sparse matrix? Easy peasy. tic N = 100; M = 10000; Z = sparse(rand(N,N*M)); ...

26日 前 | 1

回答済み

How to generate a random point in the volume of a cylinder

Since you already have an answer posted... Pretty easy, actually. So two points that define the ends of the cylinder, and a know...

How to generate a random point in the volume of a cylinder

Since you already have an answer posted... Pretty easy, actually. So two points that define the ends of the cylinder, and a know...

26日 前 | 2

| 採用済み

回答済み

can we check a condition at the end of a loop?

Where you are struggling is in explaining what you want to do. Giving an example is often a good idea. That is, give an example ...

can we check a condition at the end of a loop?

Where you are struggling is in explaining what you want to do. Giving an example is often a good idea. That is, give an example ...

29日 前 | 1

| 採用済み

回答済み

Trying to do an integral

An alternative is to try a different solver. I seems Alpha finds a solution for the indefinite integral, so the definite integra...

Trying to do an integral

An alternative is to try a different solver. I seems Alpha finds a solution for the indefinite integral, so the definite integra...

30日 前 | 0

回答済み

When using alpha shape and the alpha radius is not specified. How does MATLAB obtain it? I want to understand it.

I don't have access to the code, so I can only surmise (since I've written alpha shape codes before in MATLAB, but not the one i...

When using alpha shape and the alpha radius is not specified. How does MATLAB obtain it? I want to understand it.

I don't have access to the code, so I can only surmise (since I've written alpha shape codes before in MATLAB, but not the one i...

約1ヶ月 前 | 0

| 採用済み

回答済み

intermediate exponential calculation goes to infinity

Calc 101. An integral is a linear operator. You can move any multiplicative constant inside or outside of the integral. Suppos...

intermediate exponential calculation goes to infinity

Calc 101. An integral is a linear operator. You can move any multiplicative constant inside or outside of the integral. Suppos...

約1ヶ月 前 | 0

| 採用済み

回答済み

Generate beta random number without statistics toolbox

As a followup, I note that the answer by dpb seems to be incorrect. There are several ways to generate a beta random variable. ...

Generate beta random number without statistics toolbox

As a followup, I note that the answer by dpb seems to be incorrect. There are several ways to generate a beta random variable. ...

約1ヶ月 前 | 0

| 採用済み

回答済み

Symbolic solver yields wrong solution

It seems a subtle thing. We need to "branch" out from our preconceptions. ;-) pretty(solutions) / 0 \ | | | -p ...

Symbolic solver yields wrong solution

It seems a subtle thing. We need to "branch" out from our preconceptions. ;-) pretty(solutions) / 0 \ | | | -p ...

約1ヶ月 前 | 4

回答済み

How do I explain the random functions to my professor?

I wonder if your professor needs to learn a few things. For starters, that Minitab is not doing anything any better than is MATL...

How do I explain the random functions to my professor?

I wonder if your professor needs to learn a few things. For starters, that Minitab is not doing anything any better than is MATL...

約1ヶ月 前 | 5

| 採用済み

回答済み

How to fit a curve to a step function?

ALWAYS plot everything. Do that before you do anything else. plot(xavg_40s1,havg_40s1,'.') grid on So your data looks like ...

How to fit a curve to a step function?

ALWAYS plot everything. Do that before you do anything else. plot(xavg_40s1,havg_40s1,'.') grid on So your data looks like ...

約1ヶ月 前 | 3

| 採用済み

回答済み

Not enough input arguments

What is the purpose of that line? Lets see... help square 'square' requires Signal Processing Toolbox. So, assuming that you ...

Not enough input arguments

What is the purpose of that line? Lets see... help square 'square' requires Signal Processing Toolbox. So, assuming that you ...

約1ヶ月 前 | 0

回答済み

NAN from griddata for scatteredInterpolant

Your problem is that you have no idea how to use those tools. There is no need to use griddata AFTER you used scatteredInterpola...

NAN from griddata for scatteredInterpolant

Your problem is that you have no idea how to use those tools. There is no need to use griddata AFTER you used scatteredInterpola...

約1ヶ月 前 | 0

| 採用済み

回答済み

Graphing two parametric functions in terms of x

You got exactly the correct thing. You just need to look carefully at the y axis labels on the two plots. Just add this line af...

Graphing two parametric functions in terms of x

You got exactly the correct thing. You just need to look carefully at the y axis labels on the two plots. Just add this line af...

約1ヶ月 前 | 0

| 採用済み

回答済み

Are there any plans to add support in exportONNXNetwork tool for the maxUnpooling2dLayer?

Sorry, but surely not possible to tell you. MathWorks does not discuss their plans for the future on this forum. Anyone who doe...

Are there any plans to add support in exportONNXNetwork tool for the maxUnpooling2dLayer?

Sorry, but surely not possible to tell you. MathWorks does not discuss their plans for the future on this forum. Anyone who doe...

約1ヶ月 前 | 0

回答済み

creating a curve from XYZ points (centreline) and then split curve into new points

This is a simple problem of interpolation, except that you don't know how to do the interpolation. Standard tools like interp1 d...

creating a curve from XYZ points (centreline) and then split curve into new points

This is a simple problem of interpolation, except that you don't know how to do the interpolation. Standard tools like interp1 d...

約1ヶ月 前 | 1

回答済み

Matlab Crushes when new .m file is added

This is not a crash, nor even a crush. It is just that MATLAB caches the files in the MATLAB directories. It does this to enhanc...

Matlab Crushes when new .m file is added

This is not a crash, nor even a crush. It is just that MATLAB caches the files in the MATLAB directories. It does this to enhanc...

約1ヶ月 前 | 0

| 採用済み

回答済み

dot product for complex vector

help dot dot Vector dot product. C = dot(A,B) returns the scalar product of the vectors A and B. A and B must be ve...

dot product for complex vector

help dot dot Vector dot product. C = dot(A,B) returns the scalar product of the vectors A and B. A and B must be ve...

約1ヶ月 前 | 0

| 採用済み

回答済み

i need to switch all integers in my array to positive numbers

You might need to read the getting started tutorials, if you are asking questions this basic. help abs

i need to switch all integers in my array to positive numbers

You might need to read the getting started tutorials, if you are asking questions this basic. help abs

約1ヶ月 前 | 0

回答済み

large numbers in K means

x = rand(1048575,1); size(x) ans = 1048575 1 [IDX, C] = kmeans(x, 10); C Warning: Failed to converge...

large numbers in K means

x = rand(1048575,1); size(x) ans = 1048575 1 [IDX, C] = kmeans(x, 10); C Warning: Failed to converge...

約1ヶ月 前 | 0

回答済み

Expression of interpolating function

A high order interpolating polynomial is a REALLY, REALLY, REALLY bad idea. There, if i said it three times, it must be true. Se...

Expression of interpolating function

A high order interpolating polynomial is a REALLY, REALLY, REALLY bad idea. There, if i said it three times, it must be true. Se...

約1ヶ月 前 | 0

回答済み

In-Situ Combustion Model - MATLAB code

This is a simple error of syntax, which seems a bit strange for someone who has written such a long code to misunderstand. You s...

In-Situ Combustion Model - MATLAB code

This is a simple error of syntax, which seems a bit strange for someone who has written such a long code to misunderstand. You s...

約1ヶ月 前 | 1

| 採用済み

回答済み

H is a 108x108 tall array, P is a 108x9 double array, when excute etu=H\P , this syntax is wrong, what is right ?

Why would you use tall on a problem that tiny? Anyway, you could just convert to double. In fact, that proves you do not seem to...

H is a 108x108 tall array, P is a 108x9 double array, when excute etu=H\P , this syntax is wrong, what is right ?

Why would you use tall on a problem that tiny? Anyway, you could just convert to double. In fact, that proves you do not seem to...

約1ヶ月 前 | 0

回答済み

Generate Random Matrix 0's,1's

Easy enough. matno = 10; % the number of random possiblities rows=10; columns=3; Now we want to create a matrix of size (row...

Generate Random Matrix 0's,1's

Easy enough. matno = 10; % the number of random possiblities rows=10; columns=3; Now we want to create a matrix of size (row...

約1ヶ月 前 | 1

| 採用済み

回答済み

How do I extract 3D matrix from 5D matrix

What does it mean to extract a specific matrix? p = 1; z = 1; A = D(:,:,:,p,z); is a matrix of the desired size, extracting...

How do I extract 3D matrix from 5D matrix

What does it mean to extract a specific matrix? p = 1; z = 1; A = D(:,:,:,p,z); is a matrix of the desired size, extracting...

約1ヶ月 前 | 2

| 採用済み

回答済み

Sparse Matrix with Non-positive Indices

What you say makes no sense. If you have a full matrix already, and you are turning that into a sparse matrix, then you would ju...

Sparse Matrix with Non-positive Indices

What you say makes no sense. If you have a full matrix already, and you are turning that into a sparse matrix, then you would ju...

約1ヶ月 前 | 1

回答済み

Problem optimizing anonymous function using fzero

There is no need to use symbolic tools to solve problems via fzero, merely understanding how to use functions. However, your que...

Problem optimizing anonymous function using fzero

There is no need to use symbolic tools to solve problems via fzero, merely understanding how to use functions. However, your que...

約1ヶ月 前 | 1

回答済み

error using Solve with inequality

You did not follow the example carefully. syms x >> S = solve(x^2 - 4*x + 3 < 0,'returnconditions',true) S = struct with ...

error using Solve with inequality

You did not follow the example carefully. syms x >> S = solve(x^2 - 4*x + 3 < 0,'returnconditions',true) S = struct with ...

約1ヶ月 前 | 1

| 採用済み

回答済み

Obtain eigenvalue from matrix and known eigenvector

The simple answer, as long as the vector x IS an eigenvector. is just: val = norm(A*x)/norm(x); You should see that this is no...

Obtain eigenvalue from matrix and known eigenvector

The simple answer, as long as the vector x IS an eigenvector. is just: val = norm(A*x)/norm(x); You should see that this is no...

約1ヶ月 前 | 0

| 採用済み