Answered
How to add one extra channel into a RGB image
rgb2gray() is designed for a three-channel input (which you have in this case) but in which the relative channel intensities are...

3 years ago | 0

Answered
Bring simulation results from simulink to matlab
I suspect that you might have configured Single Simulation Output; https://www.mathworks.com/help/simulink/gui/singlesimulationo...

3 years ago | 1

| accepted

Answered
struct function in Matlab
It looks to me as if the memory occupied by a struct is: for each field, 160 bytes plus 8 bytes times the number of struct elem...

3 years ago | 0

Answered
Speed up gain by GPU parallel processing
You appear to be misunderstanding how a GPU works. When you declare a GPU variable, it is not the case that MATLAB immediately ...

3 years ago | 0

| accepted

Answered
Default argument expression with multiple outputs
In MATLAB, there is no (useful) way to assign multiple outputs of a function to a single location, and there is no (useful) way ...

3 years ago | 0

Answered
Is there a way to use hist3 without the height of each bar indicating the number of elements in a bin?
discretize on the X and Y recording the indices in each case. Then totals = accumarray([Yindices(:), Xindices(:)], Zvalues()); ...

3 years ago | 1

| accepted

Answered
Using custom function with matlab Optimization Toolbox
To have any hope of getting further you will need to use https://www.mathworks.com/help/optim/ug/fcn2optimexpr.html However yo...

3 years ago | 0

Answered
quiver arrows in color representing another variable?
Not by using quiver(). quiver() creates a quivergroup(), which internally contains two LineStrip objects. The LineStrip objects ...

3 years ago | 0

Answered
Integration with multiplication of whittaker and bessel function
n_D5 = rand; %in order to be able to run the code syms r s=1/100; l_p=1; lambda=7550; del_0_P3=3.559067; del_2_P3=0.37...

3 years ago | 0

Answered
Crop Images With Specified Values From Each Direction
newImage = OriginalImage(1+TopRowsToSkip:end-BottomRowsToSkip, 1+LeftColumnsToSkip:end-RightColumnsToSkip, :); where you should...

3 years ago | 0

| accepted

Answered
How do I fit two function in a same data at a time depending on the range ?
Provided that tc is not at or beyond the end of the data, you can calculate tc = sqrt(4*t(end) + 4*y(end) + 1)/2 - 1/2; This w...

3 years ago | 0

Answered
The problem with an error when using "fzero" when solving a nonlinear task
[x,fval, exitflag, output]=fzero(@ResFrqNew,35,options,ParVal(n),VarV(m),VarName,ParName); You ask for ResFrqNew to be...

3 years ago | 1

| accepted

Answered
Undefined function 'imsegkmeans' for input arguments of type 'uint8'.
That is part of the Image Processing Toolbox (since R2018b)

3 years ago | 0

Answered
Parfor loop with classes and listerner
parfor operates in separate processes. The object is being loaded into the separate processes, and any changes to the object in ...

3 years ago | 0

| accepted

Answered
Error opening the Mask editor (Linux)
See https://www.mathworks.com/matlabcentral/answers/1978579-why-do-some-matlab-features-fail-on-ubuntu-23-04-and-debian-12-with-...

3 years ago | 1

| accepted

Answered
Running parameter estimation with as local cluster
I believe you need MATLAB Parallel Server in order to have other people be able to use your cluster.

3 years ago | 0

| accepted

Answered
error: Matrix dimensions must agree
nest is 20 by 20. nest.* something is element-by-element multiplication, so if the multiplication worked at all, it would give ...

3 years ago | 0

Answered
How to eliminate transition section in contourf function;
Contour calculations rely upon the idea that if you have two nearby locations with known values, that at some point between the ...

3 years ago | 1

| accepted

Answered
Using App Designer: Pulling data from an X,Y indices from a user input in 2 drop down menus
Table = readtable('FluxDataInterpolated.xlsx', 'Sheet', 'Sheet1'); Note that the file only has one sheet, and the default for r...

3 years ago | 0

Answered
I need to add '0' to the end of plaintext, then I can use it within cipher to deduct it equally to 64-bit, the error in below code (append)
plaintext = 'In literature, cryptosystems based on digital chaos were mostly designed for a broad range ' plainlen = length(pl...

3 years ago | 0

Answered
problem to use "UIFigureCloseRequest"
The first parameter passed to a UI Figure Close Request Fcn callback is not the app: it is the handle of the component that requ...

3 years ago | 0

Answered
ButtonDownFcn does not work on a plot
You set the ButtonDownFcn against p2, which is a single point. Your line is p3, but you do not have a callback configured again...

3 years ago | 0

Answered
raspberry pi 4 model b & usb logitech camera connection
Is there a reason you are using the File Exchange submission instead of using the MATLAB Support Package for Raspberry Pi Hardwa...

3 years ago | 0

Answered
read time in HH:mm format from excel
filename = 'AppropriateFileName.xlsx'; opts = detectImportOptions(filename); opts = setvaropts(opts, {'Time'}, 'Type', 'durati...

3 years ago | 0

Answered
Why SN function so slow?
jacobiSN is executed by the Symbolic Toolbox, using the current digits setting to control precision. You might possibly be able...

3 years ago | 0

| accepted

Answered
Platform dependency of matlab compiled python library
Is there an option to compile from a windows machine for a linux environment? I have seen claims that if you are willing to put...

3 years ago | 0

Answered
Errors in using null command due to truncation error
Your code assumes that the null space is the same size each time, but most of the time the null space is empty. You cannot store...

3 years ago | 2

Answered
Multiplying a column in a table by a constant
YourTableName.NameOfColumn = YourTableName.nameOfColumn * 1e-9; The above is the recommended form. If, for some reason, you d...

3 years ago | 0

| accepted

Load more