Community Profile

# Ankit

Last seen: 28일 전 2019 이후 활성

Development Engineer, AUDI AG | MATLAB user since 2010 | 7+ Experience in Automotive Industry | M.Sc Computational Engineering, Ruhr Universität Bochum | B.Tech Mechanical Engineering, Indian Institute of Technology, Roorkee

Spoken Languages:
English

All

배지보기

#### Content Feed

보기 기준

답변 있음
How to make the y-axis closer from each other when using addaxis ?
You can change the value of variable "axcompleft" according to your requirement in addaxis.m file (code line: 95) . Default val...

3달 전 | 0

| 수락됨

답변 있음
extract data from figure
*.fig file are basically *.mat files. You can try following in order to extract data from *.mat files plot(rand(100,1)); % crea...

4달 전 | 1

| 수락됨

답변 있음
Save histogram graphs during for loop operation
n = 1; for i = 8:8:192 Data = rand(100,192); BB = Data (:,n:i); n = i; f=figure; histogram(BB); sa...

5달 전 | 0

| 수락됨

답변 있음
matrix variable problem in matlab

5달 전 | 0

| 수락됨

답변 있음
Delete Cells in Cell array in two loops....
You can use cellfun: Apply a function to each cell of a cell array 'isempty' -- true for cells containing an empty array, fa...

5달 전 | 0

답변 있음
How to move title text to front of plot area
plot(rand(1,50)); t = title('this is my title', 'Units', 'normalized', 'Position', [0.5, 0.75, 0]); t.Color = 'r'; t.FontSize...

5달 전 | 1

답변 있음
How to deal with Index exceeds the number of array elements ?
load 'signal' start_location = [147,222,302,379,458,538,620,698,777]; start_value = [-81.905,-87.408,-86.262,-...

5달 전 | 0

| 수락됨

답변 있음
How to import text present in figure to excel?
There is one way to write the output to *.xlsx-File. speed= 55; time= 35; filename = 'Test.xlsx'; str = sprintf(['speed = %...

5달 전 | 0

답변 있음
How to remove connecting lines in the line plot for large dataset?
You can use unique to resolve this problem. unique(A) for the array A returns the same values as in A but with no repetitions. ...

5달 전 | 0

| 수락됨

답변 있음
Multiple plotting issue?
Few recommendations to your code: try to define all the variable before loop don't use clear all in your code. Calling clear a...

5달 전 | 0

| 수락됨

답변 있음
trying to solve an ode using ode45
you forgot to put bracket F = @(t,y)(y/(t+1) + 5*((t+1)/(1+25*t^2))); [t,y] = ode45 (F,[0 1],1); plot(t,y);

5달 전 | 0

| 수락됨

답변 있음
Add XTickLabels names from cells array
@Stefano Cucchi I hope this is what you are looking for? n_canali = 5; n_try = 2; nome_canali = {'ai0' 'ai1' 'ai3' 'ai4' 'ai7...

5달 전 | 1

| 수락됨

답변 있음
How do I change the text output in Live Scripts?
@Rodney Smith Please try following links to change the font, font size and font style. Colorizing text output » MATLAB Communit...

5달 전 | 0

답변 있음
plot time in HH:MM ix x axis
You need to change the format using datetick. date={'15:10:34.600 AM 2/26/2017','15:20:34.700 AM 2/26/2017','15:30:34.800 AM 2/...

5달 전 | 0

| 수락됨

답변 있음
How to add captions to figures in a LiveScript that also include figure numbers
@Cory Dinkle.. I would recommend if you can use annotations. With annotations it is easy to change different properties like ali...

5달 전 | 0

답변 있음
how to display a maximum and minimum value in figure of Matlab?
text: Add text descriptions to data points e.g. text(x,y,str) adds a text description to one or more data points in the current...

5달 전 | 0

| 수락됨

답변 있음
For loop overriding pervious data
I tweaked a bit @KSSV answer. Second loop I added in case you have different variable size in *.mat file. I hope this solution w...

5달 전 | 1

| 수락됨

답변 있음
Y data on the bar plot
text(A(i),sprintf('(%.0f)',A(i))) - your syntax seems doesn't right. Please follow the following syntax to defined values of y o...

5달 전 | 0

| 수락됨

답변 있음
how to plot group boxplot
Have a look over the below link. There are sufficient infos available on MATLAB Website Also you can find some ready made funct...

6달 전 | 1

답변 있음
How to change the plot proportions/size when exporting to jpg using live script in Matlab
you can try this out. I hope this served your purpose. set(gcf,'units','normalized','outerposition',[0 0 1 1]); saveas(f, full...

6달 전 | 0

답변 있음
Multiple switch distance based.
@Krzysztof Slezak, there are many ways to do this. One way is to use If Simulink block together with If Action Subsystem. Pleas...

6달 전 | 0

| 수락됨

답변 있음
read the following link: Generate discrete sine wave - MATLAB - MathWorks Deutschland and Generate continuous or discrete sine w...

10달 전 | 1

질문

Repeat a time based signal in Simulink (not using *.m script) / during Start of simulation based on number of repetitions
I am looking for a way to repeat a time based signals "n" times in Simulink as soon as I run the simulation. Just for referen...

12달 전 | 답변 수: 1 | 0

### 1

답변

답변 있음
Save results on different sheets in excel
You can try this example and adapt to your requirement. first "for loop" you can use for creating 5 different sheets as mentione...

12달 전 | 0

답변 있음
legend font style, f ​​and | are very close
As per as my knowledge this is due to "FontName". Try with other FontName for e.g. Calibri etc you will see the difference.

12달 전 | 0

답변 있음
PLOT CSV FILE IN MATLAB
csvread: The file can only contain numeric values. I would prefer readtable command. With this command you have flexibility to ...

12달 전 | 1

| 수락됨

답변 있음
Syntax error in function block of simulink

약 1년 전 | 0

답변 있음
How to plot a Simulink Desktop Real-Time model output in an App Designer app?
Hi Nagendra, There are different ways to acheive and one solution you can find in the below link: https://de.mathworks.com/mat...

약 1년 전 | 1

| 수락됨

답변 있음
How do I solve "Error in port widths or dimensions" error in Simulink?
function input = C_REG(q) % global k_1 k_2 x=q(1); y=q(2); theta=q(3); e_p=[-x -y]; sag=[cos(t...

1년 이상 전 | 1

| 수락됨

답변 있음
cell Array to numeric column vector
cell2mat converts the contents of a cell array into a single matrix More Info below: cell2mat: https://de.mathworks.com/help/...

약 2년 전 | 0