Answered
Using fmincon to maximize a complex scalar function
https://www.mathworks.com/help/optim/ug/fmincon.html#busog7r-fun Function to minimize, specified as a function handle or funct...

4 years ago | 0

| accepted

Answered
how to create color bar arrow
Potentially you could use quiver or (Mapping Toolbox) quiverm . The functions return a vector of line objects; you could set the...

4 years ago | 0

Answered
How to convert four bytes into double ?
See typecast and also swapbytes (which you would need if the sender is sending "Big Endian") However, is there any reason you d...

4 years ago | 0

| accepted

Answered
Effect of using untyped variable in matlab function
When acceleration is turned on, then each MATLAB Function Block has to have a copy of the code generated for each possible set o...

4 years ago | 0

Answered
Problem using symbolic sinc?
y(x) = piecewise((x<-tau/2), 0, ... (x==tau/2 & x==tau/2), 0.5, ... (x>-tau/2 & x<tau/2), 1,...

4 years ago | 0

Answered
Error in interp2: The number of input coordinate arrays must match the dimensions of the sample values
x,y and v are vector (1x77) interp2() is for interpolation of 2D arrays, not for interpolation of scattered points in 3D. You...

4 years ago | 0

| accepted

Answered
Concatenation of two columns of a table
nrow = size(M,1); M.LATLONG_concat = strings(nrow,1) % new column for i=1:nrow lat = round(M.LATITUDE_DECIMAL(i)* 10000);...

4 years ago | 0

| accepted

Answered
Importing and reading a .RAW file
data = importdata('Sertta_Sample_Data_12_17_2020_3_09_03_PM_.raw'); According to your display of the result of impo...

4 years ago | 0

Answered
GPU Support for RTX 4090
No, the last few versions of MATLAB will not support the new RTX 40x0 architecture -- not by default. You need to use parallel....

4 years ago | 0

Answered
Use Matlab to simplify equation
You have three equations and two variables to eliminate. Solve any two of the equations for the two variables, and substitute th...

4 years ago | 0

Answered
matlab解方程组,结果不能全部显示出来。求各位大神指教。
You can reformat the solution for presentation purposes. The below reformats the components of the solutions to at most 80 char...

4 years ago | 0

Answered
Why is the variable's type undefined?
Is there any way to make the unquoted input value be recognized as a string in the function? Only in the case where what is bei...

4 years ago | 0

Answered
Different array size error
case 1 %... t1 = 0:0.05:ta; t2 = 0:0.05:tb; t3 = 0:0.05:tc; Those t1, t...

4 years ago | 0

| accepted

Answered
3D Histogram with logarithmic frequency axis using hist3
Use the imagesc(x,y,C) form of imagesc() where x and y are vectors of x coordinates of where to place the centers of vertices. O...

4 years ago | 0

Answered
How can I color encode depth information of a greyscale 3-D image?
Suppose you were to take the furthest slice and select a Hue for it and use the grayscale information as the Saturation, and use...

4 years ago | 0

Answered
How to make color plots in 3D?
If you help isosurface then currently Example 1 shows taking the output of isosurface() and passing it to patch() and then mod...

4 years ago | 1

Answered
sprintf into a number
Please read http://www.mathworks.com/matlabcentral/answers/304528-tutorial-why-variables-should-not-be-named-dynamically-eval fo...

4 years ago | 1

Answered
How to input the sign of pi and square root in matrix
[-sqrt(+pi), -pi/3] for example

4 years ago | 0

Answered
for loop break alternative
break always terminates the for or while that it is inside. If you do not want to terminate the loop do not use break. Sometimes...

4 years ago | 0

Answered
Display nth character in a Binary image
filename = 'https://www.mathworks.com/matlabcentral/answers/uploaded_files/1152713/AlphanumericBinaryImage%20copy.png'; I = imr...

4 years ago | 1

| accepted

Answered
How to stop matlabFunction() from inherently using reshape()?
No, there is no hope of that in any existing version of MATLAB. If your expression is not scalar then matlabFunction will always...

4 years ago | 0

| accepted

Answered
Error using edge Expected input number 1, I, to be one of these types: double, single, uint8, uint16, uint32, uint64, int8, int16, int32, int64, logical Instead its type was
I = imshow(uint8((filtered_poisson_gaussian))); The output of an imshow() call is a primitive image() graphics object, whic...

4 years ago | 0

Answered
Unrecognized function or variable 'ode4'.
https://www.mathworks.com/matlabcentral/answers/98293-is-there-a-fixed-step-ordinary-differential-equation-ode-solver-in-matlab-...

4 years ago | 1

| accepted

Answered
Read data from .txt file
We recommend upgrading to get the newer decimal separator support. If that is not possible then you will need to read the fil...

4 years ago | 0

Answered
I gave the initial condition correctly still the program not working.
y0 = [ 0.00001; 0.00001; 0.00001; 0.00001; 0.00001; 0.00001; 0.00001; 0.00001; 0.00001; 0.00001; 2.5669; 2.0482; 2.0454; ...

4 years ago | 0

| accepted

Answered
Error using ''error'' - not enough input arguments
error() must be followed by at least one parameter which is the error message. It might be followed by additional parameters.

4 years ago | 0

Answered
Xlim with datetime removing plotted data
datetime passed only a time makes the times relative to today. Your input data probably has a date other than today. You should ...

4 years ago | 0

Answered
I am unable to make the code work
function [perturnation_sample] = perturbation_sample_generator(IM, N_samples, random_seed) end With the end being right there,...

4 years ago | 0

Answered
Why I can not to connect Switch with PV panel directly ?
you are using https://www.mathworks.com/help/simulink/slref/switch.html which is a switch for Simulink signals. However your in...

4 years ago | 0

| accepted

Answered
im working on this assignment for my class and im new to matt lab and I am stuck!
MATLAB does not use type declarations such as int. The type of a variable is determined by what is assigned to it. The default t...

4 years ago | 0

Load more