Deepak Gupta
Followers: 0 Following: 0
Feeds
답변 있음
How to test custom class with unit test class
Hi, Methods keyword is used to define a wrapper for all the method which need to run during class setup or method setup or test...
How to test custom class with unit test class
Hi, Methods keyword is used to define a wrapper for all the method which need to run during class setup or method setup or test...
3개월 전 | 0
답변 있음
string joining without inverted commas and variable pass in string.
That's how strings will be displayed if you directly type variable holding the string in command window. If you just want to dis...
string joining without inverted commas and variable pass in string.
That's how strings will be displayed if you directly type variable holding the string in command window. If you just want to dis...
6개월 전 | 1
| 수락됨
답변 있음
what is the equivalent script to TWISTER('state')
Yes, you are right. I can't see what twister does in my version of matlab. But Twister is basically a random number generator. ...
what is the equivalent script to TWISTER('state')
Yes, you are right. I can't see what twister does in my version of matlab. But Twister is basically a random number generator. ...
대략 3년 전 | 0
답변 있음
I'm trying to have a function receive input in 2 different ways.
You can use varargin as the input to your function definition i.e. function[output]= IPF(varargin) if(nargin ==0) prompt1...
I'm trying to have a function receive input in 2 different ways.
You can use varargin as the input to your function definition i.e. function[output]= IPF(varargin) if(nargin ==0) prompt1...
대략 3년 전 | 1
| 수락됨
답변 있음
how to extract some elements in the array using matlab?
Hello Mr. Khan, Slice_z = Slice_z(Slice_z >= 0 & Slice_Z<=3) Should work. Cheers, Deepak
how to extract some elements in the array using matlab?
Hello Mr. Khan, Slice_z = Slice_z(Slice_z >= 0 & Slice_Z<=3) Should work. Cheers, Deepak
거의 4년 전 | 0
| 수락됨
답변 있음
How to create a graph time vs value n
Hi Emilia, Placed of toc in the function will just display the elapsed time there instead you need to return the elapsed time f...
How to create a graph time vs value n
Hi Emilia, Placed of toc in the function will just display the elapsed time there instead you need to return the elapsed time f...
거의 4년 전 | 0
답변 있음
Is there any missing in my simulation via lsim?
Hi Volkan, I am not being sarcastice, just a suggetion, i think you should go through the basics of state space modeling. for b...
Is there any missing in my simulation via lsim?
Hi Volkan, I am not being sarcastice, just a suggetion, i think you should go through the basics of state space modeling. for b...
거의 4년 전 | 1
| 수락됨
답변 있음
How to fill table column value with string during creation?
Hi Sara, From what i understand you want to create table, and want to populate first column values for all rows. Here is a pi...
How to fill table column value with string during creation?
Hi Sara, From what i understand you want to create table, and want to populate first column values for all rows. Here is a pi...
거의 4년 전 | 0
| 수락됨
답변 있음
How to retrieve the row value using the column value and row-column intercept value when using 2D look up tables?
I think this might work. x_found = t.x((t.y==39)&(t.z==3.2))
How to retrieve the row value using the column value and row-column intercept value when using 2D look up tables?
I think this might work. x_found = t.x((t.y==39)&(t.z==3.2))
대략 4년 전 | 0
답변 있음
Single sided spectrum of vector y obtained using fft
You can refer FFT Documentation. There are multiple examples to obtain this. https://in.mathworks.com/help/matlab/ref/fft.html
Single sided spectrum of vector y obtained using fft
You can refer FFT Documentation. There are multiple examples to obtain this. https://in.mathworks.com/help/matlab/ref/fft.html
대략 4년 전 | 0
질문
Creating a new object from existing object but after excluding one specific property.
Hi All, I want to copy an object from exsiting object but don't want to copy all the properties, more specifically one perticul...
4년 초과 전 | 답변 수: 1 | 0
1
답변답변 있음
doubt in the specific lines
':' means 'All'. For example in your code you have created a mask of size 4*20 and initialized it with zeros. i.e. mask = zer...
doubt in the specific lines
':' means 'All'. For example in your code you have created a mask of size 4*20 and initialized it with zeros. i.e. mask = zer...
4년 초과 전 | 0
| 수락됨
답변 있음
Moving Average filter window size automatically up-scaled by 1
Hi Varun, In filterDesigner, you have mentioned filter order as 15 and filter taps or length of filter is order+1. The N genera...
Moving Average filter window size automatically up-scaled by 1
Hi Varun, In filterDesigner, you have mentioned filter order as 15 and filter taps or length of filter is order+1. The N genera...
4년 초과 전 | 1
| 수락됨
답변 있음
Difference 'bandpower' with time-dependent signal or 'bandpower' with PSD
Hi Inti, Bandpower function by default uses hamming window and in the psd calculation you have used rectangular window which is...
Difference 'bandpower' with time-dependent signal or 'bandpower' with PSD
Hi Inti, Bandpower function by default uses hamming window and in the psd calculation you have used rectangular window which is...
4년 초과 전 | 1
| 수락됨
답변 있음
Divide by 2 every second double column without losing structure of cell array
Below program should work for your problem: test = {[10, 15], [20, 30]}; for index = 1: length(test) test{index}(:, 2) ...
Divide by 2 every second double column without losing structure of cell array
Below program should work for your problem: test = {[10, 15], [20, 30]}; for index = 1: length(test) test{index}(:, 2) ...
4년 초과 전 | 1
답변 있음
How to replace a string in a table
I am providing a solution, i suspect it's not the ideal solution but it should work. test = table(); test.month{1} = 'JANUARY'...
How to replace a string in a table
I am providing a solution, i suspect it's not the ideal solution but it should work. test = table(); test.month{1} = 'JANUARY'...
4년 초과 전 | 0
답변 있음
How to plot magnitude and phase spectrum of the function
Star Strider has given the answer but just FYI: X = tf([1 0], [1 -2 1]); bode(X), grid This will work too. You can know more...
How to plot magnitude and phase spectrum of the function
Star Strider has given the answer but just FYI: X = tf([1 0], [1 -2 1]); bode(X), grid This will work too. You can know more...
4년 초과 전 | 0
답변 있음
What does "Index exceeds the number of array elements (6)." mean?
Hello Jonathan, It's hard to root cause the problem without having the xlsx sheet you are using in your program. But in general...
What does "Index exceeds the number of array elements (6)." mean?
Hello Jonathan, It's hard to root cause the problem without having the xlsx sheet you are using in your program. But in general...
4년 초과 전 | 1
답변 있음
how to draw two y axis?
As suggested by Madhan, you can use yyaxis function to show 2 different scales on yaxis. In your case, x=[0,0,0,0,0,76,344,60...
how to draw two y axis?
As suggested by Madhan, you can use yyaxis function to show 2 different scales on yaxis. In your case, x=[0,0,0,0,0,76,344,60...
4년 초과 전 | 1
| 수락됨
답변 있음
urgent help, please
If you want to enter the values one by one, then you can use a loop: N=input("Enter the number of stories: ") for index = 1:N ...
urgent help, please
If you want to enter the values one by one, then you can use a loop: N=input("Enter the number of stories: ") for index = 1:N ...
4년 초과 전 | 0
답변 있음
Array indices must be positive integers or logical values
Hi Abhijit, Here you don't need to use index. I think you are trying to create a function of x with f(x), but as you have alre...
Array indices must be positive integers or logical values
Hi Abhijit, Here you don't need to use index. I think you are trying to create a function of x with f(x), but as you have alre...
4년 초과 전 | 0
답변 있음
Writing a program to combine multiple arrays
Hello Grace, You can simply concate 2 or more arrays in below fasion. If A and B are 2 row arrays and you want A being appende...
Writing a program to combine multiple arrays
Hello Grace, You can simply concate 2 or more arrays in below fasion. If A and B are 2 row arrays and you want A being appende...
4년 초과 전 | 0
답변 있음
Error: Function definition not supported in this context. Create functions in code file.
Hi Augstin, In matalb, you need to write your function in a seperate matlab file and then you can call this function either fro...
Error: Function definition not supported in this context. Create functions in code file.
Hi Augstin, In matalb, you need to write your function in a seperate matlab file and then you can call this function either fro...
4년 초과 전 | 6
| 수락됨
답변 있음
Putting array indexes into a larger one
Hello Mert, I am not completely sure what you want to do but got some impression so have made some modification in your code. ...
Putting array indexes into a larger one
Hello Mert, I am not completely sure what you want to do but got some impression so have made some modification in your code. ...
4년 초과 전 | 1
| 수락됨
답변 있음
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...
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...
4년 초과 전 | 0
| 수락됨
답변 있음
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) = '.'...
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) = '.'...
4년 초과 전 | 1
답변 있음
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...
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...
4년 초과 전 | 1
| 수락됨
답변 있음
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...
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...
4년 초과 전 | 0
| 수락됨
답변 있음
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...
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...
4년 초과 전 | 0
답변 있음
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...
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...
4년 초과 전 | 0