Answered
Is it possible to make a meshgrid wraparound
x = linspace(0,1,7); y = linspace(0, 2*pi, 5); [X, Y] = meshgrid([x, x(1)], [y, y(1)]) Note however, that functions that requ...

4 years ago | 0

| accepted

Answered
How do I integrate this multivariable function over just one variable?
Well, you can a = 0; b = 2; for t = 1:10 sum = @(x) zeros(size(x)); for r = 1:10 f = @(x) sin(r*t*x).^2;...

4 years ago | 1

| accepted

Answered
How to import images onto matlab from a folder in my hardrive
We recommend against using path as a variable name, as it is a name used for MATLAB's search path. I would recommand you change...

4 years ago | 1

Answered
Unable to find or open table data
Replace your line Tab = readtable('LabData3'); with Tab = LabData3;

4 years ago | 0

| accepted

Answered
Creating a structure using doubles from within other structures
data.wavehgt1 = struct(LEJ3WAVE.data.wave_height.values); %wave height values (meters) There are three possibilities in that s...

4 years ago | 0

| accepted

Answered
Pass names from listdlg to a table in app designer
list = {'Paul', 'Tom', 'Marry'} indx = listdlg('SelectionMode','multiple','ListString',list); chosen = list(ind...

4 years ago | 0

Answered
getframe produces empty structure when attempting to create animation
M(j) = getframe(gcf); You are looping over i but indexing j

4 years ago | 1

| accepted

Answered
why "load" doen't work in my function ?
When you have an "end" matching "function" then you create a sealed workspace. You need to use the command form of load. T ...

4 years ago | 1

| accepted

Answered
decimal to binary manually
n=n/2; There is an important difference between that operation in C and MATLAB. When n is a positive integer datatype, the...

4 years ago | 0

| accepted

Answered
How to generate next random number which is +-30% of previous random number
You can see from this simulation that it may peak higher than it started, but over the long term it is going to fade to near 0. ...

4 years ago | 2

Answered
Curve fitting using lsqcurvefit
You can get a better fit by either telling lsqcurvefit() a better starting point, or by using a different optimizer. But... rem...

4 years ago | 0

| accepted

Answered
sad grad student can't handle GUIs - please help
u(12) and u(17) are only created conditionally . If either of them is not set, then at least one element of u would not be a val...

4 years ago | 1

| accepted

Answered
how can i get the a column from a table by it's name
acc = T.('6'); or acc = T{:,'6'};

4 years ago | 0

| accepted

Answered
Playing songs from Youtube on Matlab software
web('https://music.youtube.com/watch?v=lYBUbBu4W08&feature=share')

4 years ago | 0

| accepted

Answered
How to solve :'Error using prod. Invalid data type. First argument must be numeric or logical.'
https://www.mathworks.com/help/symbolic/sym.children.html "Starting in R2020b, the syntax subexpr = children(expr) for a scala...

4 years ago | 0

| accepted

Answered
how to display ranges of numbers
fprintf('%g < x < %g\n', alpha, beta) ;

4 years ago | 0

| accepted

Answered
Fluke camera images in matlab
https://www.mathworks.com/matlabcentral/fileexchange/27915-fluke-is2-file-reader can do part of the work for is2 files. The jpg ...

4 years ago | 0

Answered
How to force a curve through measured points
In order to force a curve to exactly go through measured data, then in general the total degrees of freedom of the equation must...

4 years ago | 0

| accepted

Answered
How to assign design variables?
See matlabFunction option 'vars' with the {} approach matlabFunction(EXPRESSION, 'vars', {[a, b, c, d] })

4 years ago | 0

Answered
Why am I getting this error? Error using feval Unrecognized function or variable 'emul'
When you use a quoted string as the routine to invoke, then remember that the string will be interpreted inside a function sever...

4 years ago | 0

Answered
Is there a MATLAB function that calculates the magnitude of a velocity vector?
if x y z are scalar then norm([x, y, z])

4 years ago | 0

| accepted

Answered
How to Select any image from the figure and do further approaches ?
Change subplot(2,3,2);imshow(Im);title('Sunset'); subplot(2,3,4);imshow(Im<=FirstThreshold);title('1st Intensity'); subplot(2...

4 years ago | 0

| accepted

Answered
All possible grouping combination for different package
https://www.mathworks.com/help/matlab/ref/nchoosek.html S = {'A', 'B', 'C', 'D', 'E'} Group1 = nchoosek(S, 3) and in each ca...

4 years ago | 0

Answered
A lsb watermarked image attack by multiple types of noise.After apply filter method can't retrived the watermarked properly.can anyone explaining why?
Imagine an attack that zeroed all of the LSB. If you encode the watermark strictly in the LSB then obviously you would not be ab...

4 years ago | 0

Answered
MATLAB thinks function is a matrix
syms(strcat('x',string(j))) = xx(j); % HERE, getting "Unable to use a value of type string as an index." Th...

4 years ago | 0

Answered
I want to generate uniform distribution of points on the surface of a sphere
https://www.bogotobogo.com/Algorithms/uniform_distribution_sphere.php https://www.mathworks.com/matlabcentral/answers/602683-...

4 years ago | 0

Answered
Label Every Other Point In a Plot
See https://www.mathworks.com/help/matlab/creating_plots/create-line-plot-with-markers.html#bvcbmlx-1 -- plot() with 'MarkerIndi...

4 years ago | 0

Answered
how to save a matrix as an image
imwrite(M1, M2, '07.tif')

4 years ago | 0

Answered
Problem with ROI dimension - app designer
Ir = size(app.I,1); Ic = size(app.C,1); app.Icrop = app.I(max(1,app.row1) : min(Ir,app.row2), max(1,app.col1) : min(Ic,app.col2...

4 years ago | 0

Answered
Create new variable from an existing variable but deleting some outliers
mask = glider.oxy>150; glider_subset = glider(mask,:);

4 years ago | 0

| accepted

Load more