Beantwortet
f=@(x) function handle with range + conv
Hi Aqeel, Piecewise function is very helpful in writing conditional functions. Check it out: https://in.mathworks.com/help/sym...

fast 6 Jahre vor | 0

| akzeptiert

Beantwortet
Displaying chracters with the given input number
Hi Ahmet, You can try below code for your requirement. clear all; clc; size = double(input('Enter Size: ')); x(1:size) = '.'...

fast 6 Jahre vor | 1

Beantwortet
Error when using "pspectrum" with "spectrogram" option.
Hello Ana, There is a different between data sets normal and SmallY. In dataset SmallY, values are extremly small. i.e. max v...

fast 6 Jahre vor | 1

| akzeptiert

Beantwortet
Add a variable in eventdata
Hi, I am assuming your eventdata is a table(because you want to keep the variable names). Let's say event data has 2 columns on...

fast 6 Jahre vor | 0

| akzeptiert

Beantwortet
Running 2 counters in 1 for loop simultaneously
Hi, you just need to define j outside the loop. And then use it with i as index. j = 0:12:12; for i= 1:2 % Write your co...

fast 6 Jahre vor | 0

Beantwortet
While Loop Errors with Opperators
Hi Paul, As Walter has mentioned in his answer, inputdig returns data in cells and not numeric values. And therefor cell values...

fast 6 Jahre vor | 0

Beantwortet
Encoder and Decoder Problem
Hi Neshant, your code is almost correct except a couple of mistakes. In read-write script you need to provide encripted messa...

fast 6 Jahre vor | 0

| akzeptiert

Beantwortet
Ordenar vector en función de otro vector
Hi, You can save both arrays a and b in another 2 dimentional array and then short this 2D array according to your array a then...

fast 6 Jahre vor | 0

Beantwortet
Plotting damped sine travelling wave equation in Matlab
Your y1 seems to be function of two variables x and t so yes, you will need to use plot3 at it will plot y1 against two variable...

fast 6 Jahre vor | 0

Beantwortet
why the size function for matrix count less?
Hi, You are getting error, because inside loop, you are deleting rows from the matrix so it's not of the same size as you compu...

fast 6 Jahre vor | 0

| akzeptiert

Beantwortet
Indexing between values of a 2D vector?
Hi Reinder, Yes, you can directly use conditions as index. A = 100*rand(1,100); X = A(A>5); Here, X will contain all the val...

fast 6 Jahre vor | 0

Beantwortet
wavelet coherence index is incorrect
Hi Ben, wcoherence(x,y,seconds(fs)); This line has error. I am assuming fs is your samping rate. and then you are directly con...

fast 6 Jahre vor | 0

| akzeptiert

Beantwortet
how can ı find min value using for loop in matrice
You really don't need to use for loop in matlab to find min term. If you have a matrix A, then min(A) will give you minimum val...

fast 6 Jahre vor | 0

Beantwortet
Pair sums (how to avoid duplication?)
Seems like you have already found the numbers which add up to the required number. Now Save these numbers in an array with 2 co...

fast 6 Jahre vor | 0

Beantwortet
Plotting a function which has two dependent variables and shows it with colour intensity
Hi Wei, Try plot3 or surf function to plot.

fast 6 Jahre vor | 0

Beantwortet
How to calculate derivative and then apply limit in matlab
Hi Ravikiran, I have used a for loop. syms f(x) x; f(x) = x/(exp(x)-1); g = f; limitg = sym(zeros(15, 1)); for n = 1:15 ...

fast 6 Jahre vor | 0

Beantwortet
Error message with ttest function & others statistics tests
Hello SK, I just tried your code and didn't face any problems. load examgrades; x = grades(:,1); y = grades(:,2); h = varte...

fast 6 Jahre vor | 0

Beantwortet
Change a variable's value wherever exists
Hello Vasilis, You need to use subs function to calculate value of symbolic function. subs(x) as last line will give you value...

fast 6 Jahre vor | 1

| akzeptiert

Beantwortet
Find Index of Table data satisfying some condition
Hello Nikita, You can use conditions as index of the table to do this. For example if you have a table Table1 and the condition...

fast 6 Jahre vor | 0

Beantwortet
Magnitude and direction from north and east components
Hi Mithun, You can think of North and East as your X and Y. As you have taken north as reference so use below formulas to calcu...

fast 6 Jahre vor | 1

| akzeptiert

Beantwortet
help required with scripts file
Hello Aaron, Change your code according to below lines, it should work. if (b >= 0) && (b <=90) %put your code here els...

fast 6 Jahre vor | 0

Beantwortet
why should be the range of r should be the same range of d?
Hello Shahd, I run your code and see error "Vectors must be the same length" because of line plot(d,PL,'LineWidth',1.5). In yo...

fast 6 Jahre vor | 0

Beantwortet
How to check a row in a matrix against every other row in a different matrix.
Hello Stefen, Here is a piece of code. There is a list of non overlapping circles and a list of circles to be tested against no...

fast 6 Jahre vor | 1

| akzeptiert

Beantwortet
my code is not running
Hello Edward, Looking at your code, seems like you are trying to solve an euqation using Newton's Mathod. I see many errors in ...

fast 6 Jahre vor | 0

| akzeptiert

Beantwortet
Using Table in Matlab R2015a
Hello Leo, You are getting mentioned errors because these functions were introduced in later releases of MATLAB. head -> R2016...

fast 6 Jahre vor | 1

| akzeptiert

Beantwortet
writting equation with summation
Hello Hassan, You can use solve function of matlab. Here is an example: syms u v eqns = [2*u + v == 0, u - v == 1]; S = solv...

fast 6 Jahre vor | 0