Answered
Matrix Kirchhoff's current rule problem
current = a ./ b |*Use element wise operation*|

8 years ago | 0

| accepted

Answered
Index exceeds array bounds
|*EDITED*| syms y Rho = 997; g = 9.8; Le =115.25 ; Ae =214.4 ; Ac =51.5 ; Li ...

8 years ago | 0

| accepted

Answered
how can I get my results in a csv file rather than a figure
|*EDITED*| dlmwrite('Trial.csv',T1,'Delimiter','\n') %exports T1 values as csv file |*Likewise you can export all t...

8 years ago | 1

| accepted

Answered
How to remove/replace NaN from multiple variables in workspace?
|*An example:*| >> A = [NaN; NaN; NaN; 1; 2; 3] A(isnan(A))=0 A = NaN NaN NaN 1 ...

8 years ago | 0

Answered
How to avoid or delete Nan values in addtion?
A=[2 NaN ; 3 NaN] %Edited B=[NaN 4 ; NaN 5] A(isnan(A))=0 B(isnan(B))=0 C=[A;B]'

8 years ago | 0

| accepted

Answered
Why doesn't importdata recognize space or tab as delimiters?
fid =fopen('myfile.txt','r') file = textscan(fid,'%f %f %f %f %f %f %f %f %f %f %f \n','Delimiter','','collectoutput',1); ...

8 years ago | 0

| accepted

Answered
how to find the minimum value of the wholw matrix?
A=[52 36 85 24 96;25 25 36 74 65 ; 82 44 55 456 1326 ; 645 684 54 51 40; 54 35 354 45 52] min...

8 years ago | 4

| accepted

Answered
How to sort out negative and positive values of a vector?
A=[ -3 -2 -1 0 1 2 3 ] Negative_nos = sort(A(A<0)) Positive_nos = sort(A(A>=0)) |*Will do the trick*|

8 years ago | 1

| accepted

Answered
I want to solve this equation. please help me
syms a b c d eq1 = 3.8 == a*(1 - exp(b*8.2)) + c*(exp(d*8.1) - 1); eq2 = 27.9 == a*(1 - exp(b*63)) + c*(exp(d*35...

8 years ago | 1

Answered
Symbolic manipulation and integration / not enough input argument
X0 = [90*pi/180 ; 1.2]; [tout,yout] = ode45(@Pendulum, [0 5], X0) plot(tout,yout(:,1),'r' ) hold on ...

8 years ago | 0

Answered
No line when trying to plot Matlab
syms x y = 1 + exp(x).*sin(5*x); dy = diff(y) ddy = diff(dy) gy = ddy - 2*dy + 26*y; fplot(...

8 years ago | 0

Answered
Remove element from array but want to keep in indices
A(2,:)=0 Did it work?

8 years ago | 0

Answered
Inner Matrix Dimension must agree
K5 = 0.09.*(L2/0.115).* (B.^4/(1-B.^4)); |*Remark: Make sure the sizes of L2 and B are the same*|

8 years ago | 0

Answered
Could everyone help me with this plotting problem?
Then represent them as subplots.

8 years ago | 1

| accepted

Answered
Keep getting matrix dimensions must agree for code
>> size(A4e+F4SHARPe) ans = 1 11025 >> size(F4SHARPq+D4q) ans = ...

8 years ago | 0

Answered
what does "put a vector of ones in the 2nd row and a vector of ones in the 5th column" mean when I have a 10x10 matrix of zeros?
>> A=zeros(10,10) A(2,:)=1 A(:,5)=1 A = Columns 1 through 8 0 0 0 0 0 0 ...

8 years ago | 1

| accepted

Answered
Keep getting error message "Index exceeds array bounds."
>> COMMUNITY What is your age?50 What is your weight in pounds?100 hrate = '1011000' 88 ...

8 years ago | 0

| accepted

Answered
Adding Legends to multiple lines in an x-y plot of data imported from Excel sheets in MATLAB ?
[~,sheets] = xlsfinfo('C:\Users\Bilal Ahmad\Desktop\Complete Simulations\Microphone Array 3_AllSources\AllSrc_MicArray3.xlsx')...

8 years ago | 0

Answered
How to print a certain amount of elements in an array?
An example: id = Info(:,2) > 3 students_gpas = Info(id,:) %students whose GPA is more than 3

8 years ago | 1

| accepted

Answered
Adding Legends to multiple lines in an x-y plot of data imported from Excel sheets in MATLAB ?
Legend=cell(16,1) for iter=1:16 Legend{iter}=strcat('sheet', num2str(iter)); end ...

8 years ago | 0

| accepted

Answered
defining functions that are equal to each other
|Edited| a=1; b=2; Eqn=a*y(t)==b*u(t)

8 years ago | 0

Answered
Defining variables inside of a function
syms y(t) y(t) = cos(2*t) t = 0:0.1:2; y=double(subs(y)) |*OR*| y =@(t) cos(2*t) %Not sure which one you wa...

8 years ago | 0

| accepted

Answered
How to find the 3 roots of the equation 2sinx=x?
syms x fplot(2*sin(x)-x) grid on vpasolve(2*sin(x)==x,x,2) vpasolve(2*sin(x)==x,x,-2) vpasolve(2*sin(x)==x,x) ...

8 years ago | 0

| accepted

Answered
Conversion to double from sym is not possible ?
t=-1:0.001:1; a=1; plot(t,a*ones(1,numel(t))) syms t f=t lap=laplace(f) %figure() o...

8 years ago | 0

Answered
face error First input argument must be a function handle in symbolic integral
Try : f=LT.*L int(f,z,0,l) |*Use int because variables are symbolic.*|

8 years ago | 0

| accepted

Answered
How to "concatenate" an array by merging the elements?
x = [1,0,0 ; 2,0,0 ; 3,0,0] x1 = x(1,:) x2 = x(2,:) x3 = x(3,:) x1=str2num(strcat(num2str(x1(1)),num2str(x1(2)),n...

8 years ago | 0

Answered
Why is my function giving me the wrong output ?
syms x y = x.*exp(-x+1)-sin(2*x)+x-(7/2) fplot(y) grid on x=vpasolve(y==0,x) |*Note: Make sure you have symboli...

8 years ago | 0

Answered
Calculating max, min, and saddle points
syms x y a = ((y.*x^3)+(x.*y^3)-(1.69.*x.*y)); eqA_partial_diff_x = diff(a,x) eqA_partial_diff_y = diff...

8 years ago | 1

| accepted

Answered
Legend always wrong in MATLAB R2016b
|Read the below link:| <https://www.mathworks.com/matlabcentral/answers/332155-problems-with-legend-in-r2016b>

8 years ago | 0

Answered
Trying to find the roots of polynomial with a script file
y=[1 -12 -9 392 -372 -2160] roots(y) *Note: Always use coefficients to find roots in Matlab.*

8 years ago | 0

Load more