Respondida
Matlab function 'movmean' doesn't work on simulink
This is expected if the input data is scalar (not a 1 x N or N x 1 vector or 2D array.) Simulink feeds scalar signals to MATLAB...

6 meses hace | 0

Respondida
为什么收到 MathWorks Liscensing Error 8
License error -8 is typically associated with problems with license servers. There are also obscure problems such as using Turki...

6 meses hace | 0

Respondida
Use variable values froma code block directly in a Live Script text cell (inline evaluation)
I believe it just made that stuff up.

6 meses hace | 1

Respondida
Add a datestr to duration data to get in datestr format
Answering the question as given NOW = datetime('now'); %here accumulate array of tic/toc values into variable DURATIONS. %......

6 meses hace | 1

Respondida
Unable to resolve the name matlab.internal.addons.showAddon in Matlab 2020b
matlab.internal.addons.showAddon is a little-documented function, with no doc page. It was added in R2024a.

6 meses hace | 0

Respondida
How do I Create an array of plots. The results disapear into "handle to deleted PolarCompassPlot" See code
You are calling compassplot() in a loop. By default, each call to compassplot() removes all existing graphics on the axes -- s...

6 meses hace | 1

Respondida
Why does uint64([9007199254740993]) results in 9007199254740992? What happens to the least significant bit?
This result is expected. uint64([9007199254740993]) is processed as temp1 = double(9007199254740993); temp2 = [temp1]; outpu...

6 meses hace | 0

Respondida
Inverse Problem, I have unknowns to solve it
A = squeeze(Sig_D(1,1,:)).'; B = squeeze(Sig_D(1,1,:)).'; C = squeeze(Sig_D(3,3,:)).'; D = squeeze(Sig_D(1,3,:)).'; F = squ...

6 meses hace | 0

Respondida
How to make MATLAB use only physical cores
When you start a parpool, MATLAB asks the scheduler to run however-many tasks. It is up to the operating system scheduler as to ...

6 meses hace | 0

Respondida
Can't find Specialized Power Systems in Simscape
There is not specific Add-On for Specialized Power Systems. Specialized Power Systems is part of Simscape Electrical. That said...

6 meses hace | 0

| aceptada

Respondida
How to find the real roots and index root?
You need to be careful working with root indices. There is, as far as I know, no documentation as to what the root indices actu...

6 meses hace | 0

Respondida
License assignation after computer crash
Visit https://www.mathworks.com/mwaccount/?s_tid=user_nav_myac . Click on the line corresponding to the license in question. Cli...

6 meses hace | 0

Respondida
Can I use imported from matlab workspace matrix in simulink function block?
See https://www.mathworks.com/help/simulink/ug/migrate-models-to-use-dictionary.html for instructions on linking data dictionari...

6 meses hace | 0

Respondida
Current axis tick vector differ between having figure visible and invisible
Automatic ticks are not reliably computed until you make the figure visible again. As long as the figure is invisible, the plo...

6 meses hace | 0

| aceptada

Respondida
Does split screen work in R2025b?
The trick for R2025b appears to be "undock editor". The screen will be split in the undocked session. If you then dock the edit...

6 meses hace | 1

| aceptada

Respondida
Understanding recursion for decimal to binary conversion
The posted code has no recursion. In order for code to have recursion, there it must contain a chain of calls that end up calli...

6 meses hace | 0

Respondida
Is There an Inconsistency with How Unassigned Values are Filled After an Assignment into a Table?
T(3) = "abc" U(3) = datetime('now') x(3) = 5 So the filling is consistent with arrays.

6 meses hace | 0

Respondida
symbolic integrate and plot a function of one variable
The basic problem is that the integral that is produced by dsolve() is an indefinite integral, not a definite integral. That wor...

6 meses hace | 0

Discussion


I'm famous ;-)
I can't believe someone put time into this ;-)

6 meses hace | 0

Respondida
Opening an excel file, writing to it and closing it does not
excelWorkbook=Excel.workbooks.Open(ExcelOut) % Open Excel Excel.ActiveWorkbook.Save(); % Save Excel File The names must mat...

6 meses hace | 0

| aceptada

Respondida
Functionality Simulink Add-block
Use convert blocks on the logical values to convert them to one of the int datatypes or to single or double precision. https://...

6 meses hace | 0

| aceptada

Respondida
Activating a new license and deactivating the older one
Visit https://www.mathworks.com/mwaccount/?s_tid=user_nav_myac . Click on the line corresponding to the license in question. Cli...

6 meses hace | 0

Respondida
Defining inequality constraint A*x <= b for genetic algorithm
In order to have a hope of doing it through linear inequalities, you would have to first have a row that tested whether the firs...

6 meses hace | 0

Respondida
How to format both left and right of the decimal place with sprintf?
N = [964.155 9590.43 350.76 0.00]; fprintf('%07.2f\n', N)

6 meses hace | 0

| aceptada

Respondida
Can "diary" be set to export exact text where hyperlinks are invoked instead of code or other characters?
No. In order for that to work, the entire file would need to be formatted as HTML. Formatting the file as HTML would involve mo...

6 meses hace | 1

| aceptada

Respondida
Is there a way to set figure default to "undocked" when double-clicking on a .fig file?
set(groot, 'defaultFigureWindowStyle', 'normal') possibly ?

6 meses hace | 2

| aceptada

Respondida
Copying data from variable to script
If you type in CalIndex = [] and then paste in the N x 2 table between the [ and the ] then everything will work out.

6 meses hace | 1

| aceptada

Respondida
Why does fprintf attach a negative sign to a zero?
fprintf('%g %g\n', 0, -0) Negative zero is represented differently than non-negative zero, This is because it is mathematically...

6 meses hace | 0

Respondida
go back to previous if condition from an elseif in for loop
You have received some good answers already, but I wanted to show you how to do what you actually asked for. opt = [1 2 3 1]; ...

6 meses hace | 1

Respondida
Error getting in.
If you changed your Windows username, then you are probably receiving an Error 9, unauthorized user. By far the simplest way to...

6 meses hace | 0

Cargar más