Réponse apportée
how to use "range" in uislider
s = uislider(fig,"Limits",[1 50]); <https://www.mathworks.com/help/matlab/ref/matlab.ui.control.slider-properties.html>

presque 2 ans il y a | 1

Réponse apportée
str2num is returning and empty matrix: []
You don't need to use cell2mat; just use curly braces to get the contents of a cell in a cell array. For example: datetempDat ...

presque 2 ans il y a | 0

Réponse apportée
str2num is returning and empty matrix: []
There may be a character you don't see, at the beginning of the file, which is included by importdata at the beginning of the fi...

presque 2 ans il y a | 0

| A accepté

Réponse apportée
How do i extract a column from an array
This stores the 3rd column of the array A as Col1 (and displays Col1 in the command window): Col1 = A(:,3) Is that what you wa...

presque 2 ans il y a | 0

Réponse apportée
graph multiple excel or csv files
% get info about the (4) files S = dir('*.xlsx'); % construct full path file names filenames = fullfile({S.folder},{S.name}...

presque 2 ans il y a | 0

| A accepté

Réponse apportée
Different Output value of Functions
Implementation 1 has x*y^2 in the third term; Implementation 2 has x1*x2^3 in term3. f_value = (1.5- x+ x*y)^2 + (2.25 - x + x*...

presque 2 ans il y a | 0

| A accepté

Réponse apportée
Placing transparent rectangles on top of a plot
It's hard to say for sure what the problem is without the data, but one problem might be that the axes Y-Limits are outside wher...

presque 2 ans il y a | 1

| A accepté

Réponse apportée
How do I use only one legend entry for sets of xlines?
One way is to explicitly state which line objects to put in the legend, in the call to legend. For example: subplot(3,1...

presque 2 ans il y a | 1

| A accepté

Réponse apportée
Plot two areas of logarithmic plots
load('data_x.mat') figure; plot(x1,y,'b','Linewidth',1); hold on; plot(x2,y,'r','Linewidth',1); set(gca,'xscale','log','...

presque 2 ans il y a | 0

| A accepté

Réponse apportée
Variable Browser Tab Issue
It looks like the Variable Browser for that particular variable became undocked. See the following answer for how to dock it aga...

presque 2 ans il y a | 0

| A accepté

Réponse apportée
Need help in MATLAB tiled layouts (nested)
Something like this? t=tiledlayout(2,2); [X,Y,Z] = peaks(20); % Tile 1 t1=tiledlayout(t,1,2); nexttile(t1) surf(X,Y,Z) ne...

presque 2 ans il y a | 1

| A accepté

Réponse apportée
how to create array datetime
load matlab_A A hh = floor(A(:,4)/100); mm = mod(A(:,4),100); ss = zeros(size(A,1),1); B = [A(:,[1 2 3]) hh mm ss]; D ...

presque 2 ans il y a | 1

| A accepté

Réponse apportée
Overlaying three functions on a single plot
To avoid the error, use element-wise multiplication (.*), because * is for matrix multiplication. https://www.mathworks.com/hel...

presque 2 ans il y a | 0

| A accepté

Réponse apportée
>> qardl(data, ppp, qqq, tau) Unrecognized function or variable 'data'.
To run this function, you'd need to supply the inputs data, ppp, qqq, and tau. These are described in the comments at the top of...

presque 2 ans il y a | 0

Réponse apportée
Why does the tiledlayout keep the whitespace between tiles although TileSpacing is 'tight'
I guess the "tiled" part of "tiledlayout" implies that all contained axes are the same size and that the amount of space between...

presque 2 ans il y a | 0

| A accepté

Réponse apportée
Crashing on size(img)
You have a variable called "size". If this is a script, do clear size and then run the script again. If this is a ...

presque 2 ans il y a | 1

| A accepté

Réponse apportée
Sort Table Variable with Cell Arrays
t = table(t1,t2); [~,idx] = sort(t1(3:end)); t = t([1; 2; 2+idx],:);

presque 2 ans il y a | 0

Réponse apportée
Why is my code seemingly ignoring some of the for loop commands?
d is computed anew on each iteration of the for loop; thus after it's done the result you see is the last d that was computed, e...

presque 2 ans il y a | 1

Réponse apportée
Error due to not enough input arguments in ' C_c = cold.m_dot_c*Cold.c_p_c; %W/K '
The function find_UA expects two inputs. If you provide fewer than two inputs (e.g., by clicking the green Run button in the MAT...

presque 2 ans il y a | 0

Réponse apportée
How can I display a line in 3D with a colour gradient?
n = 10; x = linspace(1, 2, n); y = cos(x); z = y.^2; points = [x' y' z'] surf(points(:,[1 1]),points(:,[2 2]),points(:,[3...

presque 2 ans il y a | 2

| A accepté

Réponse apportée
Timer function to refresh the data
Make timerObj an app property so that the functions within your app can access it. properties (Access = private) timerObj ...

presque 2 ans il y a | 0

| A accepté

Réponse apportée
using bar3(z) to plot in unusual data visualization
red_data = [ 5 5 20 35 15]; blue_data = [30 25 20 15 5]; green_data = [30 25 35 5 5]; Nr = numel(red_data); Nb = nu...

presque 2 ans il y a | 0

| A accepté

Réponse apportée
Removing empty cells from cell array with multiple rows while preserving the rows
C = { ... 'Right knee','Head','Elbow/forearm',[]; ... 'Hand/wrist',[],'Pelvis',[]; ... [],[],'Ankle/foot',[]; ......

presque 2 ans il y a | 0

| A accepté

Réponse apportée
How code with for loop to get an array?
You can make I a 3D array of size Nx-by-Nx-by-numel(F). clc;close all;clear all; lambda = 532; k = 2*pi/lambda; z=[1.037000...

presque 2 ans il y a | 0

| A accepté

Réponse apportée
Why is this dot notation used?
.' is transpose, and ' is complex conjugate transpose, so when x is real, x.' and x' are the same. Example, real x: x = magic(...

presque 2 ans il y a | 0

| A accepté

Réponse apportée
Input folders or files contain non-standard file extensions.
The error is happening on this line: ads = audioDatastore(output_dir, ... 'IncludeSubfolders',true, ... 'LabelSource'...

presque 2 ans il y a | 0

Réponse apportée
Pass variable name through variable of a custome save function made error
In saveModel, the variable model is a string variable containing the name of the struct variable you want to save, right? The p...

presque 2 ans il y a | 0

| A accepté

Réponse apportée
How to use my Line and Collum in Excell as X and Y for my graphic?
xlim(x([1 end]))

presque 2 ans il y a | 0

Réponse apportée
Matrix does not want to multiply and gives an error when I multiply a 3x3 matrix with a 3x1 matrix
Do Ainv*B not B*Ainv A=[9,29.3, 140.99; 29.3, 140.99,827.693; 140.99, 827.693, 5400.863] Ainv=inv(A) % inverse matrix B=[4...

presque 2 ans il y a | 0

Réponse apportée
How to set the visibility of labels attached to controls such as edit boxes in APP Designer?
First, make the label show up in the Component Browser by right-clicking the edit field and selecting "Include component labels ...

presque 2 ans il y a | 0

| A accepté

Charger plus