Statistica
0 Problemi
11 Soluzioni
RANK
43
of 301.835
REPUTAZIONE
4.731
CONTRIBUTI
139 Domande
1.779 Risposte
ACCETTAZIONE DELLE RISPOSTE
51.8%
VOTI RICEVUTI
641
CONTRIBUTI
0 Post
CONTRIBUTI
0 Pubblico Canali
VALUTAZIONE MEDIA
CONTRIBUTI
8 Punti principali
NUMERO MEDIO DI LIKE
1
Feeds
Help using the toeplitz function
"-2 going to down the main diagonal and then 1 in the upper dioagonal and 1 in the lower diagonal." That's symmetric so only on...
circa 24 ore fa | 0
List all memoized function caches
mf1 = memoize(@func1); mf2 = memoize(@func2); for ii = 1:10,mf1(ii);mf2(ii);end clear mf1 mf2 mfs = struct(matlab.lang.inter...
2 giorni fa | 1
| accettato
List all memoized function caches
Hi Matt, Is evalin acceptable? clearvars clearAllMemoizedCaches; mf1a = memoize(@func1); mf1b = memoize(@func1); mf2 = me...
2 giorni fa | 0
Make memoized function calls recognize equivalent input sequences (and so avoid redundant cache entries)
That's interesting and seems to suggest that the input argument list is saved off to some data structure (like a cell array?) be...
2 giorni fa | 1
| accettato
Domanda
What's the Best Way to Convert a .mat File from -v4 format to -v7 Format?
Is there a better way than reading all of the data from the -v4 .mat file and then saving all of the data to a -v7? data = load...
3 giorni fa | 1 risposta | 0
1
rispostaInnerjoin when a table contains user-defined objects
Hi Matt, I think the class defintion has to change so that the myclass constructor can accept zero arguments. I believe that w...
7 giorni fa | 0
| accettato
Integral from a function that has a singularity
According to quadgk, for an integrand with a singularity we should "split the interval and add the results of separate integrati...
8 giorni fa | 0
Domanda
Does Matlab Take Full Advantage of the BLAS Routines?
It's my understanding that Matlab uses BLAS routines under the hood for many matrix algebra operations. Is that correct? If so,...
16 giorni fa | 1 risposta | 0
1
rispostaMemoize an anonymous function with externally scoped variables
[Matt J added:] "... MATLAB® returns the associated cached output values if the following conditions are true. The input argum...
circa un mese fa | 1
| accettato
Solution of ODE with Symbolic Math Toolbox.
Use rewrite to get the solution in terms of heaviside. syms("t", "positive") syms("T_1", "k_p", "positive") syms("u(t)", "y(t...
circa 2 mesi fa | 0
| accettato
BodePlot: Plotting straight lines on the Mag and Phase plots. Can access the phase plot, to do so, but not the mag plot
Looks like the mag and phase axes were reversed, specify the axis input to the line commands. The NextPlot commands aren't neede...
2 mesi fa | 0
| accettato
chebyshev II BPF magnitude response is not equal to 1 in the passband - incorrect magnitude response when using freqz(b,a)
Hi Mohamad, When using the two-output form of zp2sos the gain, g, must be applied to the output of freqz to get the correct fre...
3 mesi fa | 1
How to approach iterative data reading?
Hi Eric, Use logical indexing. time = [rand(1, 5000)]; accel = [rand(1,5000)]; gcamp = [rand(1,5000)]; sd = std(accel); th...
3 mesi fa | 0
| accettato
how to use mussv with negative frequency?
mussv appears to run w/o error for a complex-valued state space model and does extend its analysis to negative frequencies. Alt...
3 mesi fa | 1
Discussion
550,000 Questions on Answers
The 550,000th question has been asked on Answers. How to build a BESS model phasor system - MATLAB Answers - MATLAB Central
3 mesi fa | 0
Domanda
Why Does polyval Return Zero When the Coefficients are Empty?
polyval([],1) polyval(ones(1,0),1) Do those results follow from a mathematical justification or are they arbitrarily specified...
3 mesi fa | 3 risposte | 1
3
rispostepwelch method of power spectral density (psd) calculation
As to why pwelch applies datawrap for the case nfft < numel(win) ... I did a bit more searching to try to find the motivation f...
3 mesi fa | 0
Zero gain margin for an stable system from both allmargin and margin
I believe that allmargin yields a result that a user could incorrectly interpret for this example. Define the open-loop transfe...
3 mesi fa | 0
Direct Dynamics of Two-Link Manipulator
It looks like the Matlab Function block is commented. Right click on it and then click Uncomment on the pop-up menu.
3 mesi fa | 0
Trying to filter timeseries data by logical index on time within matlab function block but it tells me property Time not recognized as valid
Hi Matthew, The output signal of the From File block is not a time series, it's probably a double. The output from the Constan...
3 mesi fa | 0
Does [V,D] = eig(A) always return normalized eigenvectors for any real matrix A?
Whether or not the columns of V are normalized to unit magnitude depends on how eig is called. See eig - Eigenvalues and eigenv...
3 mesi fa | 1
| accettato
Rate Limiter in enabled subsystem
I tried a Rate Limiter block inside an Enabled Subsystem and the simulation ran to completion in both Normal and Accelerator mod...
3 mesi fa | 1
Domanda
What is the Best Way to Call Matlab from a C++ Program and Return Results to that Program?
What is the best way to call Matlab from a C++ program and return results to that program? So far, I can see two options: 1. U...
3 mesi fa | 0 risposte | 0
0
risposteHow to make a matlab script that runs simulink model to run parallel instances of the model
Hi alberto, The third input to setVariable should be the actual value of the variable. simIn(idx) = simIn(idx).setVariable('Se...
3 mesi fa | 0
| accettato
How to Configure Simscape Multibody Block Parameters Using MATLAB
Hi Justina, It does appear that the Simscape Multibody documentation is sparse to non-existent on programmatic use of block par...
3 mesi fa | 1
| accettato
Robust Control: dksyn example
I believe the issue here is that: the plant is unstable, the construction of P2 duplicates all of the states in the generalize...
3 mesi fa | 0
A quarter car model with additional massless degree of freedom for the top mount
Hi @Simon Aldworth Seems like the equation for the massless element would be: m5*x5ddot = kp * (x1 - x5) + cs * (x2dot - x5dot...
4 mesi fa | 0
How can I store data from my simulink model in and and use it during runtime.
Does the trigger event enable the execution of an enbabled subsystem? Is the data to be captured from a signal inside that enabl...
4 mesi fa | 0
simulink reference block or library block
Hi stephane, Component-Based Modeling Guidelines - MATLAB & Simulink is a good place to start, followed by the links at the bot...
4 mesi fa | 0
searchin for an M file in all folders of my PC.
The dir command can recursively search. I think for this question it would be d = dir("C:\**\filetofind.m")
4 mesi fa | 1






