Answered
Matlabd variable is not chaning in workspace
Start your code with: clearvars

3 years ago | 1

Answered
How to create a hysteresis loop
clearvars Old = readtable('Old.xlsx'); lumenWT = (Old.WT_2283) ; pressureWT = (Old.Pressure); x = floor(length(lumenWT)/2);...

3 years ago | 0

Answered
Updating value with conditional for loop
There are a couple of errs in your code. Here is the corrected part of it. Balance=0; for k=1:length(ntrials) if pchoice ...

3 years ago | 0

| accepted

Answered
plotting in 3 for loop's
Two errors in spelling the data file names. And it is advised to use readmatrix() that is more efficient than csvread(). clc; c...

3 years ago | 0

Answered
Using unbalanced data with fitlme
Suggestion. If you are not using all columns of your data then it is reaonable, you had better clean up your data (only the colu...

3 years ago | 0

Answered
loop index 'i' is changed inside of a FOR loop
% See the below given answer: Or you had better combine two loops to make your simulation more efficient, e.g.: ... ...

3 years ago | 0

Answered
how to solv this issue?
Here is the corrected code: savefunc('Test', 'x.*sin(x)', 'off') function savefunc(file,fx, grd) fileNAME=file; f ...

3 years ago | 0

Answered
How to plot different graph in one figure?
You can try to use polar plot with polar(), e.g.: ... figure(1) polar(X,Y) xlabel('2Ex'),ylabel('2Ey'),t...

3 years ago | 0

Answered
may i get command
(1) k1 vs. K1 are two different variables. (2) ERRORs: * missing, x, y are not correct variable names, indices () of xy are m...

3 years ago | 0

Answered
How to save data in cells to csv in loop
Why to use writetable()

3 years ago | 0

Answered
MATLAB crashes after loading 4000x4000x4000 matrix
Maybe take ONE channel at a time. Then combine them and process.

3 years ago | 0

Answered
Problems with my 2D graph
Here is the corrected code: e_inf = 11.7 ; Wp1 = 1.0856e11; gamma1 = 2.3518e9 ; Wp2 = 3.4330...

3 years ago | 0

Answered
Not enough input arguments.
Here is the corrected code ('end' was missing and it looks like that it was not executed correctly with a necessary input data):...

3 years ago | 0

| accepted

Answered
How to find the corresponding variable equations of parameters for a system which has equations of parameters and variables? (looking for non-numeric outcome)
If I have understood your question correctly, you are trying to save the equations. If this is the case, then you should amend y...

3 years ago | 0

Answered
How to find the corresponding variable equations of parameters for a system which has equations of parameters and variables? (looking for non-numeric outcome)
There are several variables are not defined at all and thus, your set equations are not solviable as defined in your code, e.g.:...

3 years ago | 0

Answered
Modeling of the influence of electric vehicles on standard load profiles of Households
By assuming that you have the power consumption data of households and electric vehicles with some timestams and trying to prep...

3 years ago | 0

| accepted

Answered
Graph two curves in the same plane
To plot two curves are simple as follows: e_inf = 11.7 ; Wp1 = 1.0856e11; gamma1 = 2.3518e9 ; W...

3 years ago | 1

| accepted

Answered
fixed-bed adsorption column-modeling solving PDE
Here is an edited and corrected version of your code (smaller time step 'cause it is a stiff DE) that shows that the concentrati...

3 years ago | 0

Answered
how to identify grayscale image as an RGB image
You can convert a grayscale image into RGB but it wont have a color anyhow, eg: RGB = cat(3, gray_IMAGE, gray_IMAGE, gray_IMAGE...

3 years ago | 0

| accepted

Answered
Problems with the Y axis of my 2D graph
Take smaller step size for w, eg.: e_inf = 11.7 ; Wp = 1.0856e11; gamma = 2.3518e9 ; w1 = 1e11; ...

3 years ago | 1

| accepted

Answered
how to identify grayscale image as an RGB image
Grayscale image has one channel and RGB has three channels. How to distinguish them is to use size() fcn. D = imread(ImageFi...

3 years ago | 0

Answered
I get the error of "Array indices must be positive integers or logical values"
Make these corrections in your code's loop iteration: ... for i = 2:nx % Compute the x-component of the characteristi...

3 years ago | 0

| accepted

Answered
semilogx error, vectors must be same length
Plot them like this way then by removing the transpose operation: plot(freq, abs(Zexp01), '.')

3 years ago | 1

Answered
hi i am trying to solve this two equations (p,Q) TO GET THE VOLTAGE AND ANGLE (V,THETA)
Here is the corrected code: syms v2 theta y=[2.142-22.897i -2.142+24.973i -2.142+24.973i 2.142-22.897i]; p2=-2.142*v2*co...

3 years ago | 0

| accepted

Answered
I couldn't understand the problem in this code.
Here is the corrected code. There were a number of unreadable white spaces (due to incorrect copy and paste), i (mean to be imag...

3 years ago | 0

| accepted

Answered
error in import data
(1) Copy the files and paste them into your matlab directory Or (2) Use fullfile() fcn, e.g.: FILE = fullfile('C:\Users\', '*...

3 years ago | 0

Answered
Simulink - Tempreture,Humidity and wind speed sensor
There are a few data export options from DHT22. (1) Using arduino serial port reader window and copy & paste (quick & dirty wa...

3 years ago | 0

Answered
How will use return conditions in solve function
(1) You have employed the solve() fcn for a few times and no output variable was assigned. It is better to use this syntax: [SO...

3 years ago | 1

Answered
error in import data
Here is the corrected part of your code (supposedly all of your tif images are in your current directory of matlab): ... for k...

3 years ago | 0

Answered
second analytical solution of implicit equation
This is the same as the solution proposed by Star Strider: syms M r EQN = M*exp(-M^2/2)==(2.72498/r)^2*exp(1.5-2*(2.72498/r))...

3 years ago | 0

Load more