![photo](/responsive_image/150/150/0/0/0/cache/matlabcentral/profiles/14495259_1547011710249_DEF.jpg)
Krishna Zanwar
Followers: 0 Following: 0
Statistics
RANK
1,808
of 292,708
REPUTATION
34
CONTRIBUTIONS
0 Questions
22 Answers
ANSWER ACCEPTANCE
0.00%
VOTES RECEIVED
3
RANK
of 19,934
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Highlights
AVERAGE NO. OF LIKES
Feeds
How can I build simulation target in r2017b?
Simulink builds a target model by default for more information you can check this.
5 years ago | 0
Using textscan with lines of different length
You can get the line as an input using the function fgetl, it will take all the values in a line regardless of the datatypes and...
5 years ago | 0
| accepted
Reading multiple NetCDF files in a Loop with multiple variables
If you want to overwrite graphs of other months over this one you can use hold on. If you want to divide the figure in differen...
5 years ago | 0
Selecting a specific answer
You can use the function any to find out if any of the variables is equal to any other variable. any(a==[b c d]) will gave a ...
5 years ago | 0
s function builder source generation location
Hey Joshua, You can cd to another directory and then use the s function builder so all the files are created there and then cop...
5 years ago | 0
Extracting matrix and making 2D plot
You can change the limits by replacing latlim=[min(latmat(:)) max(latmat(:))] lonlim=[min(lonmat(:)) max(lonmat(:))] by lon...
5 years ago | 0
| accepted
Index exceeds the number of array elements (1).
In the code above 'b' and 'c' are scalars and cannot be indexed. If you want to get an array of 'b' and 'c' as 'u' is increasing...
5 years ago | 0
Is it possible to promote in one go the mask of a subsystem to the mask of the subsystem that encapsulates it?
You can copy the mask from one block to another using this. You can use the same for subsystems.
5 years ago | 0
How do I change the amount of noise I want to add to a signal?
One method to do it is: >> noise = randi([-10,10]*10^n,[20,1])/10^n >> for i=1:size(noise) >> if noise(i)>9 >> b(i)...
5 years ago | 0
codegeneration array out of bounds check
Hey Bernhard, Simulink does not support checking out of bound array possibility during code generation. You can run Simulnk De...
5 years ago | 0
| accepted
Creating table of toggle buttons
Hey Luis, A single function can be used for callback of all the toggle buttons. The button which was pressed can be recognize...
5 years ago | 0
Adding a marker to Data Marker to Heatmap (via imagesc)
Hey Jason, The second subplot command is creating another plot over the top of your original plot. Just remove the second subpl...
5 years ago | 0
Using parametric equations in terms of theta1 and theta2 to plot a point A for a range of angles
Hey Raphael, Since Matlab does direct calculations of Vectors you dont need a for loop for this problem. theta1=20:0.5:80; th...
5 years ago | 1
How do i implement moving average for prediction?
Hey Ali, It seems like in the Excel sheet the moving mean of ‘Actual’ is printed in ‘Forecast’. In Matlab ‘Forecast’ is used a...
5 years ago | 0
| accepted
how to cobine different text files with different contents ?
Hey Shabnam, You can get the line as an input using the function fgetl, it will take all the values in a line regardless of the...
5 years ago | 0
Calling a opening function in a programmatic GUI
Hi, The error in this code is caused in the function calc_button_callback as the variables a, b, c are not initiated. I am not ...
5 years ago | 0
Using parametric equations in terms of theta1 and theta2 to plot a point A for a range of angles
Hey Raphael, In this case you have defined a function but not called it in your script and so you are getting an error while pr...
5 years ago | 1
| accepted
How can i make an average plot of 2 unequal data sets?
Hey Aditya, This problem can be solved by 1D interpolation, Let the X axis limits be 'Xmin', 'Xmax'. And the data of X and Y ...
5 years ago | 0
| accepted
Counting pixels in echocardiogram image
Hey Zo, I am not clear on what your objective is. If you want to find the RGB values of pixels in the image then you can find...
5 years ago | 0
| accepted
ODE45 along with sym function
Hey Shubham, You can find the available functions to solve differential equations in this link: And the functions to solve a...
5 years ago | 0
combine numbers and symbols in print to txt file
Hi Peter, Use the File Id of your text file instead of <fileId> a = "%d "; b=char(176); c=" %f'N %d"; d=" %f'E \n"; format...
5 years ago | 0
How can you generate a C code with embedded coder from a simulink model with a cycle time/period (sample time) shorter than 1 ms?
The "base rate smaller than 1 ms" error message appears when the code generation target is set to GRT (Generic Real-Time) or ERT...
5 years ago | 1