A résolu


The Piggy Bank Problem
Given a cylindrical piggy bank with radius g and height y, return the bank's volume. [ g is first input argument.] Bonus though...

environ 3 ans il y a

Réponse apportée
Using symbolic variables, how do you expand polynomials to show complex roots in an equation
Hi bob, I guess it's a transfer function and you are looking for poles and zeros. syms s Num = 10^4*(s+5)*(s+70); Den = s*(s...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
multiple graphs in one script
Hi basim almutairi, Simplify your life and use handles (start here: graphics-objects): figure handles, axes handles, ... Handl...

environ 3 ans il y a | 0

Réponse apportée
I don't know how to avoid eval
Hi Wan Ji, you can use cell-arrays. You don't need to assign variables with different names to multiple outputs. function p = ...

environ 3 ans il y a | 2

| A accepté

Réponse apportée
How to set common colorbar for multiplots?
Hi UTKARSH VERMA, have a look at caxis(): [x, y] = meshgrid(0:0.1:1,0:0.1:1); z = rand(11,11,24); minColorLimit = min(min(...

environ 3 ans il y a | 8

| A accepté

Réponse apportée
How to converting cell to matrix for image based classification?
Hi Nikhat Ali, Please have a look into documentation fitcecoc(). The way you call the function is not working since data format...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
Matrix of transfer functions
Hi Davood Raoofsheibani, you can define arrays of transfer functions similar to numeric arrays by using tf(): % define array ...

plus de 3 ans il y a | 0

Réponse apportée
Convert a Complex Number to exponential real
Hi Jogger, have a look at Euler's formula (https://en.wikipedia.org/wiki/Euler's_formula). x = 2 + 1j * 5; r = sqrt(real(x)^2...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
Different rotations of XLabels
Hi Julie, One way to rotate single XTickLabel Strings is to replace them by text(). Advantage over annotation() is that the tex...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
How to shift entries in a vector by the value of the number in that entry?
Hi Tim David, you can apply circshift() to the data. T = [0, 0, 4, 0, 7, 0, 0, 5, 0, 9]; shiftme = @(A,nShift) circshift(A,...

plus de 3 ans il y a | 0

Réponse apportée
use vector as input
Hi Vincent Degonda, Your for-loop call is not providing what you expected. Your input variable is a vector already. dpb tried t...

plus de 3 ans il y a | 0

Réponse apportée
Pass a structure to a function
Hi George Bashkatov, First of all: Do not use global variables if not absolutely necessary. There are hundreds of threads argui...

plus de 3 ans il y a | 0

Réponse apportée
Does Matlab solver allow integration?
Hi Craig Dekker, please, have a look at the documentation symbolic int(): syms t L R Vo WR = R*((Vo/R)*exp(-t/(L/R)))^2 iWR ...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
How to keep decimal float point only
If it is just for display you can specify the output format in fprintf. a = 323.153; fprintf('<< a = %.0f.\n',a) output: << ...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
How to join a double variable and a strucure variable to plot a heat map ?
Dear Niraj Bal Tamang, According to documentation heatmap() supports tables among others. Working with tables is very convenien...

presque 4 ans il y a | 0

| A accepté

Réponse apportée
plot repeating x values
Hi Christopher Tran Rojas, you have to replace the xTickLabel-Strings. Otherwise an increasing value vector is expected. Plus, ...

environ 4 ans il y a | 0

Réponse apportée
Frequency domain and Shannon limit
Hi long le, Matlab documentation is quite nice since it provides several examples on key topics. One possibility to transform t...

environ 4 ans il y a | 1

Réponse apportée
Catching a warning to avoid matrix singularity
Hi Mostafa Nakhaei, quite similar to what you describe is shown in the documentation: https://de.mathworks.com/help/matlab/ref/...

environ 4 ans il y a | 1

| A accepté

Réponse apportée
How can I get an upright mu in math with latex interpreter?
Hi Philipp Rehlaender, It seems, there is no straight-forward way to do that in matlab figures. Nonetheless, there are work-aro...

environ 4 ans il y a | 0

Réponse apportée
Magnitude and Phase response of a Lowpass filter
Hi Suvvi Kuppur Narayana Swamy: The function angle() is calculating the phase angle of a complex number. Since all values are r...

environ 4 ans il y a | 0

Réponse apportée
Interpolating at vertices of a mesh
Hi Sanwar Ahmad, for interpolation between meshes you can have a look at the built-in function scatteredinterpolant(). More in...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
How to estimate the parameter in a customized transfer function
Hi Lihao Zheng, first of all you can convert the two forms from one to another. Second it is possible to define transfer functi...

plus de 4 ans il y a | 0

Réponse apportée
filesep for window '\', which may cause sprintf doesn't work for some '\%d' string, how can i avoid ?
Hi Huang Chi-En, please refer to sprintf-documentation; special characters might need different syntax. Since backslash is an e...

plus de 4 ans il y a | 0

Réponse apportée
How do I add a class to a class
Hi Alok Virkar, another approch making use of object arrays which might be more convenient in use: rocket.m classdef rocket <...

plus de 4 ans il y a | 0

Réponse apportée
How do I add a class to a class
Hi Alok Virkar, There are several possibilities to fullfill the described functionality. But first there are issues with your c...

plus de 4 ans il y a | 0

Réponse apportée
Program not calculating correct value in output file
Hi Joseph Edelman, it seems as if line 52 produces complex numbers for HF. In consequence the values of DELQ are complex as wel...

plus de 4 ans il y a | 1

Réponse apportée
Low pass filter design
Hi Toygar Ozel, have a look at the step response of your filter, e.g. using filter designer. You can determine easily that the ...

plus de 4 ans il y a | 0

| A accepté

Réponse apportée
Merge numeric values of 2 columns into 1
Hi Andrea Boa, probably your import function is not correct regarding either format or delimiter, or both. The following functi...

plus de 4 ans il y a | 0

Réponse apportée
How to standardize the colormap of every figure created from different set of data
Hi NUR AMIRA ZULKIFLLI, you can supply own colormaps to several plots. You might want to look into imagesc() since it provides ...

plus de 4 ans il y a | 0

Réponse apportée
How to graph multiple points onto one graph?
Hi Brian Len, you might have some troubles with syntax. Have a look at the very good documentation: https://de.mathworks.com/he...

plus de 4 ans il y a | 0

| A accepté

Charger plus