Réponse apportée
How to generate a plot from an array and show the function/equation that verifies it?
Here is how one can get the scatter plot of the given data with its sequential number: s = [1640 2360 3116 3910 4743 5618 6537 ...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
Error in Linear Convolution code MATLAB
Hi, Here is the corrected code. Note also two variable names are changed to avoid confusion l1 to L1 and l2 to L2. %%Linear ...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
Data dimensions must agree.
Check the sizes of these variables: size(yvalue) size(xvalue) size(abs(Xpow)) See e.g.: x = -10:.2:10; y = -pi:.1:pi; [Xv...

environ 3 ans il y a | 0

Réponse apportée
Error using MATHLABbatch system!
Here is the nice help on how to adjust MATLAB batch size while performing large simulations: https://vsoch.github.io/wiki/clus...

environ 3 ans il y a | 0

Réponse apportée
How can I create a matrix that contains number and text without using the cell array?
The most efficientw ay of getting this exercise done is wot use writetable(): % (1) Some structure data: A.Data1 =(1:10).'; A...

environ 3 ans il y a | 0

Réponse apportée
How do you ask the user to load a path from the .xlsx file, then store it in variables with some concerns when reading the .xlsx file using app designer?
There are a few points to consider here. Using readmatrix(), readtable(), readcell() and writetable(), e.g.: A1 = readmatrix("f...

environ 3 ans il y a | 1

| A accepté

Réponse apportée
how to code equation
Here is the corrected code: Re = 0:50:1000; xL = linspace(0,1, numel(Re)); Cf = 0.664*(Re).^(-0.5); deltaX = 5.0*(Re).^(-0...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
I am working on to pre process my ultrasound images using loop.But i couldnt save the output of the preprocessed images from the loop.
The code is overwriting the already existing file with a changed size and recalling it again. Thuis, the file name change was ne...

environ 3 ans il y a | 0

Réponse apportée
Normalizing to the maximum value
Use normalize() to normalize each row or use simple matrix operation to obtain the values of matrix elements to be between [0 ....

environ 3 ans il y a | 0

Réponse apportée
How do I create a table and add a row of text from an existing matrix?
Here is one of the possible solutions with strcat() to rename the table header variable names, e.g.: DAT = randi(13, 15); RR =...

environ 3 ans il y a | 0

Réponse apportée
How can I generate a trigonometric formula for the following case?
Here is how this can be solved using syms and vpasolve: Theta= [39.8414239035357 38.0423831220740 35.9925962696569 33.66291792...

environ 3 ans il y a | 1

Réponse apportée
Write a MATLAB function called myelecusage with one input, a list of 5 numbers, representing the individual measurements from an electric meter dial guage and returns the tota
Here is the corrected answer: ANSWER =myelecusage([3, 0, 8, 9, 3]) readings=[0, 2, 8, 1, 0]; kwhr = myelecusage ([readings]) ...

environ 3 ans il y a | 0

Réponse apportée
how to use partial derivative in fraction form in latex intepreter
Here is one simple example on how to use latex to display partial derivatives, e.g: fplot(@(t)exp(sin(2*t)), [-pi, pi]) title(...

environ 3 ans il y a | 0

Réponse apportée
How to read all sheets from an excel and output them
An alternative solution to this exercise with MATLAB recommended functions is: clf FName ='Exercise1.xlsx'; S_names = sheetna...

environ 3 ans il y a | 1

Réponse apportée
How can I solve this expression for Qi_s/thetha_s = ....?
To get a transfer function, you should divide both sides of the equation by theta_s, and you will get this: % Qi_s/C-theta_s/(R...

environ 3 ans il y a | 0

Réponse apportée
Issues in the constraint functions of the Optimization Problem solving
There should be elementwise operations in ceq formulation if M2, beta1, beta2 and P are vectors.

environ 3 ans il y a | 0

Réponse apportée
Why my symbolic result of eigenvalue doesn't match my numeric result?
The reason for having three different eigen values can be explained with the followings: Eigenvalues1 = eig([2 0 0; 0 2 0; 0 0 ...

environ 3 ans il y a | 0

Réponse apportée
Exponential approximation for vector input
You have overlooked one dot. Here is the corrected commands: vect = [-5.0000 -5.0000 -5.0000 1.0000 0.9000 0.8000...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
How do I get I pass out the input parameter to ode45 integration
There are a couple of overlooked points as Torsten pinpointed out. Here is one simple explae of dx = 2x example solution very si...

environ 3 ans il y a | 0

Réponse apportée
How do i find the standard deviation of every row of a 12*18 cell array?
Her is one solution: C = load('mean.mat').z; S =C; for ii = 1:12 for jj=1:18 IDX = isnan(C{ii,jj}); ...

environ 3 ans il y a | 0

Réponse apportée
How can we re construct images with equation for temperature distribution. ?
Use gtext() to display the equation

environ 3 ans il y a | 0

Réponse apportée
Processing Time for Data
You can try: tic .. toc

environ 3 ans il y a | 0

Réponse apportée
Training and splitting a custom dataset
In this case, there are a few ways - cvpartition() and datasample() to split/partition the data into training and test data sets...

environ 3 ans il y a | 1

Réponse apportée
movavg with custom type and weights
In this case, it is better to use filter() that gives a good moving average filter solution: A = 1:5; B = [.5 .5 ]; Out_A = f...

environ 3 ans il y a | 0

Réponse apportée
why this code gives error?
Here is the corrected code: [color, I_map]=imread('C:\Users\User\Desktop\matlab\photo.png'); gray=rgb2gray(color); gray=doubl...

environ 3 ans il y a | 0

Réponse apportée
Plotting a signal function
This can be also solved using griddedInterPolant(), e.g.: % Solution # 1. Y = [0 1 1 2 2 -1 -1 0 ]; % y data X ...

environ 3 ans il y a | 0

Réponse apportée
How to draw a 3D phase plane using three differential equations with 5 parameters
First of all, you need to have the param values for alpha, beta, tau, gamma, delta and initial conditions for D1, D2, h. This ex...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
How to multiply, in a loop, a function by a variable from a matrix and plot the change.
Here is the corrected code with some modifications to imptove the computational efficiency of the code. Note that x1 is not chan...

environ 3 ans il y a | 1

| A accepté

Réponse apportée
A system of nonlinear equations with three variables
In your code, there are a few errors with matrix operations. It is more computationally to use vectorized approach instead of f...

environ 3 ans il y a | 0

Réponse apportée
How to send variable signals in Simulink?
Simulink has [From Spreadsheet] block that can be used to read data from an external file - *.csv. Here is one example (DATA_re...

environ 3 ans il y a | 0

| A accepté

Charger plus