Answered
filter for frame based system
yes. <https://www.mathworks.com/help/dsp/ug/compare-speed-performance-in-frame-based-mode-using-simulink-profiler.html> has an e...

2 years ago | 1

Answered
Allowing users to open up specific images during execution of code
imagedir = uigetdir('Select an image directory'); if ~ischar(imagedir); return; end %user cancelled known_extension...

2 years ago | 0

Answered
fitswrite for uint16 array
https://fits.gsfc.nasa.gov/fits_primer.html The image pixels in a primary array or an image extension may have one of 5 suppor...

2 years ago | 0

Answered
Readtable not reading time as expected
Use detectImportOptions() on the file. Then use setvartype() to set variable 8 to datetime instead of duration. Then use setvaro...

2 years ago | 0

Answered
Unrecognized function or variable 'x'.
F = @(x)[3*x(1)*x(2) - x(1)^2 - x(2)^2 - 5; 7*x(1)^2 * x(2)^2 - x(1)^4 - x(2)^4 - 155];

2 years ago | 2

Answered
how to process .cnt and .trg file matlab
https://github.com/sccn/neuroscanio for cnt files

2 years ago | 0

Answered
How can I fix the error in my MATLAB program's objective function, which aims to optimize Simulink model parameters to match simulated data with experimental data (y_exp)?
[optimal_param, optimal_value] = fmincon(objective_function, initialRCParams, lb, ub); Mathworks-provided functions never look ...

2 years ago | 0

| accepted

Answered
How to find the list of neighbors?
Let the array be height H and width W. Then for any given point with linear index L, the surrounding points are: (L-1-H) --> po...

2 years ago | 0

Answered
Unable to find explicit solution.
If we assume that x is a function of one variable, t, then the definite integral of an expression involving only x and constants...

2 years ago | 0

Answered
INTEL oneAPI support for linux MATLAB
"I am looking for verified solution, not for hacks ..." The verified solution is that those compilers are not supported for t...

2 years ago | 0

Answered
ERROR: FMINCON requires all values returned by functions to be of data type double.
WW_period_=@(x) 0; You are returning a function handle. You need to return a scalar numeric value instead.

2 years ago | 0

Answered
Unable to find explicit solution.
Well, let us test the hypothesis that the problem is that the same variable is on both sides: syms x(t) y(t) c K = 1072764; e...

2 years ago | 0

| accepted

Answered
Self organization map (R2018b)
that error occurs if you use an old version of the toolbox with r2014b or later. You should get a newer release from <https://gi...

2 years ago | 0

Answered
Chemical reaction Rates with changing temperature
% let B = H2O2, R = H2O, T = O2, and C = I- (catalyst) % overall reaction: 2B+C -> T+2R % Key reactant is B and Key product is...

2 years ago | 0

Answered
Getting errors in the simulation code for the obstacle avoiding robot using fuzzy logics
for i = 1:length(obstacles) length(obstacles) is defined as: temp = size(obstacles); if any(temp == 0) L...

2 years ago | 1

| accepted

Answered
error in using eig built-in function
Symbolic eig() does not support generalized eigenvalues.

2 years ago | 0

Answered
Undefined function 'mtimes' in line 56
h = 100; h is numeric. M = (m/-dt)-(qdot/(dens*dx*cp))*dx-(h*dx/(dens*dx*cp))*Tinf; You do calculations with h inside the...

2 years ago | 3

| accepted

Answered
Plot is backwards. Want the peaks to be facing right, not left.
Position = Lab6DataNoCyl(:,6); Vel1 =Lab6DataNoCyl(:,5); plot(Vel1,Position) set(gca, 'XDir', 'reverse')

2 years ago | 0

| accepted

Answered
Storing arrays with guidata/Userdata
function Myproj_Button1_Callback(hObject, event, ~) handles = guidata(hObject) ; handles.LN = magic(7); guidata...

2 years ago | 0

Answered
Have dir() only accumulate files between certain dates
Is there a way to make the dir() function only accumulate files from between certain dates? No, there is not. I notice you use...

2 years ago | 0

| accepted

Answered
I am not able to retrieve wavelet of frequencies from a certain code. Previously, when I was making 1/2 single frequency as input it was showing me results, but now blue color
F0 = 1000; [tnew,Freq,Module]=freq_inst_morlet(y,SampleFreq,IniFreq,FinFreq,No_Freq,F0); You are passing in 1000 for the F0 p...

2 years ago | 0

| accepted

Answered
Issue with Matlab symbolic int
Use definite integrals rather than indefinite integrals. For example matlab tends to take a term that would be typically be w...

2 years ago | 1

| accepted

Answered
Error: using fmincon with integral function
%% Input syms d p G1 = 3e6 G0 = 1.25e8; V0 = 250; k0 = p/V0; V1 = 316; k1 = p/V1; %% Calculation D = [cos(k1*d) s...

2 years ago | 0

| accepted

Answered
how to put only one item in the listbox
Are you trying to create a list that only has a single element? Such as app.ChoiseEquityListBox.Items = {'Filtered'}; app.Choi...

2 years ago | 0

| accepted

Answered
loading images without compression
app.imageStruct.(imageName) = imread(imagePath,"png", 'BackgroundColor', [0.94 0.94 0.94]); The fact that y...

2 years ago | 0

Answered
Splitting image channels error: Index in position 3 exceeds array bounds. Index must not exceed 1.
for k = 1 : length(fileopen) baseFileName = fileopen(k).name; fretfiles = fullfile(fileopen(k).folder, baseFileName); ...

2 years ago | 0

| accepted

Answered
Relation between viscosity and temperature
See lsqcurvefit

2 years ago | 0

| accepted

Answered
Mac and Linux users, please support me with a very simple task (VideoWriter.getProfiles())
MATLAB Version: 23.2.0.2409890 (R2023b) Update 3 MATLAB License Number: • Operating System: macOS Version: 14.0 Build: 23A344...

2 years ago | 0

| accepted

Answered
What significant test `corr` use internally?
corr() does not itself use any significance test. It returns the p values -- leaving you to make your own significance tests acc...

2 years ago | 0

Answered
Not Enough Input Arguments
I have "Num" defined in another function as a character array, But you are not passing Num into Out when you invoke Out. Ther...

2 years ago | 0

| accepted

Load more