Answered
How to store values in a matrix?
for theta = 0:5:90 R = [cos(theta) (-sin(theta)) 0; sin(theta) cos(theta) 0; 0 0 1]; end That is not creating one R f...

4 years ago | 0

Answered
Can the symbolic toolbox be used to derive results for arbitrary number n?
syms n m symsum(m, m, 1, n)

4 years ago | 0

| accepted

Answered
Simulink library check l
2*pi appears to me to be a Constant block. The triangle at the S port of the Ideal Angular Velocity Source is part of the way t...

4 years ago | 0

Answered
Graph appears blank but the equation and code are correct.
The MATLAB / operator is "matrix right division". A/B is similar to A * pinv(B) (but not exactly that.) So when you have a row v...

4 years ago | 1

| accepted

Answered
Vehicle speed calculation script
D = input('Enter distance vehicle travelled: '); T = input('Enter time required for the travel: '); vehicle_speed = D ./ T ...

4 years ago | 0

Answered
How can I convert double from cell? (UAV LiDAR data workflow in forestry)
% remove duplicate points [uniqueZ,uniqueXY] = groupsummary(groundPoints(:,3),groundPoints(:,1:2), @mean); Your first paramete...

4 years ago | 0

Answered
Solving Unknowns with Symbolic Toolbox
syms A B C D real eqn_1 = 3 == A + B; eqn_2 = 7 == C + D; eqn_3 = 4 == A + C; eqn_4 = 6 == B + D; eqns = [eqn_1 ...

4 years ago | 0

Answered
How to become the author of simulink library?
If you would like to negotiate with Mathworks for Mathworks to include your work as an official part of Simulink, then you shoul...

4 years ago | 0

Answered
Unrecognized function or variable 'CP'. Error in solution (line 66) text(c+.5,f(c),["("+string(c)+","+string(f(c))+") "+CP ])
You have if IoDL=="Increasing" & IoDR =="Decreasing" CP= "Maximum" elseif IoDL=="Decreasing" & IoDR =="Increasing" C...

4 years ago | 0

Answered
Index in position 1 is invalid. Array indices must be positive integers or logical values.
Centroids are not generally integers. htextinsCent is not a function: it is an array that results from a call to insertText

4 years ago | 0

Answered
reading hdf5 file with dataset name containing special characters
If the command works in a console but not in a script, and you are using an old enough version of MATLAB (I see you are using R2...

4 years ago | 0

Answered
Join two table variables into one. == does not works of table type
You are doing () indexing on a table. The result would be a table row. You compare that to something else that is probably a tab...

4 years ago | 0

Answered
Custom creation function for GA
'CreationFcn', @(GenomeLength, FitnessFcn, options) myfun(GenomeLength, FitnessFcn, options, ExtraParameter)

4 years ago | 1

| accepted

Answered
I have a function but it doesn't generate any outputs, below is the function defined in the file. I though it might be that x1 is a call by value, but not sure
We do not know what your function SineTaylor is. We do not know what n is. It looks like the number of terms to use. Your if n...

4 years ago | 1

| accepted

Answered
How to convert hourly data into daily data for next 120 days
You had data for 120 days plus 1 hour -- 0, 1, 2, 3, 4, 5 is (5+1) = 6 hours not 5 hours. Your daily mean is constant because o...

4 years ago | 0

| accepted

Answered
I have 100x73 double mat file as shown in image. I want to remove all zero values from this file and save it to a new mat file. How can I do it? Thank you.
It is not possible to have a numeric matrix that contains blanks. It is not possible to have a numeric matrix that contains a d...

4 years ago | 0

| accepted

Answered
issue with rgb2ind
RGB = imread('flamingos.jpg'); %% rescale image Scale_Multiplier = 4; rescale_size = [112,128].* Scale_Multiplier; RGB2 = ...

4 years ago | 0

Answered
How to solve an optimization problem with the objective function is a matrix ?
Each element of the matrix is effectively a separate objective, so in order to do this you would need to use a multi-objective o...

4 years ago | 0

Answered
How to write the following equation using matlab
syms U L C R t h(t) = 2*sin(sqrt(U*L - C*R^2)/(L*sqrt(2*L))*t) / (sqrt(C)*sqrt(4*L-C*R^2)) * exp(-t*(R/2*L)) Unfortunately y...

4 years ago | 0

Answered
How to extract specific struct data from multiple mat files? Please help. Thank you so much.
N = 5; ap_structs = cell(N,1); for K = 1 : N filename = K + "pbs0.mat"; datastruct = load(filename, 'ap_struct'); ...

4 years ago | 0

| accepted

Answered
Error using gather GATHER requires at least as many inputs as outputs.
You are invoking tall array's gather function, https://www.mathworks.com/help/matlab/ref/tall.gather.html The syntax for that ...

4 years ago | 1

| accepted

Answered
Restart Matlab after renewing my license
Save any needed files. Then quit and then launch MATLAB again.

4 years ago | 0

Answered
How can I decrease intensity levels?
newImg = imresize(Img, size(Img, 1:2)-20);

4 years ago | 0

Answered
How to use imcrop with [ ]
Use rescale() of the data before cropping.

4 years ago | 0

| accepted

Answered
Comparing large sparse matrices for differences close to machine precision
[r1, c1, s1] = find(k1); [r2, c2, s2] = find(k2); rc1 = [r1, c1]; rc2 = [r2, c2]; [~, ia, ic] = intersect(rc1, rc2, 'rows');...

4 years ago | 1

| accepted

Answered
How to make M into a symsfun?
% This program computes for the Tangent Line / Normal Line of a curve % about a given point %define x for sy...

4 years ago | 0

Answered
Why ' gpos.m' is not working( ginput with posiiton of the current axes)?
Change app.tfig = [app.tfig, figure('Name', 'points','WindowButtonMotionFcn',@gpos)]; to app.tfig = [app.tfig, figure('Name',...

4 years ago | 0

| accepted

Answered
What is LD_LIBRARY_PATH when setting up matlab?
LD_LIBRARY_PATH is a standard UNIX (POSIX) environment variable that affects the directories searched by the linker at run-time ...

4 years ago | 1

| accepted

Answered
ScatteredInterpolant for Surface Extrapolation
scatteredInterpolant() does not do any kind of surface fitting. The default fitting option that it uses, the one you are getting...

4 years ago | 1

Load more