Answered
Storing double output into a single cell array
zeros() to cell() and A{n,k} = selectedlocal

6 years ago | 1

| accepted

Answered
How to find the element of a number if that number were to be placed in an ordered list?
Between = [find(ismember(list1,fix(2.5))), find(ismember(list1,ceil(2.5)))]

6 years ago | 0

Answered
How to solve for T2? it is giving an error when I try solve
syms T2 TempCumene = vpasolve ((((281.4749/3600)*Cp_b)*(T2-414.95) == Q_b),T2) %temp for cumene outlet in K

6 years ago | 0

| accepted

Answered
How to create an integral function? Trying to solve Cp_b between 2 numbers
clear all %%Calculate Benzene Duty Q %From Perry's table 2-153 values for Benzene C1_b = 162940; %in J/kmol*K C2_...

6 years ago | 0

Answered
Help me pls I don't know matlab
<https://www.mathworks.com/matlabcentral/answers/297463-how-to-create-an-mxn-matrix-with-a-for-loop#accepted_answer_230016>

6 years ago | 0

Answered
Log scale x axis?
set(gca, 'XScale','log') % at the end To turn off the warning simply use dots before arithmetic operators .^ .* ./

6 years ago | 0

| accepted

Answered
Why is this so slow?
Instead of loop why not simply use *cumsum()* ?

6 years ago | 0

| accepted

Answered
How to store " first_element " values?
A = [ 1 1 1 1 2 3 4 4 4 ; 1 2 3 4 5 5 5 5 5]; [first_element,end_element] = deal(zeros(size(A,1),1)); % preallocate for k = 1:...

6 years ago | 1

| accepted

Answered
Why can't a variable holding an equation be used to make a function handle?
I would simply use matlabFunction() as sir Walter says but maybe you have the follwing in mind: func = @(x) eqn(x)

6 years ago | 0

| accepted

Answered
My function will not work to calculate the 'Cumene inlet temperature' section
func= (Mc*Cp(T))*(T-T1) - (Qb)

6 years ago | 0

| accepted

Answered
join cell arrays together
cellstr(string(x)+string(y))

6 years ago | 0

| accepted

Answered
Undefined function 'cos' for input arguments of type 'tf'.
syms s % forgot to add this part theta1=((3/8)*pi)+((1/8)*pi*cos(((pi/.3)*s)+(pi/16))); theta1s=laplace(theta1);

6 years ago | 1

Answered
Why is this if statement does not work?
Because they are float numbers, reading the below links might help you better about floating numbers: https://www.mathworks.com...

6 years ago | 0

| accepted

Answered
Select values from cell array with condition using cellfun
A(cellfun(@(x) all(all(x>-6 & x<6)), A)) % for versions 2018b>= usage of all() would be all(...,[1,2])

6 years ago | 0

Answered
int and subs function
Run: which subs -all which error -all In command window and paste the output here. It looks like you have a script na...

6 years ago | 0

| accepted

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

6 years ago | 1 answer | 0

1

answer

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

6 years ago | 1 answer | 0

1

answer

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

6 years 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);

6 years ago | 0

| accepted

Question


How to read this file in MATLAB?
I am having trouble reading the datas.

6 years ago | 2 answers | 0

2

answers

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)

6 years ago | 1

| accepted

Answered
Delete element of an array on the basis of other arrays
U = T(Y>SETT)

6 years ago | 0

| accepted

Answered
How to enter this function
https://www.mathworks.com/help/matlab/learn_matlab/desktop.html

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

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

7 years 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'

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

7 years ago | 0

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

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

7 years ago | 1

Load more