Réponse apportée
Why does my function output a series of answers that I don't want and have tried my best to supress
Because its your function output [T,Q] =osc_2 will give you two output which you specified when you call osc_2 the output w...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
How to draw 3d signal
https://in.mathworks.com/help/matlab/ref/plot3.html figure,plot3(1*ones(1,10),1:10,randn(1,10)) hold on,plot3(2*ones(1,10),1:1...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
How can I implement the following blocks and code in function block ?
This is an example of matlab given in integral help % Without For loop fun = @(x,c) 1./(x.^3-2*x-c); q_f = integral(@(x)fun(x...

presque 6 ans il y a | 0

Réponse apportée
How to display only red parts of an image?
You have to get R component which means you have to find out value of R greater than both G and B in RGB data. (May be some thre...

presque 6 ans il y a | 1

| A accepté

Réponse apportée
How do I find the function corresponding to a graph image?
Extract Data https://www.mathworks.com/matlabcentral/answers/234118-extract-data-from-png-file After that you can find mathema...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
What should I write in the command window for this input of the function?
function[stability,lds]=lds_cal(state,hs,fs,time,n_neighbours, plot) if(plot) figure,plot(time,n_neighbours) % or any two ...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
To store plotregression value in a variabe
Suppose the example given below it is matlab example [x,t] = simplefit_dataset; net = feedforwardnet(10); net = train(net,x,...

presque 6 ans il y a | 1

| A accepté

A résolu


ZigZag - 05
Given a matrix, print all its elements in the alpha form. For example - a=[16 2 3 13 5 11 10 8 ...

presque 6 ans il y a

Réponse apportée
How to plot impulse response?
X=conv(y,h,'same');

presque 6 ans il y a | 0

| A accepté

Réponse apportée
Plot matrix with imagesc
Use text scan to read from text file Use text to write text on figure no_of_word_to_read = 3; %no of columns filename = 'C:\U...

presque 6 ans il y a | 0

| A accepté

Réponse apportée
For Loop not plooting with "surf" command
Try this clc Ma = zeros(); Pi = 0; Pinc = 10; Pf = 200; Xi = 0; Xinc = 1; Xf = 180; for P = Pi:Pinc:Pf; for X = Xi:Xin...

presque 6 ans il y a | 1

| A accepté

A résolu


Convert a temperature reading from Celsius to an unknown scale
Two of the most famous temperature scales are the Celsius and the Fahrenheit scale. In reality, however, there are so many other...

presque 6 ans il y a

A résolu


Count the number of folds needed to pack a large sheet
In a certain paper factory, large sheets of paper are being made every day. Before sending the sheets for shipment, they have to...

presque 6 ans il y a

A résolu


Sunday bonus
Submit a solution on any Sunday and you will get 10 points. Only for MATLAB fans!

presque 6 ans il y a

A résolu


Sum of series
a(n) = n^2 - (n-1)^2 find the summation of the series upto n i.e. a(1)+a(2)+...+a(n)

presque 6 ans il y a

A résolu


Sky full of stars - 01
Draw a right triangle with asterisks of size n. For example, for n=5 '* ' '** ' '*** ' '**** ' ...

presque 6 ans il y a

A résolu


Sky full of stars - 03
draw the following pattern with asterisks. For example, for n=6 '************' '***** *****' '**** ****' ...

presque 6 ans il y a

A résolu


Find the two-word state names
Given a list of states, remove all the states that have two-word names. If s1 = 'Alabama Montana North Carolina Vermont N...

presque 6 ans il y a

A résolu


Prime factor digits
Consider the following number system. Calculate the prime factorization for each number n, then represent the prime factors in a...

presque 6 ans il y a

A résolu


Find relatively common elements in matrix rows
You want to find all elements that exist in greater than 50% of the rows in the matrix. For example, given A = 1 2 3 5 ...

presque 6 ans il y a

A résolu


Clean the List of Names
Given a list of names in a cell array, remove any duplications that result from different capitalizations of the same string. So...

presque 6 ans il y a

A résolu


Implement a ROT13 cipher
Replace each character in string s1 with the character that is shifted 13 positions from it (wrap back to the beginning if neces...

presque 6 ans il y a

A résolu


Counting Sequence
Given a vector x, find the "counting sequence" y. A counting sequence is formed by "counting" the entries in a given sequence...

presque 6 ans il y a

A résolu


Test for balanced parentheses
Given the input inStr, give the boolean output out indicating whether all the parentheses are balanced. Examples: * If ...

presque 6 ans il y a

A résolu


Scrabble Scores
Given a word, determine its score in <http://en.wikipedia.org/wiki/Scrabble Scrabble>. The input string will always be provi...

presque 6 ans il y a

A résolu


Kaprekar Steps
6174 is the <http://en.wikipedia.org/wiki/6174_%28number%29 Kaprekar constant>. All natural numbers less than 10,000 (except som...

presque 6 ans il y a

A résolu


Alphabetize by last name
Given a list of names in a cell array, sort the list by the last name. So if list = {'Barney Google','Snuffy Smith','Dagwood ...

presque 6 ans il y a

A résolu


Find common elements in matrix rows
Given a matrix, find all elements that exist in every row. For example, given A = 1 2 3 5 9 2 5 9 3 2 5 9 ...

presque 6 ans il y a

A résolu


Maximum running product for a string of numbers
Given a string s representing a list of numbers, find the five consecutive numbers that multiply to form the largest number. Spe...

presque 6 ans il y a

A résolu


Function Iterator
Given a handle fh to a function which takes a scalar input and returns a scalar output and an integer n >= 1, return a handle f...

presque 6 ans il y a

Charger plus