Communication through MATLAB is always better than arguing.

Question

Using least squares to find the x intercept.

I have a set of data points which represent the IV characteristics of a diode. I'm confused on how to get the threshold voltage ...

23 jours ago | 1 answer | 0

Question

Symbolic differentiation with respect to first derivative

Is it possible to make a derivative of an equation with respective to the first derivative . Illustration: syms x(t) eq...

25 jours ago | 1 answer | 0

Answered

Error using fsurf (too many functions) but success using ezsurf

Just vectorize the function and use function handles. To learn the proper usage of the functions that get you into a dilemma is ...

Error using fsurf (too many functions) but success using ezsurf

Just vectorize the function and use function handles. To learn the proper usage of the functions that get you into a dilemma is ...

2 mois ago | 0

| accepted

Answered

Error: Unbalanced or unexpected parenthesis or bracket

I think name is variable, it's simply (there is no need for eval): x = name(:,1); y = name(:,2); z = name(:,3);

Error: Unbalanced or unexpected parenthesis or bracket

I think name is variable, it's simply (there is no need for eval): x = name(:,1); y = name(:,2); z = name(:,3);

2 mois ago | 0

| accepted

Question

How to read this file in MATLAB?

I am having trouble reading the datas.

2 mois ago | 2 answers | 0

Answered

Indexing a Matrix with a for loop

for ii = 1:numel(z) % don't name variables i or j (because they are interpreted as imaginary numbers by default)

Indexing a Matrix with a for loop

for ii = 1:numel(z) % don't name variables i or j (because they are interpreted as imaginary numbers by default)

3 mois ago | 1

| accepted

Answered

Delete element of an array on the basis of other arrays

U = T(Y>SETT)

Delete element of an array on the basis of other arrays

U = T(Y>SETT)

3 mois ago | 0

| accepted

Answered

How to enter this function

https://www.mathworks.com/help/matlab/learn_matlab/desktop.html

How to enter this function

https://www.mathworks.com/help/matlab/learn_matlab/desktop.html

4 mois ago | 0

Answered

Help on text and colours

https://in.mathworks.com/help/matlab/ref/matlab.graphics.chart.primitive.line-properties.html https://in.mathworks.com/help...

Help on text and colours

https://in.mathworks.com/help/matlab/ref/matlab.graphics.chart.primitive.line-properties.html https://in.mathworks.com/help...

4 mois ago | 0

Answered

How can I combine all the column vectors in to one column vector

Don’t name variables , if you would have all the vectors as cells it would have been much easier. X =[x1,x2...,xn] Xmean...

How can I combine all the column vectors in to one column vector

Don’t name variables , if you would have all the vectors as cells it would have been much easier. X =[x1,x2...,xn] Xmean...

4 mois ago | 0

| accepted

Answered

how to delete cells in a cell array, such that it has the same length as one of my other arrays

Y(1:numel(X))

how to delete cells in a cell array, such that it has the same length as one of my other arrays

Y(1:numel(X))

4 mois ago | 0

| accepted

Answered

Change value of states "active" to 1 and "rest" to -1

stats.state(ismember(stats.state,'rest'),:) = '-1'; stats.state(ismember(stats.state,'active'),:)= '1'

Change value of states "active" to 1 and "rest" to -1

stats.state(ismember(stats.state,'rest'),:) = '-1'; stats.state(ismember(stats.state,'active'),:)= '1'

4 mois ago | 0

| accepted

Answered

How to Create Vector Function File

I don’t have any suggestions on how to improve it for as for your confusion regarding the error message: In your first file E...

How to Create Vector Function File

I don’t have any suggestions on how to improve it for as for your confusion regarding the error message: In your first file E...

4 mois ago | 0

Answered

foor loop add function values to an empty vector

How to use for loop to store values MATLAB ? [Google search]

foor loop add function values to an empty vector

How to use for loop to store values MATLAB ? [Google search]

4 mois ago | 0

Answered

Index in position 1 exceeds array bounds (must not exceed 1)

clear all % you're probably shadowing the inbuilt function input()\fprintf() %or clear input fprintf

Index in position 1 exceeds array bounds (must not exceed 1)

clear all % you're probably shadowing the inbuilt function input()\fprintf() %or clear input fprintf

4 mois ago | 0

Answered

How to implement a formula involving several elements of the same vector?

https://in.mathworks.com/company/newsletters/articles/matrix-indexing-in-matlab.html - for better understanding peak_resolution...

How to implement a formula involving several elements of the same vector?

https://in.mathworks.com/company/newsletters/articles/matrix-indexing-in-matlab.html - for better understanding peak_resolution...

4 mois ago | 1

Answered

Symbolic Toolbox Integration Error

You probably have a variable named int, clear that workspace using: clear int %or clear all

Symbolic Toolbox Integration Error

You probably have a variable named int, clear that workspace using: clear int %or clear all

4 mois ago | 1

| accepted

Answered

How to get the index of a value in a table?

index = find(TABLE{:,:}==specific_value) %or [~,index] = ismember(specific_value,TABLE{:,:}) If you're dealing with decimals ...

How to get the index of a value in a table?

index = find(TABLE{:,:}==specific_value) %or [~,index] = ismember(specific_value,TABLE{:,:}) If you're dealing with decimals ...

4 mois ago | 0

| accepted

Answered

Count in a loop

N = 100; % no loops needed p_x= -1+(1+1)*rand(N,1); p_y= -1+(1+1)*rand(N,1); p = sqrt(p_x.^2 + p_y.^2); fprintf('N...

Count in a loop

N = 100; % no loops needed p_x= -1+(1+1)*rand(N,1); p_y= -1+(1+1)*rand(N,1); p = sqrt(p_x.^2 + p_y.^2); fprintf('N...

4 mois ago | 1

Answered

How to use cellstr() without losing whitespace character?

Wanted = num2cell(your_char_array,2)

How to use cellstr() without losing whitespace character?

Wanted = num2cell(your_char_array,2)

4 mois ago | 1

Answered

how to plot cell array

I don’t why you’re saying multidimensional cell array all I see in the picture is a cell array containing character array. ...

how to plot cell array

I don’t why you’re saying multidimensional cell array all I see in the picture is a cell array containing character array. ...

4 mois ago | 0

| accepted

Answered

Store values from a for loop into a matrix

RARmat = zeros(65, 3) for ii = 1:65 RARatio = AUC/RA; disp(RARatio) % RAR Matrix RARmat(ii, :) ...

Store values from a for loop into a matrix

RARmat = zeros(65, 3) for ii = 1:65 RARatio = AUC/RA; disp(RARatio) % RAR Matrix RARmat(ii, :) ...

4 mois ago | 0

| accepted

Answered

Creating a MatLab code to convert numerical grades into letter grades.

You should loop through mn and save the results as a cell array in a variable which is preallocated before loop using indexing. ...

Creating a MatLab code to convert numerical grades into letter grades.

You should loop through mn and save the results as a cell array in a variable which is preallocated before loop using indexing. ...

4 mois ago | 0

Answered

How can I deleate or replace with a 0 all the Nan, Inf anf -Inf values in a time series from the biggining to the end?

a(isinf(a)|isnan(a))=0 % replaces with zero

How can I deleate or replace with a 0 all the Nan, Inf anf -Inf values in a time series from the biggining to the end?

a(isinf(a)|isnan(a))=0 % replaces with zero

4 mois ago | 0

Answered

Showing error Matrix dimensions must agree

theta =0:2*pi:100; r=linspace(0,100,numel(theta)); % theta and r should have same length/ or either one be a scalar z=2*(r-4*...

Showing error Matrix dimensions must agree

theta =0:2*pi:100; r=linspace(0,100,numel(theta)); % theta and r should have same length/ or either one be a scalar z=2*(r-4*...

4 mois ago | 0

Answered

how to find how many elements are there in a cell of an array?

No_of_elements = cellfun(@numel, cells)

how to find how many elements are there in a cell of an array?

No_of_elements = cellfun(@numel, cells)

4 mois ago | 0

| accepted

Answered

Assign values of a result to an input variable.

That’s not a good idea, see https://in.mathworks.com/matlabcentral/answers/304528-tutorial-why-variables-should-not-be-named-dyn...

Assign values of a result to an input variable.

That’s not a good idea, see https://in.mathworks.com/matlabcentral/answers/304528-tutorial-why-variables-should-not-be-named-dyn...

4 mois ago | 0

| accepted

Answered

I keep getting a 'parse error' at '='

Change arctan() to *atan()* and y=0 to *y==0*. doc if

I keep getting a 'parse error' at '='

Change arctan() to *atan()* and y=0 to *y==0*. doc if

4 mois ago | 0

| accepted