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

más de 6 años hace | 0

| aceptada

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

más de 6 años hace | 0

| aceptada

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

más de 6 años hace | 0

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

más de 6 años hace | 1

| aceptada

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

más de 6 años hace | 0

| aceptada

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

más de 6 años hace | 0

| aceptada

Respondida
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,...

más de 6 años hace | 1

| aceptada

Resuelto


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

más de 6 años hace

Respondida
How to plot impulse response?
X=conv(y,h,'same');

más de 6 años hace | 0

| aceptada

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

más de 6 años hace | 0

| aceptada

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

más de 6 años hace | 1

| aceptada

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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)

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Resuelto


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

más de 6 años hace

Cargar más