Risposto
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...

2 mesi fa | 0

| accettato

Risposto
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://...

2 mesi fa | 0

| accettato

Risposto
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...

2 mesi fa | 0

Risposto
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...

2 mesi fa | 0

Risposto
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)

2 mesi fa | 0

| accettato

Risposto
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...

2 mesi fa | 1

| accettato

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

2 mesi fa | 2

| accettato

Risposto
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.

2 mesi fa | 1

| accettato

Risposto
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 mesi fa | 0

Risposto
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]; ...

3 mesi fa | 1

Risposto
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...

3 mesi fa | 0

Risposto
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...

3 mesi fa | 0

Risposto
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...

3 mesi fa | 0

| accettato

Risposto
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...

3 mesi fa | 0

Risposto
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 ...

3 mesi fa | 0

| accettato

Risposto
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...

3 mesi fa | 0

Risposto
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...

3 mesi fa | 0

Risposto
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) = []...

3 mesi fa | 1

Risposto
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 mesi fa | 0

Risposto
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 mesi fa | 0

Risposto
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 mesi fa | 0

Risposto
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 mesi fa | 1

Risposto
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 mesi fa | 0

Risposto
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 mesi fa | 0

Risposto
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 mesi fa | 1

| accettato

Risposto
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 mesi fa | 1

| accettato

Risposto
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 mesi fa | 0

| accettato

Risposto
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 mesi fa | 2

Risposto
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 mesi fa | 0

Carica altro