Answered
Code won't run on Mac due to backslashes
thing = 'filename\tthis\that'; fprintf(thing) Suppose there was code that automatically detected filenames and converted them....

1 year ago | 0

Answered
mono- objective optimization and multiopjective optimisation, I would like to use GA with option but there is a fault that I can't to resolve
You do not have the Optimization Toolbox installed, and you do not have the Global Optimization Toolbox installed. You probab...

1 year ago | 0

Answered
how to show images at a point in a plot?
F2 = fullfile(S1(i).folder, S1(i).name); I{i} = imread(F2); Also you will probably want a pause() in the display loop. Graphic...

1 year ago | 1

Answered
MPU6050 display raw data and fft from the reading get
[accelReadings,timestamp] = readAcceleration(sensor) returns one sample of the acceleration data from the MPU-6050 IMU se...

1 year ago | 0

Answered
writetable/readtable with multi-line headers
writetable() first just the header lines. Then writetable() the data with WriteMode='append' When you readtable() you can speci...

1 year ago | 0

Answered
How to fill a large hole?
The provided JPEG image is RGB, not gray. The provided JPEG image has a white border around it. I = imread('https://www.mathwo...

1 year ago | 1

Answered
error using sin or math.sin
(8+6)*abs(4-15) + sin(log10(18))-(4+6) * tan(8/18+1) math.sin looks like syntax for Python.

1 year ago | 0

Answered
How to find the period between group of regularly spaced hot-spots?
Approximate_gap = mean(diff(find(abs(diff(YourSignal)) > TOLERANCE)));

1 year ago | 0

Answered
disable "Configure Arduino" Dialog in Standalone App
You could start by using ispref() to check whether you have already set a preference for the com port. If not, then app.config.C...

1 year ago | 0

Answered
Problem loading variables to Simulink
function y = tclabsim(t, x0, u, p) %... x0_T = x0; % Initial temperature The size of x0 is uncertain at this point. ...

1 year ago | 1

| accepted

Answered
MATLAB Plotting: xticks Error and Legend Repetition Issue?
It is not completely correct that the values passed to xticks() must be numeric. You can also pass duration values or datetime v...

1 year ago | 0

Answered
Passing a data file to a function in parfor or parfeval
You can use parallel.pool.Constant -- provided that the values are read-only on the workers.

1 year ago | 0

Answered
How to extract cell array of 2D matrices into a timeseries?
data = {rand(2,5); rand(2,5); rand(2,5)}; ts = timeseries(cat(3,data{:})) getsamples(ts,1) So in general you ts = timeseries...

1 year ago | 2

| accepted

Answered
Formatting Numbers in App Designer's UITable
You have two possibilities here: format as strings independently round() each column to the appropriate number of digits The ...

1 year ago | 0

| accepted

Answered
2D matrix resize or interpolation
If I would like to have a finer sampling of the data by doubling the samples (eg Inew = [768, 1024], which function would you su...

1 year ago | 0

Answered
Hello, can MATLAB solve equations like the one below? I mean, can MATLAB find the conditions for z that satisfy this relationship, instead of just numerical solutions?
If the * stands for conjugation, then it seems to be universally true for finite values syms z eqn = sqrt(conj(z)) - conj(sqrt...

1 year ago | 0

Answered
taking difference of 2 surf figures of different sizes
N = 100; G1 = griddedInterpolant(x1, y1, z1, 'linear', 'none'); G2 = griddedInterpolant(x2, y2, z2, 'linear', 'none'); [min...

1 year ago | 2

Answered
How can I filter a FFt signal to only show the main frequency?
[~, maxidx] = max(abs(amplitude)); main_signal = zeros(size(amplitude)); main_signal(maxidx) = amplitude(maxidx); Do not be s...

1 year ago | 0

Answered
parallel computing apply to my problem
Change a(i+1)=diff(v1,t); b(i+1)=diff(v2,t); to a(i+1) = expand(diff(v1,t)); b(i+1) = expand(diff(v2,t)); ...

1 year ago | 0

| accepted

Answered
*.mdl extension in library file is giving error in 2024a version
EnableLBRepository is described https://www.mathworks.com/help/simulink/ug/adding-libraries-to-the-library-browser.html It is ...

1 year ago | 0

Answered
how to convert MRMR feature selection from matlab to C++?
The documentation for fscmrmr has no "extended features" section (in R2024b), which implies that MATLAB Coder is not supported f...

1 year ago | 0

Answered
query on deprecation of mdl in matlab
Mathworks has not announced the end support for MDL files, and it will not be the forthcoming R2025a. Mathworks increased the...

1 year ago | 0

Answered
How to solve this error ?
Those are warnings, not errors. You remove the warnings by aligning the end statements with the start of their corresponding co...

1 year ago | 0

Answered
Why does .mat file previewer take so long?
The first level elements store first a data type field and then the number of bytes in the rest of the element (excluding the 8 ...

1 year ago | 1

| accepted

Answered
Sum two different coverage models
You could probably extract the lat and long vectors from tx_array1 and tx_array2 and do scatteredInterpolant() to construct inte...

1 year ago | 0

| accepted

Answered
Does MATLAB's Instrument Control Toolbox offer support package drivers for SIGLENT oscilloscopes to read waveform data? I am using the SIGLENT SDS1000X-E Series model
Mathworks does not offer any support packages for SIGLENT You can try myScope = oscilloscope('USB0::0xF4EC::0xEE38::SDSMMGKC7...

1 year ago | 0

Answered
How can I programmatically set uigetfiles() display mode and file sort order?
uigetfiles() invokes system-specific behaviour that there no interface for. For example on Mac it invokes the MacOS file browser...

1 year ago | 1

| accepted

Answered
Integral command doesn't work inside the for loop
a = 0; b = 2; h1 = b - a; h2 = (b - a)/2; n = 1:5; fprintf('\tAnalytical\tTrapezoid\tSimpson\n\n') for i = 1:length(n)...

1 year ago | 0

| accepted

Answered
how to plot different range of files on one graph using hold on
startIndex = 1; endIndex = 3; startIndex1 = 4; endIndex1 = 6; count1 = 0; filelist = dir('C:\Users\shedr\Downloads\tec data...

1 year ago | 0

| accepted

Answered
refer to variable within matrix calculation
constantError(:,5) = mean( output( constantError(:,1)*16-15: constantError(:,1)*16,9 ) ) First the vector result constantError(...

1 year ago | 0

Load more