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

etwa 6 Jahre vor | 0

| akzeptiert

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

etwa 6 Jahre vor | 0

| akzeptiert

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

etwa 6 Jahre vor | 0

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

etwa 6 Jahre vor | 1

| akzeptiert

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

etwa 6 Jahre vor | 0

| akzeptiert

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

etwa 6 Jahre vor | 0

| akzeptiert

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

etwa 6 Jahre vor | 1

| akzeptiert

Gelöst


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

etwa 6 Jahre vor

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

etwa 6 Jahre vor | 0

| akzeptiert

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

etwa 6 Jahre vor | 0

| akzeptiert

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

etwa 6 Jahre vor | 1

| akzeptiert

Gelöst


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

etwa 6 Jahre vor

Gelöst


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

etwa 6 Jahre vor

Gelöst


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

etwa 6 Jahre vor

Gelöst


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)

etwa 6 Jahre vor

Gelöst


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

etwa 6 Jahre vor

Gelöst


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

etwa 6 Jahre vor

Gelöst


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

etwa 6 Jahre vor

Gelöst


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

etwa 6 Jahre vor

Gelöst


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

etwa 6 Jahre vor

Gelöst


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

etwa 6 Jahre vor

Gelöst


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

etwa 6 Jahre vor

Gelöst


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

etwa 6 Jahre vor

Gelöst


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

etwa 6 Jahre vor

Gelöst


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

etwa 6 Jahre vor

Gelöst


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

etwa 6 Jahre vor

Gelöst


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

etwa 6 Jahre vor

Gelöst


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

etwa 6 Jahre vor

Gelöst


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

etwa 6 Jahre vor

Gelöst


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

etwa 6 Jahre vor

Mehr laden