Help on text and colours
https://in.mathworks.com/help/matlab/ref/matlab.graphics.chart.primitive.line-properties.html https://in.mathworks.com/help...

5 maanden ago | 0

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...

5 maanden ago | 0

| accepted

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'

5 maanden ago | 0

| accepted

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...

5 maanden ago | 0

foor loop add function values to an empty vector
How to use for loop to store values MATLAB ? [Google search]

5 maanden ago | 0

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

5 maanden ago | 0

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...

5 maanden ago | 1

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

5 maanden ago | 1

| accepted

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 ...

5 maanden ago | 0

| accepted

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...

5 maanden ago | 1

How to use cellstr() without losing whitespace character?
Wanted = num2cell(your_char_array,2)

5 maanden ago | 1

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. ...

5 maanden ago | 0

| accepted

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, :) ...

5 maanden ago | 0

| accepted

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. ...

5 maanden ago | 0

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*...

5 maanden ago | 0

how to find how many elements are there in a cell of an array?
No_of_elements = cellfun(@numel, cells)

5 maanden ago | 0

| accepted

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...

5 maanden ago | 0

| accepted

I keep getting a 'parse error' at '='
Change arctan() to *atan()* and y=0 to *y==0*. doc if

5 maanden ago | 0

| accepted

How to replace last row of matrix with a vector?
Tutorial

5 maanden ago | 0

How do I calculate the average of TStep4 and TSTep2?
doc mean

5 maanden ago | 0

Create a 34 element column vector, PiVec, where every element is the irrational number pi
Use those commands and add/multiply with which number you want the elements to be. doc ones doc zeros

5 maanden ago | 0

making a random unique vector from 0 to 9999
doc randperm

5 maanden ago | 1

how to convert answer to one single number
f = @(x) 2.048*exp(-((x-5.056)/0.2349).^2) +... 1.089*exp(-((x-4.887)/0.4006).^2) +... 0.4116*exp(-((x-9.103)/5.731).^...

5 maanden ago | 0

| accepted

How to store the results from a for loop into a matrix?
F = 2; x = .1:.05:1.9; Reactions = cell(numel(x),1); b = [0 F 0 F/2 0 0 0 0 0 0]'; % there's no point in defining it over an...

5 maanden ago | 0

Apply function on array
Probably you're looking for cumsum() doc cumsum

5 maanden ago | 0

find index of a element present in matrix
[~,Z]=max(A,[],2)

5 maanden ago | 0

| accepted

Array indices must be positive integers or logical values
beta Operator missing here ( M Note: Don’t name a variable beta because there is an inbuilt function named *beta()*. Prealloc...

5 maanden ago | 0