Answered
image steganography hiding in image
b8 = bitget(hiddenimg, 8); b7 = bitget(hiddenimg, 7); cover(:,:,1) = bitset(cover(:,:,1), 2, b8); cover(:,:,1) = bits...

4 years ago | 0

Answered
potential() compute scalar potential from gradient vector field; Error using sym/potential Second argument must be a vector of variables.
No, the second parameter must be a vector of symbolic names. When you do not have a starting point, each term in V is integra...

4 years ago | 0

| accepted

Answered
Connecting Arduino to App Designer with Drop Down and Button
writeDigitalPin only applies arduino objects. You need to arduino() the serial port, not serialport() it.

4 years ago | 0

| accepted

Answered
find min/max of variable values that satisfy certain constraints
25*g*t+16*q+25=0 If all values except g are known then create a vector of coefficients of g in descending order, in this ca...

4 years ago | 0

| accepted

Answered
Alternative to EVAL string expressions in optimization
Instead of eval() everything, use file operations to emit a file along the lines of constr = [ EQN, EQN,... EQN ...

4 years ago | 1

| accepted

Answered
How to to solve this issue ?i need guidance
At each point that you are sure you will not need to remove anything more from the file, take a copy of the file. If you find a ...

4 years ago | 0

Answered
How to do a double fourier transform or double summation equation in Matlab?
T cannot be replaced by a datetime. datetime objects cannot be multiplied by anything. At one level, T could potentially be re...

4 years ago | 0

| accepted

Answered
How to set custom title to scatterplot?
h = scatterplot() returns a figure. You need to ax = h.CurrentAxes; title(ax, 'Desired Title')

4 years ago | 0

| accepted

Answered
Image detect and convert white image
filename = 'https://www.mathworks.com/matlabcentral/answers/uploaded_files/1015940/image.png'; img = imread(filename); negma...

4 years ago | 1

Answered
Adjust the view of UIAxes
Try function ButtonPushed(app, event) X = app.UIAxes.View; data = stlread ("model.stl"); trisurf ...

4 years ago | 0

| accepted

Answered
How do I change the axis exponent of several subplots at once?
subplot(2,1,1); plot(randn(1,20) * 1e5) subplot(2,1,2); plot(randn(1,20) * 1e5) yax = get(findobj(gcf,'Type','axes'), 'YAxis...

4 years ago | 1

Answered
How to define variable in cell array and plot with for loop
figure prop={maxTwrBsMyt_S, maxTwrBsFxt_S, meanTwrBsMyt_S, meanTwrBsFxt_S}; for ii = 1:numel(length(prop)) plot(A, pro...

4 years ago | 0

| accepted

Answered
How to remove the dublicated cells and empty cells
format long g A = [1 2 3 4 5 6 7 8;0.7 0.7 0.6 0.6 0.6 0.5 0.5 0.4] [~, ia] = unique(fliplr(A(2,:)), 'stable'); fliplr(A(:,en...

4 years ago | 1

Answered
Image displayed in GUI is tilted and not straight
You initialize each of your UIAxes with a CameraPosition. When you call imshow(), passing in the axes (which is done properly)...

4 years ago | 0

Answered
Using for-loop to extract data from every column in a matrix
M = randi([0 9], 180, 31); %example letters = ['A':'Z' 'a' : 'z']; numletters = length(letters); for col = 1 : size(M, ...

4 years ago | 0

Answered
Fill a column of a table with a series
tableData.tableDatanew1 = (1:height(tableData)).';

4 years ago | 0

| accepted

Answered
cannot show full image in folder
xlswrite('Cobaaaa1.xls',training) %menyimpan file dalam bentuk excel That is asking to write to the same file and same shee...

4 years ago | 1

Answered
How to import multiple text files from multiple folders and take maximum from each text file
I cannot be sure without a file to test with, but I suspect n = 0.1:0.1:1.3; for k = 1:length(n) filename = [num2str(n(...

4 years ago | 0

Answered
'Find' command to find index of lat and long from an array
Your code assumes that exactly those latitudes and longitudes appear in the file. You are testing for bit-for-bit identical repr...

4 years ago | 0

Answered
direction of Y Axis is changing
[X,Y,Z]=meshgrid(1:size(label,1),1:size(label,2),1:size(label,3)); That is incorrect. size(label,1) is the number of rows, and ...

4 years ago | 0

Answered
"matfile" function does not fetch variables with multiple fields?
You cannot. Only entire variables can be inquired about. You would have to load the variable to determine the size of the field....

4 years ago | 0

| accepted

Answered
Error in pdm_experiment_eeg_only
You need to install http://psychtoolbox.org/

4 years ago | 0

Answered
hello everyone .can anyone help me and explain to me this codes for real time ploting????please????
As the code runs, data points come in, at times that are not going to be strictly regular (and might possibly be irregular.) A...

4 years ago | 0

Answered
Cache values from loop (with differing lengths) to save in 1 variable / matrix
for i = 1:length(files) dataset = load something from files(i) time_to_event{i} = dataset.time_to_event(:); end i...

4 years ago | 0

Answered
HOW CAN I EXECUTE TWO LOOPS "FOR" IN THE SAME TIME?(get image from two camera at the same time)
Starting in your version R2021b, MATLAB includes background threads using parfeval https://www.mathworks.com/help/matlab/back...

4 years ago | 0

Answered
FMINCON runs with lower and upper bound variables switched, but doesn't run when bounds are specified correctly
Let us examine how fmincon works. The first thing that fmincon does is validate its parameters as being the correct data type...

4 years ago | 1

Answered
Index in position 2 exceeds array bounds (must not exceed 1).
A predicted label might exceed the number of actual labels. Or heus might be empty, if some of the other variables are empty....

4 years ago | 0

Answered
Student license, Aerospace Blockset - Number of blocks error
Unfortunately it is not possible with that license. Is it plausible that you might be able to find academic staff that would ...

4 years ago | 1

| accepted

Answered
How i can download arduino support packages with out matlab ide, for offline instalation.
https://www.mathworks.com/matlabcentral/answers/293235-how-do-i-download-and-install-a-support-package-on-an-offline-machine

4 years ago | 0

| accepted

Answered
How to optimize an objective function with strict inequality constraints?
x(2)*(-10)-x(1)*70+24 That is a linear function. The derivative with respect to either variable can be taken easily and wil...

4 years ago | 0

Load more