Answered
3D plot with specific values
x = 1:7; y = 1:9; z = randi([0 800], length(y), length(x)); surf(x, y, z) Except you would use your actual Z data.

3 years ago | 0

| accepted

Answered
Putting a cell into a .mat file
%% Loading images imgfolder = 'Images'; % Checking how many items are in the folder list = dir( fullfile(imgfolder, '*.ti...

3 years ago | 0

Answered
mapping between two different matrices
b(:,a(1,1))

3 years ago | 0

Answered
Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use brackets instead of parenthe
Orientation >= -3pi/4 MATLAB does not have any implied multiplication. 3pi is invalid in MATLAB. Side note: I recommend using ...

3 years ago | 0

Answered
I no longer have acces to Matlab after a reinstall even though it was working fine before that
As a student, there are two possibilities: the student can purchase a Student License or Student Suite License, typically direc...

3 years ago | 0

Answered
Can Web App collect Environment Variables from client PC hosting web browser?
.. maybe? You can link in Javascript to App Designer, and Javascript can access environment variables https://dmitripavlutin.c...

3 years ago | 0

Answered
How to plot subplots in one figure to showing 4 seasons of chlorophyll-a data?
Try % Create a new figure fig = figure; % Add the NEM subplot ax = subplot(fig, 2, 2, 1); imagesc(ax, lon, lat, NEM); co...

3 years ago | 0

Answered
how i remove blue portion from graph
It appears that you have created a surface from a 2D array that has a row of 0 on the top and left edges. Depending exactly ho...

3 years ago | 0

| accepted

Answered
Which reference should I cite when using the fmincon with interior point method
https://www.mathworks.com/matlabcentral/answers/1693295-how-to-cite-matlab-2022#answer_939675 talks about how to cite MATLAB its...

3 years ago | 0

Answered
How can remove these outlier from the files sigle vector ?
clean_m = m; clean_m(k) = []; In the special case that you do not need the original m afterwards you can simplify down to m(k...

3 years ago | 0

Answered
How to increase sampling rate without change of the signal bandwidth
resample and then put it through a low pass filter at 600 Hz . The source rate is 600 Hz so logically the low-pass should leave ...

3 years ago | 0

Answered
matrix of data into a formula
This is to filt Y = ax + bn + cs + dz + constant xvec = list of valid x values, in the order used to construct Y nvec = list o...

3 years ago | 0

Answered
Plotting a figure, with the color of the plot based on a secondary variable
plot() does not have the ability to plot an individual line with different colors for different vertices. I suggest plot(theta,...

3 years ago | 0

| accepted

Answered
addpath command error after macbook update
See https://kb.synology.com/en-us/C2/tutorial/How_to_enable_Full_Disk_Access_on_a_Mac for how to grant full disk access -- thoug...

3 years ago | 1

Answered
How to match table values to variables?
als = T.Altitude; orbits = categorical(T.Orbit); [als, idx] = sort(als); orbits = orbits(idx); Now you can discretize with t...

3 years ago | 0

| accepted

Answered
Modify an array elements using a for loop
As an outline, for index_variable = start_value : increment : final_value if some_array(index_variable) satisfies some con...

3 years ago | 0

| accepted

Answered
How to save a function handle to a .m file
myfunc = @(x,y,z) x.^2+y+z; writelines("myfunc = " + func2str(myfunc), "myfunc.m") %crosscheck dbtype myfunc.m

3 years ago | 0

Answered
Why is fscanf reading a 0 from my input file?
Your code has Height = fscanf(fid, '%s', 1); %Change height of Node B,D,F with a varrying theta if (Height ...

3 years ago | 0

| accepted

Answered
How do I prevent this array from displaying in the live editor?
mean_error() is not a Mathworks-provided function. It is a third-party function or one of your functions, and inside it there is...

3 years ago | 0

| accepted

Answered
Communication between matlab and arduino
Considering the low frequency at which you are probing (every half second or every 10 seconds), it would probably be easier for ...

3 years ago | 0

Answered
Displaying Output in Command Window
One way would be X = " Damping Ratio: " + dr + " Period: " + T + " Undamped Frequency: " + wn + " Damped Frequency: " + wd + " ...

3 years ago | 0

Answered
Error in Double Integration problem
syms q theta q becomes a scalar symbolic variable q=sqrt(qx^2+qy^2); but now it is an expression fun = matlabFunction(Phi,'V...

3 years ago | 0

Answered
How to stop pi appearing as a text in the disp result?
sympref('FloatingPointOutput', true); syms x f= cos(x); t6= taylor(f,x); val=subs(t6,x,pi/4); disp(val); I do not recommen...

3 years ago | 0

Answered
Creating an 8 bit uniform scalar quantizer
quantize() or histogram (the 'bin' output) or rescale to 0 to 255*(1-eps) and floor()

3 years ago | 0

Answered
Finding first value in an array equal to each number in a vector
See the second output of ismember() -- you might need to exchange the parameters

3 years ago | 0

| accepted

Answered
Laptop slept for several hours while I was publishing a code. Now Should I stop it from running and start over?
If you were to stop it now, it is most likely that you would get no output. There is a chance that you just might get a partia...

3 years ago | 0

Answered
How can I process the image and extract the spacing between individuals dots in a row ?
Invert the image so that the black-on-white becomes white-on-black. regionprops looking for the centroids and extrema. The angle...

3 years ago | 1

Answered
Saving all tabs into a folder
targetdir = 'DirectoryToSaveInto'; if ~isdir(targetdir); mkdir(targetdir); end X = matlab.desktop.editor.getAll; newnam...

3 years ago | 1

| accepted

Answered
what is the 'filtfilt' working domain
It works in the time domain.

3 years ago | 1

| accepted

Load more