Answered
How to change a legend to a circle with a line crossing it?
X = [500,1000,2000,4000,8000,16000]; Y = [6.55,6.25,6.15,6.1,6.07,6.05]; ref = [6.048,6.048,6.048,6.048,6.048,6.048]; ...

8 years ago | 1

Answered
I'm trying to run this program through Optimtool but getting the errors - "Undefined function 'symsum' for input arguments of type double". Can somebody help me with this code?
>> N =[20:23] syms k y = symsum((N(1)-3).^2+(N(2).^(K)-3).^2 +(N(3).^(K)-3).^2,K,1,N(1)); N = 20 ...

8 years ago | 1

| accepted

Answered
how can i change position in the matrix?
a=[1 2 3 4; 5 6 7 8; 9 10 11 12; 13 14 15 16] expected_result=[1 2 3 4; 8 7 6 5; 9 10 11 12; 16 15 14 13] a...

8 years ago | 0

| accepted

Answered
Matrix assignment inequality problem
Are you sure you have error there ? I faced a problem even before . Total_Coord = [Xs Ys ones(size(Xs)) Xm Ym 2*ones(size(X...

8 years ago | 0

Answered
matlab 2017b on lenovo y720 cannot be open.
It’s better you contact The MathWorks support team by clicking the Contact Is button on the top right corner of this web page. V...

8 years ago | 0

Answered
How to make a forced exit from Matlab with returning a code?
exit %edited after sir Walter’s comment

8 years ago | 0

Answered
How to extract data (features) from multiple matrix and store in a separate single matrix?
Look into <https://www.mathworks.com/help/matlab/import_export/process-a-sequence-of-files.html *processing sequence of files*> ...

8 years ago | 0

| accepted

Answered
fplot gives me an error "function behaves unexpectedly on array inputs".
b = rand(1, 2000); d = (-500:1:1499); x=1:2000; y=cumsum( (b./d.^2)./(x-1./d)); plot(x,y);

8 years ago | 0

Answered
I am installing Simulink Support Package for Android Devices and getting the error "There was problem installing the support package"
It’s better to contact MathWorks support team by clicking the <https://www.mathworks.com/company/aboutus/contact_us.html?s_tid=g...

8 years ago | 0

Answered
why am i getting this error and what are the steps to correct it
ds=tabularTextDatastore('Ban_390_Feb.csv','TreatAsMissing','NA')

8 years ago | 0

| accepted

Answered
Hey guys please i need help with this. i am trying to have this function plot a graph of (a,r). The graph should be a curve but it gives me just a point. I don't know what i did wrong!
r = range_calculator % calling of the function function r = range_calculator g=9.9; a=0:0.05:pi/2; v=l...

8 years ago | 0

| accepted

Answered
スタンドアロンアプリケーションの処理結果を標準出力に出力する方法がわかりません
x1='1' x2='6' result=testadd(x1,x2) function y=testadd(x1,x2) if ischar(x1) x1 = str2num(x1); end ...

8 years ago | 1

Answered
DDE23 Function Error saying "The function has to be at the end. All the arguments after 'sol' have to be moved before the function"
function dYdt = ddefun(t,x,Z) % additional variable y1 = x(1); y2 = x(2); y3 = x(3); % Z(:,1) = [y1(t - tau_1);...

8 years ago | 0

| accepted

Answered
What is the difference between %f and %s ?
%s represents character vector(containing letters) and %f represents fixed point notation(containining numbers). In your case yo...

8 years ago | 5

Answered
Need help for loop keeps overwriting plots
numfiles = 5; mydata = cell(1, numfiles); for i = 1:5 myfilename = sprintf('file%d.xlsx',...

8 years ago | 0

Answered
How to get two lines and double y axis on plot?
figure(1) yyaxis left plot(tR1,PR1) ylabel('Pressure (Pa)') hold on yyaxis right ...

8 years ago | 0

| accepted

Answered
For loop Stop error
Price=1.8766 for i=0.2:0.005:0.3 Price1=blsprice(21,20,0.1,0.25,i) if Price1==Price disp(i) break e...

8 years ago | 0

Answered
Trouble reading a .csv document in matlab
Use readtable instead

8 years ago | 0

Answered
Output Array, how to assign values from a function
fibanotchy function [f] = fibanotchy f=zeros(100,2,'uint64'); format long g f(1)=1 f(2)=1 ...

8 years ago | 0

| accepted

Answered
What does "if 1 ..." means? When is the if condition applied? What does that "1" mean?
if 1 means nothing here Maybe if a==1 disp('yes') end

8 years ago | 0

Answered
Root of exponential function not complete
syms x eq1=exp(-0.5*x)-0.4/(1+0.5*x)==0; fplot(exp(-0.5*x)-0.4/(1+0.5*x)) %always compare the result with the gra...

8 years ago | 0

Answered
How to flip a Matlab tree plot upside down?
yticklabels([1:10]) %an example set ( gca, 'ydir', 'reverse' )

8 years ago | 0

| accepted

Answered
Hi guys. does anybody know why i got the following error?
double(your_variable)

8 years ago | 0

Answered
"plot" and "stairs" in the same figure with different axis
x=rand(1,10); y=1:10; ax = gca; % current axes ax1=plot(x,y) hold on ax2=stairs(x,y) ax1=gca; ax2 = axes...

8 years ago | 0

| accepted

Answered
Error calling 'int'. This call-site passes more inputs to this function than it can accept.
what happens when you do this : y = integral ( @(t) u,a,b )

8 years ago | 0

Answered
How to get line icons from legend?
lgd = legend({'legend 1','legend 2'}) lgd.NumColumns = 2;

8 years ago | 0

Answered
Error using plot. Vectors must be the same length.
plot(x1,u(1,1:numel(x1)),'*',x1,us1,'-'); plot(x2,u(2,1:numel(x2)),'*',x2,us2,'-'); plot(x3,u(3,1:numel(x3)),'*',x3,us...

8 years ago | 0

Answered
Scroll a graph in GUI Matlab
<https://in.mathworks.com/matlabcentral/answers/91380-how-do-i-implement-scroll-bars-to-scroll-through-my-huge-gui-in-matlab-7-6...

8 years ago | 0

Load more