Answered
What New Functions or Features in R2023B are of Interest?
R2023b does not have many changes of interest to me. What it does have that might be useful to me is, Find and Replace Dialog...

2 years ago | 0

Answered
error whilw downloading Copernicus Marine data via MOTU in MATLAB
motu_line = sprintf("py -m motuclient --motu https://nrt.cmems-du.eu/motu_web/Motu", ... " --service-id ", serviceId, "-TDS...

2 years ago | 0

Answered
How to calculate first and second derivative for concentration?
%first and second derivative df=diff(M1(j+1),t); You have that line before your for j loop, so at that point j is its default...

2 years ago | 0

| accepted

Answered
I need help separating some horseshoe data
filename = '1147406HorseShoe.csv'; data = readmatrix(filename); Nclust = 3; [G, centers] = kmeans(data, Nclust); centers ...

2 years ago | 0

Answered
Why does MatlabR2023b frequently crashes when generating figures
-Codes can correctly generate figures (using plot function), but when I try to close the graph it stops responding Don't close ...

2 years ago | 1

Answered
How to utilizes APIs provided by robot manufactures and then control the robot
See https://www.mathworks.com/help/matlab/call-cpp-library-functions.html for C++ libraries, and see https://www.mathworks.com/h...

2 years ago | 1

| accepted

Answered
VideoReader missing codec problem
Doesn't the MATLAB installation include the video codes required for the video formats VideoReader/VideoWriter supposedly suppor...

2 years ago | 1

Answered
Student licence claim duration
Depending on the country, and the payment method, and the time of day, it can be anywhere from 30 seconds to second business day...

2 years ago | 0

| accepted

Answered
How do I perform several iterations in MATLAB?
Change for K = 1 : 100 L = 1.56*(y^2)*tanh(61.58/L); end to LGuess = 60; for K = 1 : 100 L(K) = fzero(@(L) 1.56*(...

2 years ago | 0

Answered
The code runs when if I do; newton_recur(@(x) x^2,@(x) 2*x,1,10) but wont work if I leave out the @(x). is there a way to do this so that the user doesn't need to add @(x)?
In MATLAB, parameters to a function are always evaluated before being passsed to the function. There is no way in MATLAB to be a...

2 years ago | 0

| accepted

Answered
Starting parallel pool gives message about crash dump files
Some previous run or runs crashed at some point in the past. The job identifiers involved were 9 and 73 -- which were not necess...

2 years ago | 2

| accepted

Answered
run topology optimization code
You editted the code for top99neo.m which you should not have done. You need to restore the code to the original -- in particula...

2 years ago | 0

Answered
Related to creating the vectors in MATLAB
(8) (3) is 8!/(3! 5!) = 56. log2 of that is between 5 and 6. floor of that is 5. So your formula calculates N = 5, *not*...

2 years ago | 0

| accepted

Answered
Can someone help me with my code. Calculate the position (coordinates x and y) of points B C and D . Calculate the linear velocity (vx and vy) of points b c d.
Ultimately the program cannot be run because you do not define r_ab = 0.3; w_ab = 0.2; Th1_1i = 30; w_bc = -0.05; r_bc = 0...

2 years ago | 1

Answered
How can I use Excel sheet names as variables in the area (x, y) syntax?
You just go ahead and do it. For example, rng(655321) filename = 'test.xlsx'; for K = 1 : 3 sheetname = "s" + randi(6553...

2 years ago | 1

| accepted

Answered
MATLAB ignores a trisurf's FaceVertexAlphaData property
https://www.mathworks.com/help/matlab/ref/matlab.graphics.primitive.patch-properties.html#buduav0-1-FaceVertexAlphaData Note ...

2 years ago | 0

| accepted

Answered
How can I print the mean and standard deviation in the histogram plot?
You can text the information into place. Or you can put it into a title or subtitle

2 years ago | 1

Answered
I need to repeat a periodic signal
Hint: syms t F(t) = piecewise(-2 <= t & t < 0, 1, 0 <= t & t < 1, 2, 1 <= t & t < 2, 3) fplot(F, [-10 10]); ylim([-1 4]) G =...

2 years ago | 0

Answered
How can I convert handle function to a string
f=@(x) 2*x+1 syms x solve(f(x))

2 years ago | 1

Answered
How can I create a .txt files from a cellarray that is 80x1 into 80 different files with the same name with different number in the end?
for K = 1 : numel(LF) filename = "LF" + K + ".txt"; writematrix(LF{K}, filename, 'Delimiter', '\t'); end

2 years ago | 0

| accepted

Answered
format number column table/array
MATLAB does not provide any way to customize how many digits are displayed for numeric arrays, other than 2 digits ( format bank...

2 years ago | 1

Answered
How to apply a 'custom' colormap to multiple data sets including negative and positive values
You indicated that you wanted the values "around" 0 to be white. In the following code, the values between -1/2 and +1/2 are map...

2 years ago | 1

| accepted

Answered
Anonymous Function : asymmetric read/write behaviour
a(1) = @(x)x{1} a(1) = @(x)x{1}.^2 + 3 a When an anonymous function appears on the left of an = then it is a request to modif...

2 years ago | 1

| accepted

Answered
I want to find the width of a line...how to do?
When you have an open object -- a line that does not loop back to cross itself, and does not enclose an area -- then you can use...

2 years ago | 0

Answered
How to code a ramp function?
t = linspace(tmin,tmax,tstep); t is a vector. if t<=4 MATLAB treats that as equivalent to if all(t<=4) and the body of the...

2 years ago | 0

| accepted

Answered
I can't get my function to work or print right
The values are not below 1: you have been fooled by the way the default output format x=(0:31); y=(2.^x); disp(y) forma...

2 years ago | 0

| accepted

Answered
Wrong symbolic solution for trigonometry
syms x sol = solve(sin(x)/cos(x)==-3.0) sola = rewrite(sol, 'atan') simplify(sola, 'steps', 100) simplify(sola, 'steps', 5...

2 years ago | 0

| accepted

Answered
how distribuite correctly array in struct
%sample data Sis = struct('dailyprof', {19, [3 11], -5}) %do the actual work [Sis.dailyprof_Orig] = Sis.dailyprof; %cross-...

2 years ago | 0

| accepted

Answered
Movefile and wtifc error
[ ~, ~, filename,] = fileparts(File.Name(ii).CropX) ; The third output from fileparts() is the file extensi...

2 years ago | 0

Answered
newff function does not appear in 2023b version
No, the last time newff was documented was R2010a. The teacher needs to rewrite the lab. See fitnet and feedforwardnet https:...

2 years ago | 0

| accepted

Load more