Answered
dropdown list cancel option
Try function isempty: if isempty(result) disp('User select to cancel'); end

23 days ago | 0

Answered
Plot a function for x<0 and x >0
You may modify based on the following code and you should plot first and then set the grid,title,xlabel,ylabel,etc x = -5:5; y...

23 days ago | 1

| accepted

Answered
derivative dot symbol in the legend of 2d plot
Somthing like the following? x = 1:10; y = 1:10; plot(x,y); legend('$\dot{\epsilon}$','Interpreter','latex','FontSize',16) ...

23 days ago | 0

| accepted

Answered
Matlab create function - Invalid expression
Simply modify your function as follows. function [relative_pose_endeffector] = forward_kinematics(T_0_3, q_actual) relati...

23 days ago | 0

| accepted

Answered
How to add the rows if it is same.
Put your data into a table with Variable Names 'Game' and 'Time', then use function groupsummary to sum up the values groupsum...

24 days ago | 0

| accepted

Answered
Cannot plot the full interval
You converted H_climb & H_cruise from [feet] to [m] by multiplying the value by 0.3048. However, there is no such conversion fo...

2 months ago | 1

| accepted

Answered
log2() only works with double types?
Check MATLAB documentation and this fucntion log2 supports type single or double as the input argument type.

3 months ago | 0

| accepted

Answered
y axis values - change the display
Modify the yticklabel as follows: % plot something ax = gca; yticklabels(arrayfun(@(x) sprintf('%d',x),ax.YTick,'uni',0))

3 months ago | 0

Answered
Using figure to change to fullscreen size then save it as png
Try the following for the figure you want to enlarge: fig1 = figure(1); fig1.WindowState = 'maximized';

3 months ago | 0

| accepted

Answered
Radially plot ROIs on image
Try using function cart2pol, following is an example clear; clc; Ny = 1000; Nx = 1000; Nz = 30; ...

4 months ago | 0

| accepted

Answered
What's the problem here?
function im2gray does not accept the jpg image, it accepts the image in pixel values Try the following: pic = imread('good_day...

4 months ago | 0

| accepted

Answered
Figure with 17x17 subplot
Another option is use function tiledlayout tiledlayout(17,17,'TileSpacing','none','Padding','none'); nexttile

4 months ago | 0

| accepted

Answered
How to read specific sheet from an excel file using readcell?
Try the following for an excel file name 'demo.xlsx', and sheet name 'Signals'. It is the same for readtable or readmatrix. re...

4 months ago | 1

| accepted

Answered
My frequency plot isn't showing anything
The idexing for frequency and residual torque, variable w and S starts from 1 to 1000 and from 2 to 11 resepctively. So I think...

4 months ago | 0

| accepted

Answered
Add '_max' to odd variable names and '_min' to even ones.
Suppose the table is called T, then try the following: T.Properties.VariableNames(1:4) = {'t_max','t_min','ang_azi_max','ang_az...

4 months ago | 0

Answered
How do a cell2mat conversion for a non-uniform cell to a matrix
Do it in several steps as follows: idx.size = cellfun(@length,DD); idx.padded = max(idx.size)-idx.size; DDpadded = cellfun(@(...

4 months ago | 1

| accepted

Answered
Differentiate between oval and circle shaped images using MATLAB
You may try function bwconvhull by adding the following 2 lines. However, I am not sure how robust it is for other pictures. B...

4 months ago | 0

Answered
how to join the values of different cells in different columns in one cell ?
Suppose you read the file using function readtable and the name of the table is T, then variable C in the following will give yo...

4 months ago | 0

Answered
How to change the color of my plots
Just put the color code for the markers. May try the following: for n=.3*N:N x=(1-d).*x.*exp(a.*(1-x).*((x/0.2)-1))+d.*y.*...

4 months ago | 0

| accepted

Answered
Fix "index exceeds number of array elements"
j is going to be the index and hence theta_x should not be use Try the following: for j=1:length(theta_x) s(j)=L1(j)^2+L2...

4 months ago | 0

| accepted

Answered
How to use writematrix to create a single xlsx file with multiple sheets with name of the analysis file?
Use function <https://www.mathworks.com/help/matlab/ref/fileparts.html fileparts> to extract the name instead of the entire file...

4 months ago | 1

Answered
find ID's of repeated values in array
You may use a for loop as follows: idx = zeros(1,length(t1)); for k = 1:length(t1) idx(k) = find(ismember(t2,t1(k))); en...

4 months ago | 0

| accepted

Answered
cration of contents inside the cell array of uniform size
May try the following to add NaN to the new rows load('data.mat'); addrow = cellfun(@(x) 8-size(x,1),Data,'uni',0); result = ...

4 months ago | 0

Answered
Why is it not working?
Index jj is not defined inside the for-loop, i guess the code should be modified as the following for ii=1:26 for jj = 1:2...

4 months ago | 0

| accepted

Answered
Index in position 2 exceeds array bounds (must not exceed 1) ?
One of the input argument is variable 'c' and you use the same name again for the size of variable 'a' and hence gives you an er...

4 months ago | 1

| accepted

Answered
Area fill under a curve
Check the MATLAB documentation about area. w is a function handle and it is not supported. Try the following: x=linspace(0,2*...

4 months ago | 0

Answered
Separate 24 digits single array of data loaded from file into 6 different arrays
Try the following by converting the text using function num2cell. clear; clc; fid = fopen('data.txt'); d = textscan(fid,'%s')...

5 months ago | 0

| accepted

Answered
Edge detection in gradient images
Try Otsu's method rawdata=imread('capture 1.png'); I = rgb2gray(rawdata); level = graythresh(I); BW = imbinarize(I,level); ...

5 months ago | 1

Answered
what happened to my install ?how to solve this proplem?
If your installation runs on WIndows, please check whether you have adminstrator right or not. On the other hand, you may refer...

5 months ago | 0

Answered
Plot 3D surface from Excel .csv File
You may extract the data using function readmatrix. clear; clc; rawdata = readmatrix('data.csv'); x = reshape(rawdata(:,1),[]...

5 months ago | 1

| accepted

Load more