Réponse apportée
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...

2 mois il y a | 0

Réponse apportée
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]; ...

2 mois il y a | 1

Réponse apportée
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...

2 mois il y a | 0

Réponse apportée
using knob to adjust audio frequency
Use uiknob with the 'ValueChangedFcn' option to call a callback function that stores the new frequency. Beyond that will depend...

2 mois il y a | 0

Réponse apportée
Is it possible to perform real-time low-pass filtering on the data received from the USRP X310 in Matlab
Any data you receive from the USRP will be packetized and will suffer from variable time delay. It is not possible to perform re...

2 mois il y a | 0

| A accepté

Réponse apportée
How to enable old style of 'figure'
There is no way to enable the old style of figures. The closest you can get is to set WindowStyle = 'normal' on the figure(), t...

2 mois il y a | 0

Réponse apportée
how can i expose an AC electrical out of subsystem
Instructions for adding output ports to subsystems are given https://www.mathworks.com/help/simulink/ug/connect-subsystems.html ...

2 mois il y a | 0

| A accepté

Réponse apportée
How to build now that Specialized Power Systems library is GONE
Specialized Power Systems was restored as of R2025b Release 1. Use sps_lib to bring up the library browser. However, SPS will b...

2 mois il y a | 0

Réponse apportée
How do I import an audio file into simulink?
As a pre-processing step in MATLAB, use audioread to read the audio into the workspace and fetch the sample rate. Then, if neces...

2 mois il y a | 0

Réponse apportée
subplot automatically fill in next position for selection of plots in for loop
subplot(2,4,state-4)

2 mois il y a | 0

Réponse apportée
Make command line returns appear on separate lines, not one semi-colon-delimited line
if ispc() Delim = ';'; else Delim = ':'; end Temp = regexp(genpath(pwd), Delim, 'split'); if isempty(Temp{end}) Temp(end) = []...

2 mois il y a | 1

Réponse apportée
Transpose Matrix in Simulink 2020a
If it must be done through a script, then use an Interpreted Function Block https://www.mathworks.com/help/simulink/slref/interp...

3 mois il y a | 0

Réponse apportée
How to implement interpolation using Prelookup using a MATLAB function?
Convert your 4D data into a 3D array together with an (1201*26*37) x 384 array. The 3D array values should be column indices in...

3 mois il y a | 0

Réponse apportée
Make Serial Communication run in differnt thread from Matlab GUI
Use https://www.mathworks.com/help/matlab/ref/serialport.configurecallback.html When callbacks are enabled, serial port data i...

3 mois il y a | 0

Réponse apportée
Using symbolic syms inside a Simulink Function — Error: Symbolic not allowed
You cannot mix symbolic variables and Control System Toolbox or Simulink Control Design https://www.mathworks.com/help/slcontrol...

3 mois il y a | 1

Réponse apportée
i have "Error in state of SceneNode. String scalar or character vector must have valid interpreter" Please help me to solve it T-T
The TeX interpreter does not support any of the trig functions. https://www.mathworks.com/help/matlab/ref/text.html#f68-481090...

3 mois il y a | 0

Réponse apportée
transmission time of reading the first 200 lines of a large .csv file using datastore from AMZ S3 to a local computer
I suspect that more than 200 lines are being examined automatically in order to deduce the format of the data. If, for example, ...

3 mois il y a | 0

Réponse apportée
Solve system of equations
Examine the second and third equations. The terms - B4*a0 - B2 are the same between the two of them, so you can subtract the two...

3 mois il y a | 1

| A accepté

Réponse apportée
How to use MATLAB UAV Toolbox
If you have a Student or Student Suite license, then you can purchase the UAV toolbox. For most people you can use https://www.m...

3 mois il y a | 1

| A accepté

Réponse apportée
Using logic to select specific values in a matrix
A = SmallerSample assuming that A is a table idnt = A(:,1) == 1 ; () subscripting of a table yields a table. == has, somewha...

3 mois il y a | 0

| A accepté

Réponse apportée
Integer conversion without precision loss for literal function inputs
Does anyone know if there is a trick to get this functionality There is no way of doing that. Any way of doing that would have...

3 mois il y a | 2

Réponse apportée
Is there a contourc equivalent for contourm?
You can make the contourm() call within a Process based parallel pool (such as using parfeval()). This has notable overhead......

3 mois il y a | 0

Discussion


cody comment voting idea
In https://www.mathworks.com/matlabcentral/answers/38165-how-to-remove-decimal#comment_3345149 @Luisa asks, @Cody Team, how can...

3 mois il y a | 0

Réponse apportée
Does Symbolic Math Toolbox Formally Support Function Composition?
This is not legal: syms f(x) g(x) h(f, g) = f + g

3 mois il y a | 0

| A accepté

Réponse apportée
no correct reaction time or button press possible
Using tic/toc will not accurately measure reaction time. I would recommend that you use methods from the third-party Psychtoolb...

3 mois il y a | 0

Réponse apportée
Table with multiple types
PType = 'R'; PData = uint32(391); app.LicksTable.Data = [PType,PData] app.LicksTable.Data The [] operation between a char an...

3 mois il y a | 0

| A accepté

Réponse apportée
In R2024b, handles(33) throws an error. In R2023b in returns a structure if there is a figure 33. Is there a workaround in R2024b?
try figExists = isempty(fields(handle(33))); catch ME figExists = false; end It turns out that uifigure() can have a...

3 mois il y a | 0

Réponse apportée
Can someone open this example?
I can open it in R2024b on MacOS Intel (with 'help' configured for 'web' rather than installed locally) I can open it in R2025a...

3 mois il y a | 0

Réponse apportée
Error using assignin in a nested m function
testit() function testit inner() function inner syms q end end When you have nested functions, the wo...

3 mois il y a | 0

| A accepté

Réponse apportée
MathWorks Licensing Error 83 Your license server is not configured for this release of MATLAB. We already have the license.dat for R2025b_Update_1
You need lmgrd 11.19.7 https://www.mathworks.com/support/install/license_manager_files.html

3 mois il y a | 2

Charger plus