Réponse apportée
Is there a way to handle the writing labels of axes coordinate (The writing is not in a straight line with respect to the axes. I would like to modify that.)?
[X, Y, Z] = peaks(40); figure surf(X, Y, Z) xlabel('This is XLabel'); ylabel('This is YLabel'); h =gca; % use the follow...

presque 4 ans il y a | 0

Réponse apportée
The program cannot work
% [roll1,roll2] = dice(6) % The above is wrong in syntax as the function has only ONE return object % dice (as an array). %...

presque 4 ans il y a | 1

Réponse apportée
How to make size of legend window on a figure window as small as we desire?????
openfig("fitness2snAll.fig"); figure openfig("fitness2snAll.fig"); h = legend % Try to adjust the position of the legend % ...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
change tick values heat map
It seems that "heatmap" has no properties for changing display text. You can use imagesc instead: data = rand(4); imagesc(dat...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
How to replace cell in a table with number?
T = readtable('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1050910/Auto_20220630100635.csv'); head(T) T.PF_...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
Fitting 65k rows with 6 points takes too much time with for loop.
n = 65536; M_1 = randn(1, 6); M_2 = randn(n, 6); tic coefficients=zeros (n,2); for i=1:n coefficients(i,:) = polyfit...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
How to make Network/nodal analysis and value distribution in MATLAB?
"graph" can be used for such problem. Node connections are: Node 1 - 2,3,8; Node 2 - 1,4,8 ; Node 3 - 1,5,8 ; Node 4 - ...

presque 4 ans il y a | 1

Réponse apportée
change tick values heat map
cdata = rand(3,3); h = heatmap(cdata); h.XData = ["A", "B", "C"]; h.YData = ["A_1", "B_1", "C_1"];

presque 4 ans il y a | 1

Réponse apportée
How to create table?
problem =["A", "A","A","A","B","B","B","B","C","C","C","C"]'; performance = ["D","E","F","G","D","E","F","G","D","E","F","G"]';...

presque 4 ans il y a | 0

Réponse apportée
why 350*0.001 - 0.350 and 351*0.001 - 0.351 are different from zero
The floating-point numbers are represented by a sequence of binary bits in computer. For matlab, the default double type use 64...

presque 4 ans il y a | 0

Réponse apportée
Divide the new images
x = imread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1048515/image.jpeg'); figure; imshow(x) % divide...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Working on subsection of EMG data
The simplest way (but can be cumbersome) is to plot the data and manually mark the starting and ending point of each section of ...

presque 4 ans il y a | 0

Réponse apportée
How to extract the right struct from the cell array of structs based on condition?
load part.mat whos % MATLAB-ish way idx = cellfun(@(x) isfield(x, 'property') && x.property == "Mass %", values); searchedIt...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
How can I solve matrix selection extraction
load C.mat % select columns 1-101, columns 103-203, 205-305, and columns 307-407 % and make them into one matrix. WhatYo...

presque 4 ans il y a | 0

Réponse apportée
.csv file row and line
% For earlier version of matlab fid = fopen("test.csv") If possible, use '.' as decimal point rather than ','. % 4,15414 8,...

presque 4 ans il y a | 0

Réponse apportée
how to make a patch on geoplot?
You data is not in correct order. The axis scale is also not proportional. Try geoplot if you have mapping toolbox. x = [126...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Estimating the direction of arrival of a sound signal using time delay sum beamforming
See the comments inside the code array = phased.ULA('NumElements',11,'ElementSpacing',0.04); sensorpos = getElementPosition(ar...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
Calculate a value from a table column based on defined intervals give by another table
load("table T"); load("table T2"); head(T) head(T2) n = size(T2, 1); T2_max = zeros(n, 1); for i=1:size(T2, 1) T2_max...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
How can the edges on the shortestpath be determined?
s = [1 1 2 3 3 4 4 6 6 7 8 7 5]; t = [2 3 4 4 5 5 6 1 8 1 3 2 8]; G = digraph(s,t); plt = plot(G) [P, d, edgepath] = short...

presque 4 ans il y a | 3

| A accepté

Réponse apportée
One hop nearest neighbor in a graph
% Example graph s = [1 1 1 1 1 2 2 2 3 3 3 3 3]; t = [2 4 5 6 7 3 8 9 10 11 12 13 14]; weights = randi([1 10],1,13); G = gra...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
Convert a function into a matrix
Parameters= {'R0','R1','C1','Qr','bo','b1','SOC','Vrc','Voc'}; R0=0.000605797; Qr=147964.8608; R1=0.000856205; C1=0.04982323...

presque 4 ans il y a | 0

Réponse apportée
Sorting/Grouping based on date for all years
x = readtable("Example.xlsx"); % head(x) x1 = x(x.Var1>=datetime(2004, 09, 27) & x.Var1<=datetime(2004, 10, 27), :); summar...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
How to create a 3D surface plot from scatter3?
test=load('test.txt'); x = test(:,1); y = test(:,2); z = test(:,3); s=scatter3(x,y,z); view(3); figure dt = delaunayTri...

presque 4 ans il y a | 0

Réponse apportée
How do I change axis label orientation
[X, Y] = meshgrid(1:.2:10, 1:.2:20); Z = sin(X) + cos(Y); figure surf(X, Y, Z) xlabel('XLabel'); ylabel('YLabel'); zlabel(...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
how to remove values below 0.1?
a = 0.4*rand(100,1); % generate some data a(a<0.1) = nan

presque 4 ans il y a | 0

Réponse apportée
predicting crossproduct and magnitude of a vector
Multiple-layer feedforward network is a universal approximater (with some nonlinear transfer functions). So you can predict the...

presque 4 ans il y a | 1

| A accepté

Réponse apportée
table select rows with string/value of two colums
data ={ 704306.281000000 5364346.78000000 440.678000000000 113 'R' 'AX_UnlandVegetationsloseFlaeche' 0 0 0 0 0 0 70...

presque 4 ans il y a | 0

Réponse apportée
Hello, I did a for loop but my friend told me it is not the correct matlab syntax. Can anyone help me the for loop is in the description below:
It looks like you want to find the local minima xa = randn(30, 1); Lm = nan(size(xa)); for i=2:length(xa)-1 if xa(i-1)>x...

presque 4 ans il y a | 0

Réponse apportée
Storing matrices in cells
for i=1:20 %psudoinverse pH_matrix=pinv(H_matrix); % H_matrix: 1X20 % You can use cell array to store the result ...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
change the hyphen (-) into minus sign (−, “U+2212”)
set(groot,'defaultAxesTickLabelInterpreter','latex'); plot(randi([-60 60], [20, 1])) xticks(-60:20:60) yticklabels(strrep(yt...

presque 4 ans il y a | 0

| A accepté

Charger plus