Community Profile

photo

Krishna Zanwar


Attivo dal 2019

Statistiche

All
  • Solver
  • Knowledgeable Level 2
  • First Answer

Visualizza badge

Content Feed

Visto da

Risposto
How can I build simulation target in r2017b?
Simulink builds a target model by default for more information you can check this.

circa 5 anni fa | 0

Risposto
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...

circa 5 anni fa | 0

| accettato

Risposto
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...

circa 5 anni fa | 0

Risposto
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 ...

circa 5 anni fa | 0

Risposto
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...

circa 5 anni fa | 0

Risposto
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...

circa 5 anni fa | 0

| accettato

Risposto
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...

circa 5 anni fa | 0

Risposto
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.

circa 5 anni fa | 0

Risposto
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)...

circa 5 anni fa | 0

Risposto
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...

circa 5 anni fa | 0

| accettato

Risposto
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...

circa 5 anni fa | 0

Risposto
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...

circa 5 anni fa | 0

Risposto
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...

circa 5 anni fa | 1

Risposto
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...

circa 5 anni fa | 0

| accettato

Risposto
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...

circa 5 anni fa | 0

Risposto
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 ...

circa 5 anni fa | 0

Risposto
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...

circa 5 anni fa | 1

| accettato

Risposto
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 ...

circa 5 anni fa | 0

| accettato

Risposto
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...

circa 5 anni fa | 0

| accettato

Risposto
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...

circa 5 anni fa | 0

Risposto
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...

circa 5 anni fa | 0

Risposto
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...

circa 5 anni fa | 1