Answered
strong.mat file not found in MATLAB installation
You need to run openExample('signal/SpeechSignalCompressionExample') If you do not have the documentation (with examples) inst...

2 years ago | 1

Answered
Is there a Hyperspectral Imaging Library toolbox for 2023a
Yes, it existed in R2023a https://www.mathworks.com/help/releases/R2023a/images/hyperspectral-image-processing.html It was int...

2 years ago | 0

| accepted

Answered
fprintf formatting problem with cell and array matrix 2
If you want the transpose in the sense of having a row labeld Mix Ratio, and a row labeld '*H' and so on, then you have no hope ...

2 years ago | 1

Answered
Processing data received via a COM port
First create the serialport object. Then configureTerminator . Then configureCallback with "mode" "terminator" . The configured ...

2 years ago | 1

| accepted

Answered
When is it better to use a multi-level-struct than a table?
We are discussing in https://www.mathworks.com/matlabcentral/answers/556024-what-frustrates-you-about-matlab-2#answer_1337061 wh...

2 years ago | 1

| accepted

Answered
Show matrix is not invertible.
When you calculate the terms of the determinant, every component is 0. syms a b c d e f g h A = [a 0 0 b 0; 0 c 0 0 d; 0 0 e f...

2 years ago | 0

Answered
Error using Screen- DrawDots
TargetLocGrid=[cx+(ecc_vars(emat(tr,3))*signSelect(round(rand)+1)), cy]; Notice that uses [A,B] . Unless something in...

2 years ago | 0

Answered
waveletTimeFrequencyAnalyzer error
Do you have eeglab installed? It has a gather() function that interferes. https://www.mathworks.com/matlabcentral/answers/19957...

2 years ago | 0

| accepted

Answered
Align xticklabels along horizontal line
In theory... labels = {'123', '1234', '12345678'}; ax = gca; bar(ax, [3 5 7]) xticks(ax, 1:3) xlim(ax, [0 4]) xticklabel...

2 years ago | 1

Answered
Create a 'fake' video from an image and previously calculated optical flow vectors
time_between_frames = 1/frameRate; displacementX = Vx * time_between_frames; displacementY = Vy * time_between_...

2 years ago | 0

| accepted

Answered
Variable x changes size with every loop iteration, and obtain equally spaced values. Error in lines 13 and 15
As per request, x now changes in size every iteration, with equally spaced values. In practice you would not write the code thi...

2 years ago | 0

Answered
A compact way to replace zeros with Inf in a matrix
A = [0 3 2 5 6; 1 1 4 3 2; 9 0 8 1 1; 5 9 8 2 0; 3 1 7 6 9]; A(~A) = inf

2 years ago | 3

Answered
Why are my EPS figures not vectorised in LaTeX?
print never tries to produced vectorized results. Use exportgraphics with ContentType='vector' and a filename that ends in .eps...

2 years ago | 0

Answered
How can this function as an excel add-in ?
modelo_leaching(100,20,1) function a=modelo_leaching(length,tiempo,conc) x = 0:1:length; %length t = 0:1:tiempo;%tiempo m =...

2 years ago | 0

| accepted

Answered
How do you preallocate an array of FevalFutures?
Loop backwards. clear experiments for i = 10:-1:1 experiments(i) = parfeval(@magic, 1, 5); end experiments

2 years ago | 2

Answered
Optimizing Monte Carlo Simulation
You can make some micro-speedups. A = unifrnd(0, 2*pi, 1, N) is slightly slower than A = 2 * pi * rand(1, N); width(X) is sl...

2 years ago | 1

Answered
Date Interpolation, getting erro
You have yvar = T1{2:end,2}; That should be yvar = T1{2:end,1};

2 years ago | 0

| accepted

Answered
Problem using STM 32 board
Yes, since R2021a. https://www.mathworks.com/support/search.html/videos/using-simulink-with-stm32-discovery-and-stm32f4xx-based...

2 years ago | 0

Answered
I want to view a formula as a mathematical expression and not a single line
At the command window, the closest you can get is syms a b c symstr = "sqrt(a)*x^2 + b*x + c"; pretty(str2sym(symstr)) If yo...

2 years ago | 0

Answered
warning message displayed after Run the simulink model
It is common for simulating models in continuous time to involve numeric solution of Ordinary Differential Equations (ODE) -- th...

2 years ago | 0

Answered
How Do I Prevent The First Value in the Output of a Function From Showing?
When you call a function and you do not have a semi-colon at the end of the call, then MATLAB interprets that as a request to di...

2 years ago | 0

Answered
error with changing array size in loop
What reason should we have to expect that there will always be the same number of different groups? splitapply() called that way...

2 years ago | 0

Answered
Connect 2 cross section planes from 3D surface
Not reliably, no. Not unless you have reason to know that the "velocity" is small. Consider these two A-----B P-----Q ...

2 years ago | 0

Answered
Error in solve (Incorrect number or types of inputs or outputs for function 'solve'.)
You did not mention your MATLAB release. Since roughly R2018b that form of solve() has not been available. These days you would ...

2 years ago | 1

| accepted

Answered
Program Is not Plotting Correctly
If you are using plot() inside a loop but nothing is showing up on the plot, then: make sure you use hold on Include a marker ...

2 years ago | 0

Answered
Finding a largest rectangular object in binary image with minimum length and width
P = regionprops(YourBinaryImage, 'Area', 'ConvexArea', 'BoundingBox'); PA = vertcat(P.Area); PCA = vertcat(P.ConvexArea); PBB...

2 years ago | 0

Answered
Unable to perform assignment because the indices on the left side are not compatible with the size of the right side
Give the command window command dbstop if error Run the code. When it stops, query n size(B.') size(Fil(:,n)) size(fft(B'....

2 years ago | 0

| accepted

Answered
Fair scheduling algorithm with a consideration of Best channel Quality indicator
Step 1: Sort your input data by Best channel Quality indicator Step 2: Ignore the Best channel Quality indicator and everythi...

2 years ago | 0

Answered
How can I extract and save images from 3D stack images (512x1000x100 double) from a .mat files?
s=load ("D:\Matlab\1.mat"); outdir = 'D:\Matlab'; D = s.images; LM = s.layerMaps; A = s.age; z = size(D,3); for i=1:z ...

2 years ago | 1

Answered
Error using sym/subs Inconsistency between sizes of second and third arguments.
syms f1 f2 Re1 Re2 A1 A2 B1 B2 epsilon D1 D2 p V mu_u v h_L1 h_L2 k_L1 k_L2 g L1 L2 delta_P head_loss_eqn1 = [h_L1,h_L2] == [...

2 years ago | 0

Load more