Answered
[DISCONTINUED] MATLAB Answers Wish-list #4 (and bug reports)
Recently I encountered few OPs editing the question text. It really isn't good because all the efforts made by the answerers bec...

7 years ago | 0

Answered
Import multiple CSV files then use a loop to find the peaks in each
xx{i}=sprintf('x600_i{:,1}',i) %where i is from 0 - 10

7 years ago | 0

Answered
How can I write a program for cubic spline?
Read about interp1()

7 years ago | 0

| accepted

Answered
Why is the no evaluate selection button?
ctr+A %(->cmd in Mac) ctr+enter

7 years ago | 0

Answered
directory created with num2str
Try using sprintf()

7 years ago | 0

Answered
How can I create a for loop to count letters in a sequence?
No loops needed: a = 'b c d b c d e c c d b c b e e' no_of_bs=sum(ismember(a,'b')) no_of_cs=sum(ismember(a,'c'))

7 years ago | 0

| accepted

Answered
can someone help me solve this question ?
Use function handle

7 years ago | 0

Answered
How come I can't plot this?
In addition to sir Image Analyst's explanation : degree = 140:0.001:220; thetad = 4; f = atan(degree*(pi/180)); s = 90-f; r...

7 years ago | 0

Answered
How can I correctly store output from this For loop into a new variable?
a=[1:5:150] ctr=1; for a=1:5:150 if rem(a,2)==0 i(ctr)= 4*a else i(ctr)= a.^3 ...

7 years ago | 1

Answered
how to pass a first order line from part of the plot that has the most of the data?
y1(y1==3 | y1==4)=[] %removes 3 and 4 y2(y2==3 | y2==4)=[]

7 years ago | 0

Answered
Invalid expression. Check for missing or extra characters.
GHGS = (zx(:,[151+[-1 0 1]])-zx(:,[131+[-1 0 1]]))/20; GHGN = (zx(:,[171+[-1 0 1]])-zx(:,[151+[-1 0 1]]))/20; for i=1:...

7 years ago | 1

| accepted

Answered
Multivariable functions involving trig and hyperbolics
syms x y ezsurf(sin(x)*sinh(y)-1) %3d %or ezplot(sin(x)*sinh(y)-1) %2d

7 years ago | 0

Answered
How to split array vector into sub vectors based on the max value of the original array?
This would give the combination of splits that can be expected: a = [ 120.9, 50.5, 20.3, 80.7, 12 , 70, 100, 15.4, 40, 10, 130....

7 years ago | 0

Answered
How to store a series of scalars from a loop of solver in a vector? Save outputs from solver in a vector
But solving in aloop is inefficient: s(l)=vpasolve(eqn,x, [0 1000000]); %change to this s(l) = round(s(l) * 1e4) / 1e4; %cha...

7 years ago | 1

Answered
Exclude first 2 rows of .dat file when using load
convert your .dat to .txt and then follow your method

7 years ago | 0

Answered
how to convert hourly data to daily data by taking average of hourly data?
https://www.mathworks.com/matlabcentral/answers/371225-calculate-daily-monthly-annual-averages-from-hourly-data?s_tid=answers_rc...

7 years ago | 0

Answered
Does unwrap function works for 2D data as well....?
https://www.mathworks.com/matlabcentral/fileexchange/65565-fast-2d-phase-unwrapping

7 years ago | 0

Answered
How to apply IFFT in Matlab?
ifft()(link)

7 years ago | 0

Answered
hi, im tring to make a new vector from some exics one.
grades= [87 81 87 80 94 87 62]; scholarship=[]; ctr=1; for i=1:length(grades) if (grades(i)>85) scholarship(c...

7 years ago | 0

Answered
How can I modify function assignment of plot?
Use linspace as below: x = linspace(-10,15,1000); % divided into 1000 parts y = linspace(-10,10,1000); % divided into 1000 p...

7 years ago | 0

| accepted

Answered
Create an annotation into a plot
str = ['PC selectec =' num2str(keigenvalue)]; %if it doesn't work provide all your values

7 years ago | 0

| accepted

Answered
For my projectile question, why is my height coming out as a negative value?
>> h+(xmax.*tan(ar)) ans = 1.2766e+01 %this is smaller >> (g.*xmax.^2)./(2.*(vs.^2)) ans = 4.4488e+01 %t...

7 years ago | 0

| accepted

Answered
How to find the maximum value among values less than a certain value?
idx = matrix < 100; %100 is your certain value %Numbers greater than 100 idx = matrix > 100;

7 years ago | 0

Answered
Create a vector with a user inputted increment.
minimum=input('minimum= ') maximum=input('maximum= ') increment=input('increment= ') vector=minimum:increment:maximum;

7 years ago | 0

| accepted

Answered
How can I fit a curve to x, y points and obtain the regression?
Read interp1 and use appropriate method you want x = linspace(0,4*pi,50); y = sin(x); xx = linspace(x(1),x(end),1000); yy = ...

7 years ago | 1

Answered
Fourier Transformation HELP PLEASE
clear all; close all; clc; incrm = 0.01; t = incrm:incrm:10; xt = cos(2*t); plot(t,xt,'LineWidth',3) hold on grid on xlab...

7 years ago | 0

| accepted

Answered
Why did the matrix symbol become 10x10?
symbol= zeros(length(mat)-1,length(mat),2); %changed this line

7 years ago | 1

| accepted

Answered
How to extract one dimention of an matrix, keeping the two other dimention constant?
matrix(80:100,50:55,4:5) %extracts 4 and 5 th page same like you do for the first two dimensions

7 years ago | 0

| accepted

Answered
How to sort new vector of the result of sum smallest probability?
sort(A,'descend') %at the end

7 years ago | 1

| accepted

Answered
Matlab help crashes. I can use matlab normally otherwise, even after the help chash.
https://www.mathworks.com/matlabcentral/answers/423210-why-is-matlab-help-browser-showing-unformatted-text-on-linux-r2018b#answe...

7 years ago | 0

| accepted

Load more