Réponse apportée
Dimensionality error with plot
Pdata = reshape(pressureData(1,1,:),1,[]) plot(t,Pdata)

presque 3 ans il y a | 1

Réponse apportée
Incorrect argument data type or missing argument in call to function 'sqrt'.
clc Lc0 = ureal('Lc0',4.2e-3,'percent',10) Lg0 = ureal('Lgo',2.5e-3,'percent',30) Cf0 = ureal('Cf0',8e-6,'percent',10) ...

presque 3 ans il y a | 0

Réponse apportée
Filtering out y values
Here's what you can do to filter y values from a dataset , by applying a condition x = 0:8e4; y = 20*rand(length(x),1); scatt...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
regarding matlab simulink.
Hi @LAXMIDHAR, Delete any files that are previously named untitled in your parent and/or working directory. Close all previ...

presque 3 ans il y a | 0

Réponse apportée
Adding more circles to the scatter plot legend
If you want different colors, call the scatter function seperately for each point. Currently, you are assigning the same color ...

presque 3 ans il y a | 0

Réponse apportée
How to remove zero from float value.?
x = [0.9093 0.9074 0.9014] vpa(round(x,1),2)

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Arrhenius model fitting using fminsearch
Give a suitable values for intial guess as inputs to objective function, and set values for physical constants in correct units...

presque 3 ans il y a | 0

Réponse apportée
Help with solve and symbolic equations
In the first approach, the LHS of both equations are same and when you try to solve only for variable i0 using two equations it ...

presque 3 ans il y a | 0

Réponse apportée
Inverse input/output of switch case function
my_func('word j') function [y] = my_func(x) switch x case 'word i' y = 'name a'; % sprintf('%s'...

presque 3 ans il y a | 0

Réponse apportée
error using horzcat function
theta = [theta(:,1:6),zeros(size(theta,1),1)];

presque 3 ans il y a | 0

| A accepté

Réponse apportée
export structs within structs
Use a for loop to export the struct data to a cell array for J = 1:length(QSMs2.treedata) S{J} = QSMs2.treedata(J); end

presque 3 ans il y a | 0

Réponse apportée
solve thFile: Copy_of_heattransfer.m Line: 18 Column: 13 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for misme error
k_steel = 50; %w/m-k conductivity k_copper = 500; [xs,ts,u_steel,flux_s] = FDM(k_steel); % Temperature distribution in steel r...

presque 3 ans il y a | 0

Réponse apportée
How to check for strings in a cell array using ismember.
ismember(A{i}(j,1), B{i})

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Writing multidimensional array to text file with fprintf
fprintf(fid, '%0.4f \t\n',u10(:,:,i)); fprintf(fid, '%0.4f\t\n',v10(:,:,i)); fprintf(fid, '\n'); Delete the transpose and...

presque 3 ans il y a | 0

Réponse apportée
How to create an empty plotting area, with log X axis?
If you use xlim & ylim it creates an empty plot with axes information having that range specified. Make them empty xlim([0.01,...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Every time I run this code, I get "Error using plot Vectors must be the same length.
x1Range = 0:h1:2; % yEuler1 & yMidpoint1 vectors x2Range = 0:h2:2; % yEuler2 & yMidpoint2 vectors x3Range = 0:h:2;% yHue...

presque 3 ans il y a | 1

Réponse apportée
How to access column of double in struct array?
x(i,:) = y(i,:) = Date(i,:) = % rename date in output vector to Date as its already used in the struct Use the a...

presque 3 ans il y a | 0

Réponse apportée
a little bug in function "plot/stem"
a = ones(1179080,1); stem(a(1:100000:end))

presque 3 ans il y a | 0

Réponse apportée
Why don't the markers have the correct color in the legend?
A1 = randi(10, [5 5]); B1 = randi(10, [5 5]); A2 = randi(10, [5 5]); B2 = randi(10, [5 5]); h1=scatter(A1,B1,'g'); hold on ...

presque 3 ans il y a | 1

Réponse apportée
updating tiledlayout in a loop - "Invalid or deleted object"
Delete the hold on commands that are present AFTER the scatter commands and place it BEFORE the scatter commands. Then add t...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Symbolic equation system - Hi! Can someone please tell me why this algortim is not working? I know resultant values for XA and T are 0.2 and 657 but i want it to work.
If you use vpaintegral instead of int and it can be solved using the vpasolve function.. Also, the integral needs to done w.r....

presque 3 ans il y a | 0

Réponse apportée
Shifting a line on the x-axis ONLY
q = [0:0.01:2]; figure plot(20*q.^2, q.^2) hold on plot(20*q.^2-50, q.^2)

presque 3 ans il y a | 1

| A accepté

Réponse apportée
Matrix display wrong value
L1=1000; L2=2000; b1=10; h1=10; b2=20; h2=20; A1=b1*h1; A2=b2*h2; E1=70e3; E2=205e3; c1=cos(deg2ra...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
How to I get the info from a designated cell from Excel when it is a string?
May be the error refers to the variable Depth for which there is no Value field.. Can you check whether its a simple variable...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Silly question about 2 column matrix
From the below error, its visible that AL01 & SIGMA09 are both scalar variables and difference between them is also scalar. They...

presque 3 ans il y a | 0

Réponse apportée
Why in the code given below the number of iterations of the second - for loop ('j') decreases at each iteration of first - for loop ('l')?
For each iteration of I , the j counter is reduced by N- I instead of N-1 N = 5; length = 0; for I=1:N-1 disp(['l: ...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
why is the lamp changing color?
Hi Mauzmi Ali , In the app designer code, the editField component accepts numeric inputs. By default the Matlab editField com...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
How to do a "for-loop"?
Hi Matrix, What you need in this case is not for loop but a while loop which can avoid writing a loop 600 times and hence mu...

presque 3 ans il y a | 0

Réponse apportée
Array indices must be positive integers or logical values.
x = 0:0.1:4; f = x; g = -2*log10(0.01+10e-4*x); plot(x,f,x,g); func = @(x) 2*log10(0.01+10e-4*x) + x; res = bisect(func, 0,...

presque 3 ans il y a | 0

Réponse apportée
Partitioning and putting titles in a subplot
If you want partioning using subplot titles then below is one method clc; close all; clear all; x = [0 1 2 3 6 4 5 8 5]; y ...

presque 3 ans il y a | 0

Charger plus