Answered
how to differentiate a function and then evaluate at a predefined variable?
syms x y f=x*y A=diff(f,y) subs(A,y,6)

8 years ago | 0

| accepted

Answered
How can I edit my error
<https://www.mathworks.com/matlabcentral/answers/100816-how-do-i-locate-the-crash-dump-files-generated-by-matlab#answer_110165>

8 years ago | 0

Answered
Create a matrix from a csv
Try readtable() T=readtable('Testfile_1.csv'); T(:,end-2:end) %reads last three columns

8 years ago | 0

Answered
How to do division on matrices ?
inv([a b; c d])*[k;l] <https://www.mathworks.com/help/matlab/ref/mldivide.html>

8 years ago | 1

| accepted

Answered
How to reduce the space between Yticks?
ylim([0 2]) yticks([0 2]) or set(gca,'YTick',0:0.5:2)

8 years ago | 0

| accepted

Answered
How to specify color shade in bar graph?
load('Kennfeld1.mat'); bar3(Kennfeld1); colormap(summer)

8 years ago | 1

| accepted

Answered
Two for loops taking very long to get the complete solutions
*EDITED* syms k a x f = sin(k+a) - x*cos(x); solution=solve(f,a) x=0:0.1:pi; k=x; solutions=vpa(subs(solut...

8 years ago | 1

| accepted

Answered
How to plot multiple data sets in the same graph for a common range?
x_Exp = [1.1;1.083;1.08;1.073;1.015;0.993;0.987;0.978;0.974;0.946;0.941;0.897]; y_Exp = [5.504201829;5.639866885;5....

8 years ago | 1

Answered
iam having this issue how can is resolve this Undefined function or variable 'M'. Error in Untitled (line 39) MW = perform_curvelet_transform(M, options);
In the above code you didn’t mention the variable M which causes the error.

8 years ago | 0

Answered
how to interpolate?
Use interp1()

8 years ago | 1

Answered
How to scale logarithmic in surface plot?
load('Kennfeld1.mat'); h=gca surf(Kennfeld1); xlabel ('Achsemoment (N)');ylabel ('Diffrenz Drehzahl (rpm)'); zlabe...

8 years ago | 3

| accepted

Answered
How to remove column from matlab table?
Try: TJNew= removevars(TJClean,{'Prob2'}); If it doesn’t work still tell which version of matlab you are using I...

8 years ago | 8

| accepted

Answered
In a sorted vector ,how do I compare first element to other elements and then find if there are any duplicates , if yes take their indexes and replace it with 0
A = [ 1, 1, 2, 3, 4]; [~,c,~]=(unique(A,'first')); idx=(ismember((1:numel(A)),c)); A(~idx)=0 c is the index ...

8 years ago | 1

Answered
why am I getting this error ? "Index exceeds array bounds."
Becuase size of t ,y and z is one but you are trying to accessing the elements from 1 to 10 via loop!

8 years ago | 0

| accepted

Answered
How to export a number of strings in a csv file
c=char({'hi','there'}) dlmwrite('c.csv',c,'delimiter','') dlmwrite just writes each cell with a new line

8 years ago | 2

| accepted

Answered
Help with an error occurring
whos displayWaveformLabels %for variable checking which displayWaveformLabels %for function checking In command w...

8 years ago | 0

Answered
how to multiply integers
for i=1:10 k=i*222; fprintf('value is %.2f\n',k) %or sprintf('value is %.2f',k) end

8 years ago | 0

Answered
How can I display ans in a generated PDF?
Use publish() <https://www.mathworks.com/matlabcentral/answers/418108-how-to-publish-matlab-outout-and-code-in-pdf#answ...

8 years ago | 0

| accepted

Answered
How to have multiple lines on a graph for different values of a parameter.
*EDITED* %Clear command window and workspace clear close all clc % Fitzhugh-Nagoma model parameters e=0....

8 years ago | 0

| accepted

Answered
how to read cell in mat file ?
cell2mat(ex)

8 years ago | 0

| accepted

Answered
Can someone help me with this error. Error in TSDGroup_18 (line 42) te=x(1);
x=1:7 val = TSDGroup_18(x) function val = TSDGroup_18(x) %function calling %UNKNOWN VALUES a function for ...

8 years ago | 0

| accepted

Answered
Transparency in Matlab R2016b
<https://www.mathworks.com/matlabcentral/answers/19907-transparent-background-for-figures#answer_27904>

8 years ago | 0

Answered
i have this , and is showing me the vector must be the same lenght plot
plot(x,lambda(1:numel(x)),'o')

8 years ago | 0

| accepted

Answered
Does off Internet Matlab activation support multiple versions.
Note: if your using a student license it’s only possible to use only one at a time

8 years ago | 0

| accepted

Answered
how to solve Function definitions are not permitted in this context
ans2() %function calling function ans2() rads = randi([1, 20], 1, 5); areas = rads .^ 2 * pi; for i...

8 years ago | 0

Answered
I have got this error with GUI standalone. It can only read the .xls file in the C drive.
<https://www.mathworks.com/matlabcentral/answers/353198-why-can-t-matlab-access-a-file-that-is-in-its-current-directory#answer_2...

8 years ago | 0

Answered
how to resolve the error ocurred in using "guide"?
<https://uk.mathworks.com/matlabcentral/answers/236604-java-update-and-guide-command#answer_191129>

8 years ago | 0

Answered
Input at time t of a loop
for i = 1:50:n %step 50

8 years ago | 0

Answered
creating new matrix based on column value
have a look at <https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=2ahUKEwjxkIXC4L3eAhUFso8KHV6T...

8 years ago | 0

Answered
Undefine variable 't'
R = 8314.510; % J/kmol.K Cp = 1200; % J/kg.K h_F = 4e7; % J/kg Po = 2545284; % Pa To = 753; % K Fo = Po/(17*R*T...

8 years ago | 0

| accepted

Load more