답변 있음
How to rotate a pointcloud data and align parallel with y-z axis?
yz=readmatrix('CS_DATA.xls','Range',[1,2]); [~,v1]=min(yz*[+1;+1]); [~,v2]=min(yz*[-1;+1]); [x1,y1,x2,y2]=deal(yz(v1,1), ...

2년 초과 전 | 2

| 수락됨

답변 있음
New toolbox not listed in installation options
Try re-downloading the installer.

2년 초과 전 | 0

| 수락됨

답변 있음
xcorr always gives best aligment of 0 (which by visual inspection is wrong)
Here's another possible comparison criterion where the signals are pre-normalized so that their minimum values are zero. load ...

2년 초과 전 | 0

답변 있음
xcorr always gives best aligment of 0 (which by visual inspection is wrong)
You could look for an optimal cyclic shift load y1y2; N=numel(y1); r=ifft( fft(y1).*conj(fft(y2)) ,'symmetric'); [~,t]...

2년 초과 전 | 0

답변 있음
Solve Linear Equation with Constraints on Variables
You can use trustregprob from this FEX download, https://www.mathworks.com/matlabcentral/fileexchange/53191-quadratic-minimizat...

2년 초과 전 | 1

| 수락됨

답변 있음
xcorr always gives best aligment of 0 (which by visual inspection is wrong)
Visually it can be seen that maximum correlation is at aligment ~30000 I'm afraid not: load y1y2; x=1:numel(y1); y3=inte...

2년 초과 전 | 0

답변 있음
xcorr always gives best aligment of 0 (which by visual inspection is wrong)
It is not clear how corrcoeff would allow you to align the two curves. Perhaps you intended to use xcorr.

2년 초과 전 | 0

답변 있음
series computing is faster than parallel computing using parfor
Assuming you are on a local parpool, it is never clear whether parfor will be faster than a serial loop. You are dividing the lo...

2년 초과 전 | 0

답변 있음
Difference between lsqlin (using IP-algorithm) and fmincon (using IP-algorithm)
Your linear least squares cost function is highly ill-conditioned. Essentially, I_BB_solve is a singular matrix. >> cond(I_BB_s...

2년 초과 전 | 0

답변 있음
How do I use surf on a specific set of points
You can use trisurf. This requires you to decide upon the triangle connectivity, but many people just use the Delaunay triangula...

2년 초과 전 | 0

답변 있음
How to model affine cone constraint using secondordercone() with coneprog() solver?
Perhaps as follows: socConstraint.A=blkdiag(A,constant); socConstraint.b=zeros(n+1,1); socConstraint.d=[d;0]; socConstraint....

2년 초과 전 | 1

| 수락됨

답변 있음
Use My Own Interpolation Function to Find the Coefficients
Since your model function is a 3rd order polynomial, you can use polyfit to find the coefficients. Then you can use polyval to e...

2년 초과 전 | 0

답변 있음
Number of input parameters in Superclass method
My design would be as below. classdef Superclass properties params %now a struct doe prop1 ...

2년 초과 전 | 0

| 수락됨

답변 있음
Comparison between two vectors and locate the error
A=[ 5 2 -3 4 ]; B=[ -3 2 2 4 ]; locations = find(A~=B)

2년 초과 전 | 0

답변 있음
Unreconized function or variable
vR is never defined because none of your switch cases are ever satisfied. One solution: switch diode %%% SWITCH CODE HER...

2년 초과 전 | 0

답변 있음
how many input parameters to the pass function
Why not just pass the entire app object? function CalcolaButtonPushed(app, event) app.EquityUnfilteredCheckBo...

2년 초과 전 | 0

| 수락됨

답변 있음
How to use least square fit to 2D matrix data
[~,location]=min(Data);

2년 초과 전 | 0

답변 있음
Matlab matrix copy-paste problem (pasting a matrix into the Matlab Editor in older, 1-line format)
I don't think there is a preference setting that will restore the behavior you want. A workaround though is to copy/paste from t...

2년 초과 전 | 0

| 수락됨

답변 있음
Matlab matrix copy-paste problem (pasting a matrix into the Matlab Editor in older, 1-line format)
Type the brackets [] at the desired location and paste into the space between them.

2년 초과 전 | 0

답변 있음
Using print function to save figures with text labels
Conside export_fig, https://www.mathworks.com/matlabcentral/fileexchange/23629-export_fig?s_tid=srchtitle

2년 초과 전 | 0

| 수락됨

답변 있음
Why do we need to use dynamic properties?
They are a convenience, not a requirement. From the documentation: Use dynamic properties to attach temporary data to objects o...

2년 초과 전 | 0

답변 있음
I'm trying to vectorize my for loop, what would be the best method?
yvals=Linearparams(1)*timevals+Linearparams(2)+sin(nonLinearParams*timevals);

2년 초과 전 | 1

| 수락됨

답변 있음
Piecewise 3D plotting
Perhaps this is what you meant: syms Z(x,y) y1 = -0.00278018473212*x.^3 + 0.0764514697018*x.^2 + -0.481036946424*x + 4.3788560...

2년 초과 전 | 0

답변 있음
Function Argument Validation: Comparing property size to a variable
No, you can't do that, because the object has to be able to instantiate properties before the constructor is called.Therefore, p...

2년 초과 전 | 0

| 수락됨

답변 있음
Why doesn't parfeval(@splitapply) improve splitapply's performance?
If you're going to be using PCT functions anyway, I wonder if a parfor loop might do better than splitapply. I.e., instead of, ...

2년 초과 전 | 0

답변 있음
Levenberg Marquardt algortihm as custom training function using dlupdate
Levenberg-Marquardt would only be practical for very small networks and training data sizes. That is the case in the code you've...

2년 초과 전 | 0

답변 있음
Getting error in PARFOR in MATLAB
It looks like you are trying to read a file (with load()) while it's being written to. Perhaps you mean to do the reading first?...

2년 초과 전 | 0

답변 있음
How do you write a function that adds all odd numbers between 2 even numbers?
As a hint, it is very easy to create a vector of consecutive odd numbers, e.g., x=(5:2:11)

2년 초과 전 | 0

답변 있음
Calculation of a sum with variable values from textbox prompt
Then make a prompt with an input for each resistor value It shouldn't require multiple prompts, ...

2년 초과 전 | 0

| 수락됨

답변 있음
How best and most efficient way to build this matrix
[C,R]=deal(zeros(1,10)); C(1:4)=[-4 6 -4 1]; R(1:2)=[-4,1]; A=toeplitz(C,R); A(1)=-2; A(end,:)=flip(A(1,:))

2년 초과 전 | 0

| 수락됨

더 보기